From 9e2d974b9a1cb1a93dd42e25a64abe9b95f702ea Mon Sep 17 00:00:00 2001 From: zijianhuang Date: Fri, 28 Jun 2024 06:58:48 +1000 Subject: [PATCH] utilize LengthAttribute of .NET 8 --- .../ComponentsToTypesBase.cs | 30 +- .../CodeObjectHelperForNg2FormGroup.cs | 25 +- .../amadeus_com_2_2_0_.cs | 51 +- ...mazonaws_com_accessanalyzer_2019_11_01_.cs | 9 +- .../amazonaws_com_account_2021_02_01_.cs | 24 +- ...zonaws_com_alexaforbusiness_2017_11_09_.cs | 3 +- .../amazonaws_com_amp_2020_08_01_.cs | 33 +- .../amazonaws_com_amplify_2017_07_25_.cs | 66 +- .../amazonaws_com_appconfig_2019_10_09_.cs | 90 +- ...amazonaws_com_appconfigdata_2021_11_11_.cs | 9 +- .../amazonaws_com_appfabric_2023_05_19_.cs | 39 +- .../amazonaws_com_appflow_2020_08_23_.cs | 36 +- ...azonaws_com_appintegrations_2020_07_29_.cs | 36 +- ...com_applicationcostprofiler_2020_09_10_.cs | 9 +- .../amazonaws_com_appmesh_2018_10_01_.cs | 12 +- .../amazonaws_com_appmesh_2019_01_25_.cs | 45 +- .../amazonaws_com_appsync_2017_07_25_.cs | 84 +- ...azonaws_com_arc_zonal_shift_2022_10_30_.cs | 18 +- .../amazonaws_com_auditmanager_2017_07_25_.cs | 84 +- .../amazonaws_com_backup_2018_11_15_.cs | 18 +- ...zonaws_com_billingconductor_2021_07_30_.cs | 78 +- .../amazonaws_com_braket_2019_09_01_.cs | 39 +- .../amazonaws_com_budgets_2016_10_20_.cs | 135 +- .../amazonaws_com_ce_2017_10_25_.cs | 39 +- .../amazonaws_com_chime_2018_05_01_.cs | 213 +- ...naws_com_chime_sdk_identity_2021_04_20_.cs | 90 +- ...m_chime_sdk_media_pipelines_2021_07_15_.cs | 72 +- ...naws_com_chime_sdk_meetings_2021_07_15_.cs | 66 +- ...aws_com_chime_sdk_messaging_2021_05_15_.cs | 120 +- ...azonaws_com_chime_sdk_voice_2022_08_03_.cs | 90 +- .../amazonaws_com_cleanrooms_2022_02_17_.cs | 72 +- ...mazonaws_com_clouddirectory_2016_05_10_.cs | 48 +- ...mazonaws_com_clouddirectory_2017_01_11_.cs | 48 +- .../amazonaws_com_cloudsearch_2011_02_01_.cs | 69 +- .../amazonaws_com_cloudsearch_2013_01_01_.cs | 84 +- ...azonaws_com_cloudtrail_data_2021_08_11_.cs | 3 +- .../amazonaws_com_codeartifact_2018_09_22_.cs | 36 +- .../amazonaws_com_codecatalyst_2022_09_28_.cs | 63 +- ...onaws_com_codeguru_reviewer_2019_09_19_.cs | 21 +- ...onaws_com_codeguru_security_2018_05_10_.cs | 12 +- ...zonaws_com_codeguruprofiler_2019_07_18_.cs | 12 +- ...ws_com_codestar_connections_2019_12_01_.cs | 6 +- ..._com_codestar_notifications_2019_10_15_.cs | 18 +- .../amazonaws_com_cognito_sync_2014_06_30_.cs | 3 +- .../amazonaws_com_connect_2017_08_08_.cs | 429 ++-- ...ws_com_connect_contact_lens_2020_08_21_.cs | 9 +- ...zonaws_com_connectcampaigns_2021_01_30_.cs | 147 +- .../amazonaws_com_connectcases_2022_10_03_.cs | 90 +- ...naws_com_connectparticipant_2018_09_07_.cs | 36 +- .../amazonaws_com_controltower_2018_05_10_.cs | 18 +- ...onaws_com_customer_profiles_2020_08_15_.cs | 189 +- .../amazonaws_com_databrew_2017_07_25_.cs | 81 +- .../amazonaws_com_dataexchange_2017_07_25_.cs | 9 +- .../amazonaws_com_detective_2018_10_26_.cs | 42 +- .../amazonaws_com_devops_guru_2020_12_01_.cs | 81 +- .../amazonaws_com_dlm_2018_01_12_.cs | 12 +- ...amazonaws_com_docdb_elastic_2022_11_28_.cs | 3 +- .../amazonaws_com_drs_2020_02_26_.cs | 210 +- .../amazonaws_com_dynamodb_2011_12_05_.cs | 3 +- .../amazonaws_com_ebs_2019_11_02_.cs | 6 +- .../amazonaws_com_eks_2017_11_01_.cs | 12 +- ...onaws_com_elastic_inference_2017_07_25_.cs | 15 +- ...onaws_com_elasticfilesystem_2015_02_01_.cs | 21 +- ...onaws_com_elastictranscoder_2012_09_25_.cs | 21 +- ...mazonaws_com_emr_containers_2020_10_01_.cs | 60 +- ...mazonaws_com_emr_serverless_2021_07_13_.cs | 27 +- ...zonaws_com_entityresolution_2018_05_10_.cs | 30 +- .../amazonaws_com_es_2015_01_01_.cs | 51 +- .../amazonaws_com_eventbridge_2015_10_07_.cs | 3 +- .../amazonaws_com_evidently_2021_02_01_.cs | 132 +- .../amazonaws_com_finspace_2021_03_12_.cs | 96 +- ...amazonaws_com_finspace_data_2020_07_13_.cs | 84 +- .../amazonaws_com_fis_2020_12_01_.cs | 12 +- .../amazonaws_com_fsx_2018_03_01_.cs | 315 +-- .../amazonaws_com_gamesparks_2021_08_17_.cs | 45 +- .../amazonaws_com_grafana_2020_08_18_.cs | 36 +- .../amazonaws_com_greengrassv2_2020_11_30_.cs | 15 +- ...amazonaws_com_groundstation_2019_05_23_.cs | 54 +- .../amazonaws_com_guardduty_2017_11_28_.cs | 117 +- .../amazonaws_com_honeycode_2020_03_01_.cs | 51 +- .../amazonaws_com_iam_2010_05_08_.cs | 30 +- .../amazonaws_com_imagebuilder_2019_12_02_.cs | 228 +- .../amazonaws_com_inspector2_2020_06_08_.cs | 114 +- .../amazonaws_com_inspector_2016_02_16_.cs | 3 +- ...azonaws_com_internetmonitor_2021_06_03_.cs | 3 +- ...naws_com_iot1click_projects_2018_05_14_.cs | 15 +- .../amazonaws_com_iot_2015_05_28_.cs | 237 +- ...mazonaws_com_iot_roborunner_2018_05_10_.cs | 465 ++-- .../amazonaws_com_iotanalytics_2017_11_27_.cs | 66 +- ...zonaws_com_iotdeviceadvisor_2020_09_18_.cs | 3 +- .../amazonaws_com_iotevents_2018_07_27_.cs | 27 +- .../amazonaws_com_iotfleethub_2020_11_03_.cs | 21 +- .../amazonaws_com_iotsitewise_2019_12_02_.cs | 204 +- .../amazonaws_com_iottwinmaker_2021_11_29_.cs | 153 +- .../amazonaws_com_iotwireless_2020_11_22_.cs | 219 +- .../amazonaws_com_ivs_2020_07_14_.cs | 108 +- .../amazonaws_com_ivs_realtime_2020_07_14_.cs | 75 +- .../amazonaws_com_ivschat_2020_07_14_.cs | 81 +- .../amazonaws_com_kafka_2018_11_14_.cs | 9 +- .../amazonaws_com_kafkaconnect_2021_09_14_.cs | 18 +- ...inesis_video_archived_media_2017_09_30_.cs | 45 +- ...aws_com_kinesis_video_media_2017_09_30_.cs | 6 +- ...com_kinesis_video_signaling_2019_12_04_.cs | 18 +- .../amazonaws_com_kinesisvideo_2017_09_30_.cs | 195 +- ...amazonaws_com_lakeformation_2017_03_31_.cs | 210 +- .../amazonaws_com_lambda_2014_11_11_.cs | 3 +- .../amazonaws_com_lambda_2015_03_31_.cs | 90 +- .../amazonaws_com_lex_models_2017_04_19_.cs | 60 +- ...manager_linux_subscriptions_2018_05_10_.cs | 6 +- .../amazonaws_com_location_2020_11_19_.cs | 168 +- .../amazonaws_com_logs_2014_03_28_.cs | 9 +- ...mazonaws_com_lookoutmetrics_2017_07_25_.cs | 51 +- ...amazonaws_com_lookoutvision_2020_11_20_.cs | 30 +- .../amazonaws_com_m2_2021_04_28_.cs | 9 +- ...azonaws_com_machinelearning_2014_12_12_.cs | 33 +- .../amazonaws_com_macie2_2020_01_01_.cs | 12 +- ...onaws_com_managedblockchain_2018_09_24_.cs | 36 +- ...com_managedblockchain_query_2023_05_04_.cs | 12 +- ...aws_com_marketplace_catalog_2018_09_17_.cs | 57 +- ...mazonaws_com_mediapackagev2_2022_12_25_.cs | 33 +- ...azonaws_com_medical_imaging_2023_07_19_.cs | 24 +- .../amazonaws_com_mgn_2020_02_26_.cs | 435 ++-- ...gration_hub_refactor_spaces_2021_10_26_.cs | 42 +- ...om_migrationhuborchestrator_2021_08_28_.cs | 57 +- ...ws_com_migrationhubstrategy_2020_02_19_.cs | 45 +- ...amazonaws_com_models_lex_v2_2020_08_07_.cs | 258 +-- ...azonaws_com_mturk_requester_2017_01_17_.cs | 36 +- .../amazonaws_com_mwaa_2020_07_01_.cs | 75 +- ...mazonaws_com_networkmanager_2019_07_05_.cs | 219 +- .../amazonaws_com_nimble_2020_08_01_.cs | 99 +- .../amazonaws_com_oam_2022_06_10_.cs | 9 +- .../amazonaws_com_omics_2022_11_28_.cs | 174 +- .../amazonaws_com_opensearch_2021_01_01_.cs | 51 +- .../amazonaws_com_osis_2022_01_01_.cs | 12 +- .../amazonaws_com_outposts_2019_12_03_.cs | 150 +- .../amazonaws_com_panorama_2019_07_24_.cs | 48 +- ...m_payment_cryptography_data_2022_02_03_.cs | 81 +- ...naws_com_personalize_events_2018_03_22_.cs | 18 +- .../amazonaws_com_pipes_2015_10_07_.cs | 27 +- ...azonaws_com_privatenetworks_2021_12_03_.cs | 51 +- .../amazonaws_com_qldb_2019_01_02_.cs | 15 +- .../amazonaws_com_quicksight_2018_04_01_.cs | 237 +- .../amazonaws_com_ram_2018_01_04_.cs | 3 +- .../amazonaws_com_rbin_2021_06_15_.cs | 15 +- .../amazonaws_com_rds_data_2018_08_01_.cs | 81 +- ...amazonaws_com_resiliencehub_2020_04_30_.cs | 120 +- ...aws_com_resource_explorer_2_2022_07_28_.cs | 33 +- ...azonaws_com_resource_groups_2017_11_27_.cs | 63 +- .../amazonaws_com_robomaker_2018_06_29_.cs | 285 +-- ...amazonaws_com_rolesanywhere_2018_05_10_.cs | 78 +- ...e53_recovery_control_config_2020_11_02_.cs | 42 +- .../amazonaws_com_rum_2018_05_10_.cs | 24 +- .../amazonaws_com_runtime_lex_2016_11_28_.cs | 12 +- ...mazonaws_com_runtime_lex_v2_2020_08_07_.cs | 3 +- .../amazonaws_com_sagemaker_2017_07_24_.cs | 24 +- ...s_com_sagemaker_a2i_runtime_2019_11_07_.cs | 6 +- ...mazonaws_com_sagemaker_edge_2020_09_23_.cs | 21 +- ...emaker_featurestore_runtime_2020_07_01_.cs | 6 +- ...ws_com_sagemaker_geospatial_2020_05_27_.cs | 45 +- ...onaws_com_sagemaker_metrics_2022_09_30_.cs | 6 +- .../amazonaws_com_scheduler_2021_06_30_.cs | 45 +- .../amazonaws_com_schemas_2019_12_02_.cs | 33 +- .../amazonaws_com_securityhub_2018_10_26_.cs | 24 +- .../amazonaws_com_securitylake_2018_05_10_.cs | 27 +- ..._servicecatalog_appregistry_2020_06_24_.cs | 24 +- .../amazonaws_com_sesv2_2019_09_27_.cs | 12 +- .../amazonaws_com_signer_2017_08_25_.cs | 30 +- ...mazonaws_com_simspaceweaver_2022_10_28_.cs | 51 +- ..._com_snow_device_management_2021_08_04_.cs | 9 +- ...amazonaws_com_ssm_incidents_2018_05_10_.cs | 186 +- .../amazonaws_com_ssm_sap_2018_05_10_.cs | 15 +- ...mazonaws_com_storagegateway_2013_06_30_.cs | 351 +-- .../amazonaws_com_support_app_2021_08_20_.cs | 45 +- .../amazonaws_com_synthetics_2017_10_11_.cs | 57 +- .../amazonaws_com_tnb_2008_10_21_.cs | 6 +- .../amazonaws_com_vpc_lattice_2022_11_30_.cs | 93 +- ...azonaws_com_wellarchitected_2020_03_31_.cs | 537 ++--- .../amazonaws_com_wisdom_2020_10_19_.cs | 63 +- .../amazonaws_com_workdocs_2016_05_01_.cs | 81 +- .../amazonaws_com_worklink_2018_09_25_.cs | 147 +- ...mazonaws_com_workspaces_web_2020_07_08_.cs | 144 +- .../amazonaws_com_xray_2016_04_12_.cs | 90 +- .../apideck_com_hris_10_0_0_.cs | 3 +- .../apideck_com_pos_10_0_0_.cs | 3 +- .../apple_com_sirikit_cloud_media_1_0_2_.cs | 42 +- .../CsOpenApi3TestsResults/bbc_com_1_0_0_.cs | 162 +- .../configcat_com_v1_.cs | 147 +- .../credas_co_uk_pi_v1_.cs | 66 +- Tests/CsOpenApi3TestsResults/doqs_dev_1_0_.cs | 6 +- .../e_conomic_com_v20_0_0_.cs | 51 +- .../etsi_local_MEC010_2_AppPkgMgmt_2_1_1_.cs | 3 +- .../figshare_com_2_0_0_.cs | 27 +- Tests/CsOpenApi3TestsResults/fire_com_1_0_.cs | 6 +- .../github_com_api_github_com_1_1_4_.cs | 27 +- ...ub_com_api_github_com_2022_11_28_1_1_4_.cs | 27 +- .../github_com_ghec_1_1_4_.cs | 33 +- .../github_com_ghec_2022_11_28_1_1_4_.cs | 33 +- .../github_com_ghes_2_18_1_1_4_.cs | 3 +- .../github_com_ghes_2_19_1_1_4_.cs | 3 +- .../github_com_ghes_2_20_1_1_4_.cs | 3 +- .../github_com_ghes_2_21_1_1_4_.cs | 6 +- .../github_com_ghes_2_22_1_1_4_.cs | 12 +- .../github_com_ghes_3_0_1_1_4_.cs | 12 +- .../github_com_ghes_3_1_1_1_4_.cs | 12 +- .../github_com_ghes_3_2_1_1_4_.cs | 12 +- .../github_com_ghes_3_3_1_1_4_.cs | 12 +- .../github_com_ghes_3_4_1_1_4_.cs | 30 +- .../github_com_ghes_3_5_1_1_4_.cs | 30 +- .../github_com_ghes_3_6_1_1_4_.cs | 30 +- .../github_com_ghes_3_7_1_1_4_.cs | 33 +- .../github_com_ghes_3_8_1_1_4_.cs | 33 +- .../github_com_github_ae_1_1_4_.cs | 12 +- .../here_com_positioning_2_1_1_.cs | 51 +- .../increase_com_0_0_1_.cs | 615 ++--- .../influxdata_com_2_0_0_.cs | 12 +- .../izettle_com_products_1_0_0_.cs | 111 +- .../keyserv_solutions_1_4_5_.cs | 21 +- .../klarna_com_payments_1_0_0_.cs | 150 +- .../linode_com_4_151_1_.cs | 141 +- .../logoraisr_com_v1_.cs | 12 +- .../metadapi_com_1_0_.cs | 9 +- .../CsOpenApi3TestsResults/nbg_gr_v3_1_5_.cs | 120 +- .../nexmo_com_dispatch_0_3_4_.cs | 33 +- .../nexmo_com_numbers_1_0_20_.cs | 12 +- .../nexmo_com_sms_1_2_0_.cs | 12 +- .../nexmo_com_verify_1_2_4_.cs | 3 +- .../nexmo_com_voice_1_3_10_.cs | 12 +- .../nordigen_com_2_0__v2__.cs | 66 +- ...king_org_uk_account_info_openapi_3_1_7_.cs | 1089 +++------ ...rg_uk_confirmation_funds_openapi_3_1_7_.cs | 51 +- ...g_uk_event_notifications_openapi_3_1_7_.cs | 21 +- ...rg_uk_payment_initiation_openapi_3_1_7_.cs | 1212 ++++------ .../optimade_local_1_1_0_develop_.cs | 15 +- .../pay1_de_link_v1_.cs | 63 +- .../pinecone_io_20230406_1_.cs | 9 +- .../plaid_com_2020_09_14_1_345_1_.cs | 105 +- .../portfoliooptimizer_io_1_0_9_.cs | 21 +- .../CsOpenApi3TestsResults/prss_org_2_0_0_.cs | 12 +- .../randommer_io_v1_.cs | 6 +- Tests/CsOpenApi3TestsResults/rawg_io_v1_0_.cs | 42 +- .../shipengine_com_1_1_202304191404_.cs | 9 +- .../shutterstock_com_1_1_32_.cs | 15 +- .../spacetraders_io_2_0_0_.cs | 3 +- .../squareup_com_2_0_.cs | 321 +-- .../storecove_com_2_0_1_.cs | 144 +- Tests/CsOpenApi3TestsResults/svix_com_1_4_.cs | 114 +- .../telstra_com_3_x_.cs | 174 +- .../threatjammer_com_1_2_27_.cs | 12 +- ..._api_azurewebsites_net_2020_08_10_6_22_.cs | 9 +- .../twilio_com_twilio_accounts_v1_1_52_0_.cs | 21 +- .../twilio_com_twilio_autopilot_v1_1_52_0_.cs | 150 +- ...wilio_com_twilio_bulkexports_v1_1_52_0_.cs | 6 +- .../twilio_com_twilio_chat_v1_1_52_0_.cs | 108 +- .../twilio_com_twilio_content_v1_1_52_0_.cs | 24 +- .../twilio_com_twilio_events_v1_1_52_0_.cs | 18 +- .../twilio_com_twilio_fax_v1_1_29_1_.cs | 18 +- .../twilio_com_twilio_flex_v1_1_52_0_.cs | 123 +- .../twilio_com_twilio_flex_v2_1_52_0_.cs | 3 +- .../twilio_com_twilio_frontline_v1_1_52_0_.cs | 3 +- .../twilio_com_twilio_insights_v1_1_52_0_.cs | 72 +- ...ilio_com_twilio_intelligence_v2_1_52_0_.cs | 30 +- ...ilio_com_twilio_ip_messaging_v1_1_52_0_.cs | 108 +- .../twilio_com_twilio_media_v1_1_52_0_.cs | 30 +- ...twilio_com_twilio_microvisor_v1_1_52_0_.cs | 21 +- .../twilio_com_twilio_monitor_v1_1_52_0_.cs | 36 +- .../twilio_com_twilio_notify_v1_1_52_0_.cs | 45 +- .../twilio_com_twilio_numbers_v1_1_52_0_.cs | 18 +- .../twilio_com_twilio_oauth_v1_1_51_1_.cs | 3 +- .../twilio_com_twilio_proxy_v1_1_52_0_.cs | 102 +- .../twilio_com_twilio_routes_v2_1_52_0_.cs | 18 +- ...twilio_com_twilio_serverless_v1_1_52_0_.cs | 141 +- .../twilio_com_twilio_studio_v1_1_52_0_.cs | 96 +- .../twilio_com_twilio_studio_v2_1_52_0_.cs | 57 +- .../twilio_com_twilio_sync_v1_1_52_0_.cs | 90 +- ...twilio_com_twilio_taskrouter_v1_1_52_0_.cs | 270 +-- .../twilio_com_twilio_trunking_v1_1_52_0_.cs | 48 +- .../twilio_com_twilio_voice_v1_1_52_0_.cs | 45 +- .../twitter_com_current_2_62_.cs | 36 +- .../unicourt_com_1_0_0_.cs | 2010 ++++++----------- .../va_gov_benefits_1_0_0_.cs | 3 +- .../va_gov_facilities_0_0_1_.cs | 6 +- .../velopayments_com_2_35_57_.cs | 717 ++---- .../CsOpenApi3TestsResults/visma_com_1_0_.cs | 42 +- .../visualstudio_com_v1_.cs | 18 +- ...ex_local_Intelligent_Search_API_0_1_12_.cs | 3 +- .../webflow_com_2023_03_23T154040Z_.cs | 18 +- .../yodlee_com_1_1_0_.cs | 81 +- .../azure_com_analysisservices_2017_08_01.cs | 3 +- ..._blueprintAssignment_2018_11_01_preview.cs | 3 +- ..._blueprintDefinition_2018_11_01_preview.cs | 6 +- ...om_containerregistry_2019_12_01_preview.cs | 3 +- ...tafactory_IntegrationRuntime_2018_06_01.cs | 3 +- ...zure_com_datafactory_Trigger_2018_06_01.cs | 12 +- .../azure_com_iothub_2019_11_04.cs | 6 +- ...zure_com_mediaservices_media_2015_10_01.cs | 3 +- .../azure_com_netapp_2019_11_01.cs | 27 +- ..._map_arm_service_map_2015_11_01_preview.cs | 3 +- .../azure_com_signalr_2018_10_01.cs | 3 +- ...ure_com_web_ResourceProvider_2019_08_01.cs | 3 +- .../squareup_com_2_0.cs | 3 +- .../twilio_com_2010_04_01.cs | 21 +- .../wealthport_com_1_0.cs | 3 +- Tests/CsSwagger2TestsResults/wedpax_com_v1.cs | 156 +- .../winsms_co_za_1_0_0.cs | 27 +- Tests/SwagTestsResults/mcp.cs | 291 +-- 305 files changed, 7994 insertions(+), 15908 deletions(-) diff --git a/Fonlow.OpenApiClientGen.ClientTypes/ComponentsToTypesBase.cs b/Fonlow.OpenApiClientGen.ClientTypes/ComponentsToTypesBase.cs index 39f7e5ec..d4d18fbe 100644 --- a/Fonlow.OpenApiClientGen.ClientTypes/ComponentsToTypesBase.cs +++ b/Fonlow.OpenApiClientGen.ClientTypes/ComponentsToTypesBase.cs @@ -106,7 +106,7 @@ public void CreateCodeDomForComponents(OpenApiComponents components) var groupedComponentsSchemas = ComponentsSchemas .GroupBy(d => NameFunc.GetNamespaceOfClassName(d.Key)) .OrderBy(k => k.Key); // always sort namespaces if there are multiple ones - //var namespacesOfTypes = groupedComponentsSchemas.Select(d => d.Key).ToArray(); + //var namespacesOfTypes = groupedComponentsSchemas.Select(d => d.Key).ToArray(); foreach (var groupedTypes in groupedComponentsSchemas) { var classNamespaceText = groupedTypes.Key; @@ -589,15 +589,22 @@ public CodeTypeReference PropertySchemaToCodeTypeReference(OpenApiSchema propert protected virtual void AddValidationAttributes(OpenApiSchema fieldSchema, CodeMemberField memberField) { - if (fieldSchema.MinLength.HasValue) + if (fieldSchema.MinLength.HasValue && fieldSchema.MaxLength.HasValue) + { + CodeSnippetExpression minLen = new(fieldSchema.MinLength.Value.ToString()); + CodeSnippetExpression maxLen = new(fieldSchema.MaxLength.Value.ToString()); + CodeAttributeArgument[] attributeParams = new CodeAttributeArgument[] { new CodeAttributeArgument(minLen), new CodeAttributeArgument(maxLen) }; + CodeAttributeDeclaration cad = new("System.ComponentModel.DataAnnotations.Length", attributeParams); //.NET 8 feature + memberField.CustomAttributes.Add(cad); + } + else if (fieldSchema.MinLength.HasValue) { CodeSnippetExpression len = new(fieldSchema.MinLength.Value.ToString()); CodeAttributeArgument[] attributeParams = new CodeAttributeArgument[] { new CodeAttributeArgument(len) }; CodeAttributeDeclaration cad = new("System.ComponentModel.DataAnnotations.MinLength", attributeParams); memberField.CustomAttributes.Add(cad); } - - if (fieldSchema.MaxLength.HasValue) + else if (fieldSchema.MaxLength.HasValue) { CodeSnippetExpression len = new(fieldSchema.MaxLength.Value.ToString()); CodeAttributeArgument[] attributeParams = new CodeAttributeArgument[] { new CodeAttributeArgument(len) }; @@ -642,15 +649,22 @@ protected virtual void AddValidationAttributes(OpenApiSchema fieldSchema, CodeMe memberField.CustomAttributes.Add(cad); } - if (fieldSchema.MinItems.HasValue) + if (fieldSchema.MinItems.HasValue && fieldSchema.MaxItems.HasValue) + { + CodeSnippetExpression minLen = new(fieldSchema.MinItems.Value.ToString()); + CodeSnippetExpression maxLen = new(fieldSchema.MaxItems.Value.ToString()); + CodeAttributeArgument[] attributeParams = new CodeAttributeArgument[] { new CodeAttributeArgument(minLen), new CodeAttributeArgument(maxLen) }; + CodeAttributeDeclaration cad = new("System.ComponentModel.DataAnnotations.Length", attributeParams); //.NET 8 feature + memberField.CustomAttributes.Add(cad); + } + else if (fieldSchema.MinItems.HasValue) { CodeSnippetExpression len = new(fieldSchema.MinItems.Value.ToString()); CodeAttributeArgument[] attributeParams = new CodeAttributeArgument[] { new CodeAttributeArgument(len) }; CodeAttributeDeclaration cad = new("System.ComponentModel.DataAnnotations.MinLength", attributeParams); memberField.CustomAttributes.Add(cad); } - - if (fieldSchema.MaxItems.HasValue) + else if (fieldSchema.MaxItems.HasValue) { CodeSnippetExpression len = new(fieldSchema.MaxItems.Value.ToString()); CodeAttributeArgument[] attributeParams = new CodeAttributeArgument[] { new CodeAttributeArgument(len) }; @@ -696,7 +710,7 @@ static KeyValuePair[] ExtractRequestBodiesOfApplicationJs { if (d.Value.Content.TryGetValue("application/json", out OpenApiMediaType mediaTypeObject)) { - if (mediaTypeObject.Schema.Reference == null && (mediaTypeObject.Schema.Properties==null || mediaTypeObject.Schema.Properties.Count == 0)) + if (mediaTypeObject.Schema.Reference == null && (mediaTypeObject.Schema.Properties == null || mediaTypeObject.Schema.Properties.Count == 0)) { return false; } diff --git a/OpenApiClientGenCore.NG2FormGroup/CodeObjectHelperForNg2FormGroup.cs b/OpenApiClientGenCore.NG2FormGroup/CodeObjectHelperForNg2FormGroup.cs index 4f06b45e..b49264b6 100644 --- a/OpenApiClientGenCore.NG2FormGroup/CodeObjectHelperForNg2FormGroup.cs +++ b/OpenApiClientGenCore.NG2FormGroup/CodeObjectHelperForNg2FormGroup.cs @@ -222,12 +222,15 @@ static string GetCodeMemberFieldTextForAngularFormGroup(CodeMemberField codeMemb case "System.ComponentModel.DataAnnotations.Required": validatorList.Add("Validators.required"); break; - case "System.ComponentModel.DataAnnotations.MaxLength": - AddMaxLengthValidations(ca, validatorList); + case "System.ComponentModel.DataAnnotations.Length": + AddLengthValidations(ca, validatorList); break; case "System.ComponentModel.DataAnnotations.MinLength": AddMinLengthValidations(ca, validatorList); break; + case "System.ComponentModel.DataAnnotations.MaxLength": + AddMaxLengthValidations(ca, validatorList); + break; case "System.ComponentModel.DataAnnotations.Range": // for minimum and maximum AddNumberRangeValidations(ca, validatorList); break; @@ -310,6 +313,24 @@ static void AddNumberRangeValidations(CodeAttributeDeclaration ca, List } } + static void AddLengthValidations(CodeAttributeDeclaration ca, List validatorList) + { + Debug.Assert(ca.Arguments.Count == 2); + var arg0 = ca.Arguments[0]; + var arg0VExpression = arg0.Value as CodeSnippetExpression; + var arg1 = ca.Arguments[1]; + var arg1VExpression = arg1.Value as CodeSnippetExpression; + if (!arg0VExpression.Value.Contains("MinValue")) + { + validatorList.Add($"Validators.minLength({arg0VExpression.Value})"); + } + + if (!arg1VExpression.Value.Contains("MaxValue")) + { + validatorList.Add($"Validators.maxLength({arg1VExpression.Value})"); + } + } + static void AddMinLengthValidations(CodeAttributeDeclaration ca, List validatorList) { Debug.Assert(ca.Arguments.Count == 1); diff --git a/Tests/CsOpenApi3TestsResults/amadeus_com_2_2_0_.cs b/Tests/CsOpenApi3TestsResults/amadeus_com_2_2_0_.cs index 5ec36c0c..22900d98 100644 --- a/Tests/CsOpenApi3TestsResults/amadeus_com_2_2_0_.cs +++ b/Tests/CsOpenApi3TestsResults/amadeus_com_2_2_0_.cs @@ -433,8 +433,7 @@ public class FlightOffer /// Maximum items: 250 /// [System.Runtime.Serialization.DataMember(Name="itineraries")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(1, 250)] public FlightOfferItineraries[] FlightOfferItineraries { get; set; } /// @@ -491,8 +490,7 @@ public class FlightOffer /// Maximum items: 18 /// [System.Runtime.Serialization.DataMember(Name="travelerPricings")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(1, 18)] public FlightOfferTravelerPricings[] FlightOfferTravelerPricings { get; set; } /// @@ -509,8 +507,7 @@ public class FlightOffer /// Maximum items: 9 /// [System.Runtime.Serialization.DataMember(Name="validatingAirlineCodes")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(9)] + [System.ComponentModel.DataAnnotations.Length(1, 9)] public string[] ValidatingAirlineCodes { get; set; } } @@ -530,8 +527,7 @@ public class FlightOfferItineraries /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="segments")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(9)] + [System.ComponentModel.DataAnnotations.Length(1, 9)] public Segment[] Segments { get; set; } } @@ -597,8 +593,7 @@ public class FlightOfferTravelerPricings /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="fareDetailsBySegment")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(1, 18)] public FlightOfferTravelerPricingsFareDetailsBySegment[] FlightOfferTravelerPricingsFareDetailsBySegment { get; set; } /// @@ -851,8 +846,7 @@ public class FlightSegment /// Max length: 2 /// [System.Runtime.Serialization.DataMember(Name="carrierCode")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(1, 2)] public string CarrierCode { get; set; } /// @@ -873,8 +867,7 @@ public class FlightSegment /// Max length: 4 /// [System.Runtime.Serialization.DataMember(Name="number")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(1, 4)] public string Number { get; set; } /// @@ -903,8 +896,7 @@ public class OperatingFlight /// Max length: 2 /// [System.Runtime.Serialization.DataMember(Name="carrierCode")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(1, 2)] public string CarrierCode { get; set; } } @@ -946,8 +938,7 @@ public class GetFlightOffersQuery /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="originDestinations")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(6)] + [System.ComponentModel.DataAnnotations.Length(1, 6)] public OriginDestination[] OriginDestinations { get; set; } [System.Runtime.Serialization.DataMember(Name="searchCriteria")] @@ -970,8 +961,7 @@ public class GetFlightOffersQuery /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="travelers")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(1, 18)] public Traveler[] Travelers { get; set; } } @@ -985,8 +975,7 @@ public class OriginDestination /// Maximum items: 2 /// [System.Runtime.Serialization.DataMember(Name="alternativeDestinationsCodes")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(1, 2)] public string[] AlternativeDestinationsCodes { get; set; } /// @@ -995,8 +984,7 @@ public class OriginDestination /// Maximum items: 2 /// [System.Runtime.Serialization.DataMember(Name="alternativeOriginsCodes")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(1, 2)] public string[] AlternativeOriginsCodes { get; set; } [System.Runtime.Serialization.DataMember(Name="arrivalDateTimeRange")] @@ -1026,8 +1014,7 @@ public class OriginDestination /// Maximum items: 3 /// [System.Runtime.Serialization.DataMember(Name="excludedConnectionPoints")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(1, 3)] public string[] ExcludedConnectionPoints { get; set; } [System.Runtime.Serialization.DataMember(Name="id")] @@ -1039,8 +1026,7 @@ public class OriginDestination /// Maximum items: 2 /// [System.Runtime.Serialization.DataMember(Name="includedConnectionPoints")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(1, 2)] public string[] IncludedConnectionPoints { get; set; } /// @@ -1143,8 +1129,7 @@ public class SearchCriteriaFlightFilters /// Maximum items: 6 /// [System.Runtime.Serialization.DataMember(Name="cabinRestrictions")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(6)] + [System.ComponentModel.DataAnnotations.Length(1, 6)] public SearchCriteriaFlightFiltersCabinRestrictions[] SearchCriteriaFlightFiltersCabinRestrictions { get; set; } /// @@ -1227,8 +1212,7 @@ public class SearchCriteriaFlightFiltersCarrierRestrictions /// Maximum items: 99 /// [System.Runtime.Serialization.DataMember(Name="excludedCarrierCodes")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(99)] + [System.ComponentModel.DataAnnotations.Length(1, 99)] public string[] ExcludedCarrierCodes { get; set; } /// @@ -1237,8 +1221,7 @@ public class SearchCriteriaFlightFiltersCarrierRestrictions /// Maximum items: 99 /// [System.Runtime.Serialization.DataMember(Name="includedCarrierCodes")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(99)] + [System.ComponentModel.DataAnnotations.Length(1, 99)] public string[] IncludedCarrierCodes { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_accessanalyzer_2019_11_01_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_accessanalyzer_2019_11_01_.cs index c81bce75..9bb4749c 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_accessanalyzer_2019_11_01_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_accessanalyzer_2019_11_01_.cs @@ -3487,8 +3487,7 @@ public class ApplyArchiveRulePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="ruleName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-Za-z][A-Za-z0-9_.-]*")] public string RuleName { get; set; } @@ -3539,8 +3538,7 @@ public class CreateAnalyzerPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="analyzerName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-Za-z][A-Za-z0-9_.-]*")] public string AnalyzerName { get; set; } @@ -3583,8 +3581,7 @@ public class CreateArchiveRulePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="ruleName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-Za-z][A-Za-z0-9_.-]*")] public string RuleName { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_account_2021_02_01_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_account_2021_02_01_.cs index 2b87ef45..a2623f1c 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_account_2021_02_01_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_account_2021_02_01_.cs @@ -695,8 +695,7 @@ public class DisableRegionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string RegionName { get; set; } } @@ -719,8 +718,7 @@ public class EnableRegionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string RegionName { get; set; } } @@ -775,8 +773,7 @@ public class GetRegionOptStatusPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string RegionName { get; set; } } @@ -806,8 +803,7 @@ public class ListRegionsPostBody /// Max length: 1000 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] public string NextToken { get; set; } /// @@ -845,8 +841,7 @@ public class PutAlternateContactPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(254)] + [System.ComponentModel.DataAnnotations.Length(1, 254)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\s]*[\w+=.#|!&-]+@[\w.-]+\.[\w]+[\s]*$")] public string EmailAddress { get; set; } @@ -858,8 +853,7 @@ public class PutAlternateContactPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string Name { get; set; } /// @@ -871,8 +865,7 @@ public class PutAlternateContactPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(1, 25)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\s0-9()+-]+$")] public string PhoneNumber { get; set; } @@ -884,8 +877,7 @@ public class PutAlternateContactPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string Title { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_alexaforbusiness_2017_11_09_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_alexaforbusiness_2017_11_09_.cs index f762629c..f00fba80 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_alexaforbusiness_2017_11_09_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_alexaforbusiness_2017_11_09_.cs @@ -711,8 +711,7 @@ public class CreateNetworkProfileRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(10)] - [System.ComponentModel.DataAnnotations.MaxLength(150)] + [System.ComponentModel.DataAnnotations.Length(10, 150)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9][a-zA-Z0-9_-]*")] public string ClientRequestToken { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_amp_2020_08_01_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_amp_2020_08_01_.cs index 380461e2..9e02f0f8 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_amp_2020_08_01_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_amp_2020_08_01_.cs @@ -1722,8 +1722,7 @@ public class CreateAlertManagerDefinitionPostBody /// Pattern: [!-~]+ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[!-~]+")] public string ClientToken { get; set; } } @@ -1746,8 +1745,7 @@ public class PutAlertManagerDefinitionPutBody /// Pattern: [!-~]+ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[!-~]+")] public string ClientToken { get; set; } } @@ -1772,8 +1770,7 @@ public class CreateLoggingConfigurationPostBody /// Pattern: [!-~]+ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[!-~]+")] public string ClientToken { get; set; } } @@ -1798,8 +1795,7 @@ public class UpdateLoggingConfigurationPutBody /// Pattern: [!-~]+ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[!-~]+")] public string ClientToken { get; set; } } @@ -1816,8 +1812,7 @@ public class CreateRuleGroupsNamespacePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*[0-9A-Za-z][-.0-9A-Z_a-z]*.*")] public string Name { get; set; } @@ -1836,8 +1831,7 @@ public class CreateRuleGroupsNamespacePostBody /// Pattern: [!-~]+ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[!-~]+")] public string ClientToken { get; set; } @@ -1857,8 +1851,7 @@ public class CreateWorkspacePostBody /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="alias")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Alias { get; set; } /// @@ -1868,8 +1861,7 @@ public class CreateWorkspacePostBody /// Pattern: [!-~]+ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[!-~]+")] public string ClientToken { get; set; } @@ -1898,8 +1890,7 @@ public class PutRuleGroupsNamespacePutBody /// Pattern: [!-~]+ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[!-~]+")] public string ClientToken { get; set; } } @@ -1925,8 +1916,7 @@ public class UpdateWorkspaceAliasPostBody /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="alias")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Alias { get; set; } /// @@ -1936,8 +1926,7 @@ public class UpdateWorkspaceAliasPostBody /// Pattern: [!-~]+ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[!-~]+")] public string ClientToken { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_amplify_2017_07_25_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_amplify_2017_07_25_.cs index 16dc356c..7fe9c008 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_amplify_2017_07_25_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_amplify_2017_07_25_.cs @@ -3460,8 +3460,7 @@ public class CreateAppPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\(\?s\).\+")] public string Name { get; set; } @@ -3498,8 +3497,7 @@ public class CreateAppPostBody /// Pattern: \(\?s\).* /// [System.Runtime.Serialization.DataMember(Name="iamServiceRoleArn")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\(\?s\).*")] public string IamServiceRoleArn { get; set; } @@ -3520,8 +3518,7 @@ public class CreateAppPostBody /// Pattern: \(\?s\).\+ /// [System.Runtime.Serialization.DataMember(Name="accessToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\(\?s\).\+")] public string AccessToken { get; set; } @@ -3578,8 +3575,7 @@ public class CreateAppPostBody /// Pattern: \(\?s\).\+ /// [System.Runtime.Serialization.DataMember(Name="buildSpec")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(25000)] + [System.ComponentModel.DataAnnotations.Length(1, 25000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\(\?s\).\+")] public string BuildSpec { get; set; } @@ -3590,8 +3586,7 @@ public class CreateAppPostBody /// Pattern: \(\?s\).* /// [System.Runtime.Serialization.DataMember(Name="customHeaders")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(25000)] + [System.ComponentModel.DataAnnotations.Length(0, 25000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\(\?s\).*")] public string CustomHeaders { get; set; } @@ -3660,8 +3655,7 @@ public class CreateBackendEnvironmentPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="environmentName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\(\?s\).\+")] public string EnvironmentName { get; set; } @@ -3672,8 +3666,7 @@ public class CreateBackendEnvironmentPostBody /// Pattern: \(\?s\).\+ /// [System.Runtime.Serialization.DataMember(Name="stackName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\(\?s\).\+")] public string StackName { get; set; } @@ -3684,8 +3677,7 @@ public class CreateBackendEnvironmentPostBody /// Pattern: \(\?s\).\+ /// [System.Runtime.Serialization.DataMember(Name="deploymentArtifacts")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\(\?s\).\+")] public string DeploymentArtifacts { get; set; } } @@ -3702,8 +3694,7 @@ public class CreateBranchPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="branchName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\(\?s\).\+")] public string BranchName { get; set; } @@ -3786,8 +3777,7 @@ public class CreateBranchPostBody /// Pattern: \(\?s\).\+ /// [System.Runtime.Serialization.DataMember(Name="buildSpec")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(25000)] + [System.ComponentModel.DataAnnotations.Length(1, 25000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\(\?s\).\+")] public string BuildSpec { get; set; } @@ -3798,8 +3788,7 @@ public class CreateBranchPostBody /// Pattern: \d* /// [System.Runtime.Serialization.DataMember(Name="ttl")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(0, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\d*")] public string Ttl { get; set; } @@ -3836,8 +3825,7 @@ public class CreateBranchPostBody /// Pattern: \(\?s\).* /// [System.Runtime.Serialization.DataMember(Name="backendEnvironmentArn")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\(\?s\).*")] public string BackendEnvironmentArn { get; set; } } @@ -3912,8 +3900,7 @@ public class CreateWebhookPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="branchName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\(\?s\).\+")] public string BranchName { get; set; } @@ -3938,8 +3925,7 @@ public class UpdateAppPostBody /// Pattern: \(\?s\).\+ /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\(\?s\).\+")] public string Name { get; set; } @@ -3966,8 +3952,7 @@ public class UpdateAppPostBody /// Pattern: \(\?s\).* /// [System.Runtime.Serialization.DataMember(Name="iamServiceRoleArn")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\(\?s\).*")] public string IamServiceRoleArn { get; set; } @@ -4018,8 +4003,7 @@ public class UpdateAppPostBody /// Pattern: \(\?s\).\+ /// [System.Runtime.Serialization.DataMember(Name="buildSpec")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(25000)] + [System.ComponentModel.DataAnnotations.Length(1, 25000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\(\?s\).\+")] public string BuildSpec { get; set; } @@ -4030,8 +4014,7 @@ public class UpdateAppPostBody /// Pattern: \(\?s\).* /// [System.Runtime.Serialization.DataMember(Name="customHeaders")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(25000)] + [System.ComponentModel.DataAnnotations.Length(0, 25000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\(\?s\).*")] public string CustomHeaders { get; set; } @@ -4080,8 +4063,7 @@ public class UpdateAppPostBody /// Pattern: \(\?s\).\+ /// [System.Runtime.Serialization.DataMember(Name="accessToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\(\?s\).\+")] public string AccessToken { get; set; } } @@ -4196,8 +4178,7 @@ public class UpdateBranchPostBody /// Pattern: \(\?s\).\+ /// [System.Runtime.Serialization.DataMember(Name="buildSpec")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(25000)] + [System.ComponentModel.DataAnnotations.Length(1, 25000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\(\?s\).\+")] public string BuildSpec { get; set; } @@ -4208,8 +4189,7 @@ public class UpdateBranchPostBody /// Pattern: \d* /// [System.Runtime.Serialization.DataMember(Name="ttl")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(0, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\d*")] public string Ttl { get; set; } @@ -4246,8 +4226,7 @@ public class UpdateBranchPostBody /// Pattern: \(\?s\).* /// [System.Runtime.Serialization.DataMember(Name="backendEnvironmentArn")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\(\?s\).*")] public string BackendEnvironmentArn { get; set; } } @@ -4296,8 +4275,7 @@ public class UpdateWebhookPostBody /// Pattern: \(\?s\).\+ /// [System.Runtime.Serialization.DataMember(Name="branchName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\(\?s\).\+")] public string BranchName { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_appconfig_2019_10_09_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_appconfig_2019_10_09_.cs index 9f763fd3..6bac29f0 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_appconfig_2019_10_09_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_appconfig_2019_10_09_.cs @@ -2625,8 +2625,7 @@ public class CreateApplicationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string Name { get; set; } /// @@ -2635,8 +2634,7 @@ public class CreateApplicationPostBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] public string Description { get; set; } /// @@ -2657,8 +2655,7 @@ public class CreateConfigurationProfilePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Name { get; set; } /// @@ -2667,8 +2664,7 @@ public class CreateConfigurationProfilePostBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] public string Description { get; set; } /// @@ -2679,8 +2675,7 @@ public class CreateConfigurationProfilePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string LocationUri { get; set; } /// @@ -2690,8 +2685,7 @@ public class CreateConfigurationProfilePostBody /// Pattern: ^((arn):(aws|aws-cn|aws-iso|aws-iso-[a-z]{1}|aws-us-gov):(iam)::\d{12}:role[/].*)$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^((arn):(aws|aws-cn|aws-iso|aws-iso-[a-z]{1}|aws-us-gov):(iam)::\d{12}:role[/].*)$")] public string RetrievalRoleArn { get; set; } @@ -2701,8 +2695,7 @@ public class CreateConfigurationProfilePostBody /// Maximum items: 2 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(0, 2)] public Validator[] Validators { get; set; } /// @@ -2731,8 +2724,7 @@ public class CreateDeploymentStrategyPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string Name { get; set; } /// @@ -2741,8 +2733,7 @@ public class CreateDeploymentStrategyPostBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] public string Description { get; set; } /// @@ -2806,8 +2797,7 @@ public class CreateEnvironmentPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string Name { get; set; } /// @@ -2816,8 +2806,7 @@ public class CreateEnvironmentPostBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] public string Description { get; set; } /// @@ -2826,8 +2815,7 @@ public class CreateEnvironmentPostBody /// Maximum items: 5 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(0, 5)] public Monitor[] Monitors { get; set; } /// @@ -2848,8 +2836,7 @@ public class CreateExtensionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string Name { get; set; } /// @@ -2858,8 +2845,7 @@ public class CreateExtensionPostBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] public string Description { get; set; } /// @@ -2894,8 +2880,7 @@ public class CreateExtensionAssociationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string ExtensionIdentifier { get; set; } /// @@ -2912,8 +2897,7 @@ public class CreateExtensionAssociationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string ResourceIdentifier { get; set; } /// @@ -2950,8 +2934,7 @@ public class UpdateApplicationPatchBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string Name { get; set; } /// @@ -2960,8 +2943,7 @@ public class UpdateApplicationPatchBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] public string Description { get; set; } } @@ -2974,8 +2956,7 @@ public class UpdateConfigurationProfilePatchBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string Name { get; set; } /// @@ -2984,8 +2965,7 @@ public class UpdateConfigurationProfilePatchBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] public string Description { get; set; } /// @@ -2995,8 +2975,7 @@ public class UpdateConfigurationProfilePatchBody /// Pattern: ^((arn):(aws|aws-cn|aws-iso|aws-iso-[a-z]{1}|aws-us-gov):(iam)::\d{12}:role[/].*)$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^((arn):(aws|aws-cn|aws-iso|aws-iso-[a-z]{1}|aws-us-gov):(iam)::\d{12}:role[/].*)$")] public string RetrievalRoleArn { get; set; } @@ -3006,8 +2985,7 @@ public class UpdateConfigurationProfilePatchBody /// Maximum items: 2 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(0, 2)] public Validator[] Validators { get; set; } } @@ -3020,8 +2998,7 @@ public class UpdateEnvironmentPatchBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string Name { get; set; } /// @@ -3030,8 +3007,7 @@ public class UpdateEnvironmentPatchBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] public string Description { get; set; } /// @@ -3040,8 +3016,7 @@ public class UpdateEnvironmentPatchBody /// Maximum items: 5 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(0, 5)] public Monitor[] Monitors { get; set; } } @@ -3054,8 +3029,7 @@ public class UpdateExtensionPatchBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] public string Description { get; set; } /// @@ -3096,8 +3070,7 @@ public class UpdateDeploymentStrategyPatchBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] public string Description { get; set; } /// @@ -3165,8 +3138,7 @@ public class StartDeploymentPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string ConfigurationVersion { get; set; } /// @@ -3175,8 +3147,7 @@ public class StartDeploymentPostBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] public string Description { get; set; } /// @@ -3191,8 +3162,7 @@ public class StartDeploymentPostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string KmsKeyIdentifier { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_appconfigdata_2021_11_11_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_appconfigdata_2021_11_11_.cs index 790e6f7f..7a6fd94f 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_appconfigdata_2021_11_11_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_appconfigdata_2021_11_11_.cs @@ -173,8 +173,7 @@ public class StartConfigurationSessionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string ApplicationIdentifier { get; set; } /// @@ -185,8 +184,7 @@ public class StartConfigurationSessionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string EnvironmentIdentifier { get; set; } /// @@ -197,8 +195,7 @@ public class StartConfigurationSessionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string ConfigurationProfileIdentifier { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_appfabric_2023_05_19_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_appfabric_2023_05_19_.cs index 2321d45e..b7cc9c04 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_appfabric_2023_05_19_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_appfabric_2023_05_19_.cs @@ -2212,8 +2212,7 @@ public class BatchGetUserAccessTasksPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="appBundleIdentifier")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:.+$|^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}")] public string AppBundleIdentifier { get; set; } @@ -2225,8 +2224,7 @@ public class BatchGetUserAccessTasksPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="taskIdList")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string[] TaskIdList { get; set; } } @@ -2261,8 +2259,7 @@ public class CreateAppAuthorizationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="app")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string App { get; set; } /// @@ -2303,8 +2300,7 @@ public class CreateAppAuthorizationPostBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public Tag[] Tags { get; set; } } @@ -2346,8 +2342,7 @@ public class CreateAppBundlePostBody /// Pattern: arn:.+$|^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12} /// [System.Runtime.Serialization.DataMember(Name="customerManagedKeyIdentifier")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:.+$|^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}")] public string CustomerManagedKeyIdentifier { get; set; } @@ -2357,8 +2352,7 @@ public class CreateAppBundlePostBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public Tag[] Tags { get; set; } } @@ -2373,8 +2367,7 @@ public class CreateIngestionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="app")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string App { get; set; } /// @@ -2385,8 +2378,7 @@ public class CreateIngestionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="tenantId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string TenantId { get; set; } /// @@ -2411,8 +2403,7 @@ public class CreateIngestionPostBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public Tag[] Tags { get; set; } } @@ -2449,8 +2440,7 @@ public class CreateIngestionDestinationPostBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public Tag[] Tags { get; set; } } @@ -2534,8 +2524,7 @@ public class TagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public Tag[] Tags { get; set; } } @@ -2551,8 +2540,7 @@ public class StartUserAccessTasksPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="appBundleIdentifier")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:.+$|^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}")] public string AppBundleIdentifier { get; set; } @@ -2565,8 +2553,7 @@ public class StartUserAccessTasksPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="email")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(320)] + [System.ComponentModel.DataAnnotations.Length(0, 320)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*")] public string Email { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_appflow_2020_08_23_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_appflow_2020_08_23_.cs index c0eac026..a82c1da2 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_appflow_2020_08_23_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_appflow_2020_08_23_.cs @@ -6336,8 +6336,7 @@ public class CancelFlowExecutionsPostBody /// Maximum items: 100 /// [System.Runtime.Serialization.DataMember(Name="executionIds")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string[] ExecutionIds { get; set; } } @@ -6363,8 +6362,7 @@ public class CreateConnectorProfilePostBody /// Pattern: arn:aws:kms:.*:[0-9]+:.* /// [System.Runtime.Serialization.DataMember(Name="kmsArn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:kms:.*:[0-9]+:.*")] public string KmsArn { get; set; } @@ -6409,8 +6407,7 @@ public class CreateConnectorProfilePostBody /// Pattern: [ -~]+ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[ -~]+")] public string ClientToken { get; set; } } @@ -6457,8 +6454,7 @@ public class CreateFlowPostBody /// Pattern: arn:aws:kms:.*:[0-9]+:.* /// [System.Runtime.Serialization.DataMember(Name="kmsArn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:kms:.*:[0-9]+:.*")] public string KmsArn { get; set; } @@ -6513,8 +6509,7 @@ public class CreateFlowPostBody /// Pattern: [ -~]+ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[ -~]+")] public string ClientToken { get; set; } } @@ -6672,8 +6667,7 @@ public class DescribeConnectorProfilesPostBody /// Maximum items: 100 /// [System.Runtime.Serialization.DataMember(Name="connectorProfileNames")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string[] ConnectorProfileNames { get; set; } /// @@ -6721,8 +6715,7 @@ public class DescribeConnectorsPostBody /// Maximum items: 100 /// [System.Runtime.Serialization.DataMember(Name="connectorTypes")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public ConnectorType[] ConnectorTypes { get; set; } /// @@ -6955,8 +6948,7 @@ public class RegisterConnectorPostBody /// Pattern: [ -~]+ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[ -~]+")] public string ClientToken { get; set; } } @@ -7040,8 +7032,7 @@ public class StartFlowPostBody /// Pattern: [ -~]+ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[ -~]+")] public string ClientToken { get; set; } } @@ -7122,8 +7113,7 @@ public class UpdateConnectorProfilePostBody /// Pattern: [ -~]+ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[ -~]+")] public string ClientToken { get; set; } } @@ -7176,8 +7166,7 @@ public class UpdateConnectorRegistrationPostBody /// Pattern: [ -~]+ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[ -~]+")] public string ClientToken { get; set; } } @@ -7259,8 +7248,7 @@ public class UpdateFlowPostBody /// Pattern: [ -~]+ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[ -~]+")] public string ClientToken { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_appintegrations_2020_07_29_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_appintegrations_2020_07_29_.cs index 385a62f6..81c43a3e 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_appintegrations_2020_07_29_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_appintegrations_2020_07_29_.cs @@ -1093,8 +1093,7 @@ public class CreateDataIntegrationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9\/\._\-]+$")] public string Name { get; set; } @@ -1105,8 +1104,7 @@ public class CreateDataIntegrationPostBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Description { get; set; } @@ -1119,8 +1117,7 @@ public class CreateDataIntegrationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string KmsKey { get; set; } @@ -1133,8 +1130,7 @@ public class CreateDataIntegrationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(\w+\:\/\/[\w.-]+[\w/!@#+=.-]+$)|(\w+\:\/\/[\w.-]+[\w/!@#+=.-]+[\w/!@#+=.-]+[\w/!@#+=.,-]+$)")] public string SourceURI { get; set; } @@ -1159,8 +1155,7 @@ public class CreateDataIntegrationPostBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string ClientToken { get; set; } @@ -1212,8 +1207,7 @@ public class CreateEventIntegrationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9\/\._\-]+$")] public string Name { get; set; } @@ -1224,8 +1218,7 @@ public class CreateEventIntegrationPostBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Description { get; set; } @@ -1246,8 +1239,7 @@ public class CreateEventIntegrationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9\/\._\-]+$")] public string EventBridgeBus { get; set; } @@ -1258,8 +1250,7 @@ public class CreateEventIntegrationPostBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string ClientToken { get; set; } @@ -1287,8 +1278,7 @@ public class UpdateDataIntegrationPatchBody /// Pattern: ^[a-zA-Z0-9\/\._\-]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9\/\._\-]+$")] public string Name { get; set; } @@ -1299,8 +1289,7 @@ public class UpdateDataIntegrationPatchBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Description { get; set; } } @@ -1315,8 +1304,7 @@ public class UpdateEventIntegrationPatchBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Description { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_applicationcostprofiler_2020_09_10_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_applicationcostprofiler_2020_09_10_.cs index f6bab403..6fa69ba0 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_applicationcostprofiler_2020_09_10_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_applicationcostprofiler_2020_09_10_.cs @@ -582,8 +582,7 @@ public class UpdateReportDefinitionPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="reportDescription")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string ReportDescription { get; set; } @@ -659,8 +658,7 @@ public class PutReportDefinitionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="reportId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9A-Za-z\.\-_]+$")] public string ReportId { get; set; } @@ -673,8 +671,7 @@ public class PutReportDefinitionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="reportDescription")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string ReportDescription { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_appmesh_2018_10_01_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_appmesh_2018_10_01_.cs index 2424134c..1579b90d 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_appmesh_2018_10_01_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_appmesh_2018_10_01_.cs @@ -1737,8 +1737,7 @@ public class CreateMeshPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="meshName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string MeshName { get; set; } } @@ -1760,8 +1759,7 @@ public class CreateRoutePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="routeName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string RouteName { get; set; } /// @@ -1806,8 +1804,7 @@ public class CreateVirtualNodePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="virtualNodeName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string VirtualNodeName { get; set; } } @@ -1850,8 +1847,7 @@ public class CreateVirtualRouterPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="virtualRouterName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string VirtualRouterName { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_appmesh_2019_01_25_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_appmesh_2019_01_25_.cs index 3696b508..fa0b2499 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_appmesh_2019_01_25_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_appmesh_2019_01_25_.cs @@ -6028,8 +6028,7 @@ public class CreateGatewayRoutePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="gatewayRouteName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string GatewayRouteName { get; set; } /// @@ -6046,8 +6045,7 @@ public class CreateGatewayRoutePutBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public TagRef[] Tags { get; set; } } @@ -6084,8 +6082,7 @@ public class CreateMeshPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="meshName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string MeshName { get; set; } /// @@ -6100,8 +6097,7 @@ public class CreateMeshPutBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public TagRef[] Tags { get; set; } } @@ -6135,8 +6131,7 @@ public class CreateRoutePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="routeName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string RouteName { get; set; } /// @@ -6153,8 +6148,7 @@ public class CreateRoutePutBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public TagRef[] Tags { get; set; } } @@ -6200,8 +6194,7 @@ public class CreateVirtualGatewayPutBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public TagRef[] Tags { get; set; } /// @@ -6212,8 +6205,7 @@ public class CreateVirtualGatewayPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="virtualGatewayName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string VirtualGatewayName { get; set; } } @@ -6256,8 +6248,7 @@ public class CreateVirtualNodePutBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public TagRef[] Tags { get; set; } /// @@ -6268,8 +6259,7 @@ public class CreateVirtualNodePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="virtualNodeName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string VirtualNodeName { get; set; } } @@ -6315,8 +6305,7 @@ public class CreateVirtualRouterPutBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public TagRef[] Tags { get; set; } /// @@ -6327,8 +6316,7 @@ public class CreateVirtualRouterPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="virtualRouterName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string VirtualRouterName { get; set; } } @@ -6362,8 +6350,7 @@ public class CreateVirtualServicePutBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public TagRef[] Tags { get; set; } /// @@ -6614,8 +6601,7 @@ public class TagResourcePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public TagRef[] Tags { get; set; } } @@ -6630,8 +6616,7 @@ public class UntagResourcePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="tagKeys")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public string[] TagKeys { get; set; } } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_appsync_2017_07_25_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_appsync_2017_07_25_.cs index 973c91ce..e26ce93b 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_appsync_2017_07_25_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_appsync_2017_07_25_.cs @@ -4730,8 +4730,7 @@ public class CreateDataSourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65536)] + [System.ComponentModel.DataAnnotations.Length(1, 65536)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[_A-Za-z][_0-9A-Za-z]*")] public string Name { get; set; } @@ -4883,8 +4882,7 @@ public class CreateDomainNamePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="domainName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(253)] + [System.ComponentModel.DataAnnotations.Length(1, 253)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(\*[\w\d-]*\.)?([\w\d-]+\.)+[\w\d-]+$")] public string DomainName { get; set; } @@ -4897,8 +4895,7 @@ public class CreateDomainNamePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="certificateArn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:[a-z-]*:(acm|iam):[a-z0-9-]*:\d{12}:(certificate|server-certificate)/[0-9A-Za-z_/-]*$")] public string CertificateArn { get; set; } @@ -4909,8 +4906,7 @@ public class CreateDomainNamePostBody /// Pattern: ^.*$ /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^.*$")] public string Description { get; set; } } @@ -4927,8 +4923,7 @@ public class CreateFunctionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65536)] + [System.ComponentModel.DataAnnotations.Length(1, 65536)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[_A-Za-z][_0-9A-Za-z]*")] public string Name { get; set; } @@ -4947,8 +4942,7 @@ public class CreateFunctionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="dataSourceName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65536)] + [System.ComponentModel.DataAnnotations.Length(1, 65536)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[_A-Za-z][_0-9A-Za-z]*")] public string DataSourceName { get; set; } @@ -4959,8 +4953,7 @@ public class CreateFunctionPostBody /// Pattern: ^.*$ /// [System.Runtime.Serialization.DataMember(Name="requestMappingTemplate")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65536)] + [System.ComponentModel.DataAnnotations.Length(1, 65536)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^.*$")] public string RequestMappingTemplate { get; set; } @@ -4971,8 +4964,7 @@ public class CreateFunctionPostBody /// Pattern: ^.*$ /// [System.Runtime.Serialization.DataMember(Name="responseMappingTemplate")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65536)] + [System.ComponentModel.DataAnnotations.Length(1, 65536)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^.*$")] public string ResponseMappingTemplate { get; set; } @@ -5009,8 +5001,7 @@ public class CreateFunctionPostBody /// Max length: 32768 /// [System.Runtime.Serialization.DataMember(Name="code")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32768)] + [System.ComponentModel.DataAnnotations.Length(1, 32768)] public string Code { get; set; } } @@ -5193,8 +5184,7 @@ public class CreateResolverPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="fieldName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65536)] + [System.ComponentModel.DataAnnotations.Length(1, 65536)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[_A-Za-z][_0-9A-Za-z]*")] public string FieldName { get; set; } @@ -5205,8 +5195,7 @@ public class CreateResolverPostBody /// Pattern: [_A-Za-z][_0-9A-Za-z]* /// [System.Runtime.Serialization.DataMember(Name="dataSourceName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65536)] + [System.ComponentModel.DataAnnotations.Length(1, 65536)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[_A-Za-z][_0-9A-Za-z]*")] public string DataSourceName { get; set; } @@ -5217,8 +5206,7 @@ public class CreateResolverPostBody /// Pattern: ^.*$ /// [System.Runtime.Serialization.DataMember(Name="requestMappingTemplate")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65536)] + [System.ComponentModel.DataAnnotations.Length(1, 65536)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^.*$")] public string RequestMappingTemplate { get; set; } @@ -5229,8 +5217,7 @@ public class CreateResolverPostBody /// Pattern: ^.*$ /// [System.Runtime.Serialization.DataMember(Name="responseMappingTemplate")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65536)] + [System.ComponentModel.DataAnnotations.Length(1, 65536)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^.*$")] public string ResponseMappingTemplate { get; set; } @@ -5279,8 +5266,7 @@ public class CreateResolverPostBody /// Max length: 32768 /// [System.Runtime.Serialization.DataMember(Name="code")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32768)] + [System.ComponentModel.DataAnnotations.Length(1, 32768)] public string Code { get; set; } } @@ -5509,8 +5495,7 @@ public class UpdateDomainNamePostBody /// Pattern: ^.*$ /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^.*$")] public string Description { get; set; } } @@ -5527,8 +5512,7 @@ public class UpdateFunctionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65536)] + [System.ComponentModel.DataAnnotations.Length(1, 65536)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[_A-Za-z][_0-9A-Za-z]*")] public string Name { get; set; } @@ -5547,8 +5531,7 @@ public class UpdateFunctionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="dataSourceName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65536)] + [System.ComponentModel.DataAnnotations.Length(1, 65536)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[_A-Za-z][_0-9A-Za-z]*")] public string DataSourceName { get; set; } @@ -5559,8 +5542,7 @@ public class UpdateFunctionPostBody /// Pattern: ^.*$ /// [System.Runtime.Serialization.DataMember(Name="requestMappingTemplate")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65536)] + [System.ComponentModel.DataAnnotations.Length(1, 65536)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^.*$")] public string RequestMappingTemplate { get; set; } @@ -5571,8 +5553,7 @@ public class UpdateFunctionPostBody /// Pattern: ^.*$ /// [System.Runtime.Serialization.DataMember(Name="responseMappingTemplate")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65536)] + [System.ComponentModel.DataAnnotations.Length(1, 65536)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^.*$")] public string ResponseMappingTemplate { get; set; } @@ -5609,8 +5590,7 @@ public class UpdateFunctionPostBody /// Max length: 32768 /// [System.Runtime.Serialization.DataMember(Name="code")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32768)] + [System.ComponentModel.DataAnnotations.Length(1, 32768)] public string Code { get; set; } } @@ -5771,8 +5751,7 @@ public class UpdateResolverPostBody /// Pattern: [_A-Za-z][_0-9A-Za-z]* /// [System.Runtime.Serialization.DataMember(Name="dataSourceName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65536)] + [System.ComponentModel.DataAnnotations.Length(1, 65536)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[_A-Za-z][_0-9A-Za-z]*")] public string DataSourceName { get; set; } @@ -5783,8 +5762,7 @@ public class UpdateResolverPostBody /// Pattern: ^.*$ /// [System.Runtime.Serialization.DataMember(Name="requestMappingTemplate")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65536)] + [System.ComponentModel.DataAnnotations.Length(1, 65536)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^.*$")] public string RequestMappingTemplate { get; set; } @@ -5795,8 +5773,7 @@ public class UpdateResolverPostBody /// Pattern: ^.*$ /// [System.Runtime.Serialization.DataMember(Name="responseMappingTemplate")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65536)] + [System.ComponentModel.DataAnnotations.Length(1, 65536)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^.*$")] public string ResponseMappingTemplate { get; set; } @@ -5845,8 +5822,7 @@ public class UpdateResolverPostBody /// Max length: 32768 /// [System.Runtime.Serialization.DataMember(Name="code")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32768)] + [System.ComponentModel.DataAnnotations.Length(1, 32768)] public string Code { get; set; } } @@ -5950,8 +5926,7 @@ public class EvaluateCodePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="code")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32768)] + [System.ComponentModel.DataAnnotations.Length(1, 32768)] public string Code { get; set; } /// @@ -5963,8 +5938,7 @@ public class EvaluateCodePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="context")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(28000)] + [System.ComponentModel.DataAnnotations.Length(2, 28000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\s\S]*$")] public string Context { get; set; } @@ -5997,8 +5971,7 @@ public class EvaluateMappingTemplatePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="template")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(65536)] + [System.ComponentModel.DataAnnotations.Length(2, 65536)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\s\S]*$")] public string Template { get; set; } @@ -6011,8 +5984,7 @@ public class EvaluateMappingTemplatePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="context")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(28000)] + [System.ComponentModel.DataAnnotations.Length(2, 28000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\s\S]*$")] public string Context { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_arc_zonal_shift_2022_10_30_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_arc_zonal_shift_2022_10_30_.cs index a8e5b861..fa381e31 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_arc_zonal_shift_2022_10_30_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_arc_zonal_shift_2022_10_30_.cs @@ -597,8 +597,7 @@ public class UpdateZonalShiftPatchBody /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="comment")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] public string Comment { get; set; } /// @@ -608,8 +607,7 @@ public class UpdateZonalShiftPatchBody /// Pattern: ^([1-9][0-9]*)(m|h)$ /// [System.Runtime.Serialization.DataMember(Name="expiresIn")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(2, 5)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^([1-9][0-9]*)(m|h)$")] public string ExpiresIn { get; set; } } @@ -625,8 +623,7 @@ public class StartZonalShiftPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="awayFrom")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(0, 20)] public string AwayFrom { get; set; } /// @@ -637,8 +634,7 @@ public class StartZonalShiftPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="comment")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] public string Comment { get; set; } /// @@ -650,8 +646,7 @@ public class StartZonalShiftPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="expiresIn")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(2, 5)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^([1-9][0-9]*)(m|h)$")] public string ExpiresIn { get; set; } @@ -663,8 +658,7 @@ public class StartZonalShiftPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="resourceIdentifier")] - [System.ComponentModel.DataAnnotations.MinLength(8)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(8, 1024)] public string ResourceIdentifier { get; set; } } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_auditmanager_2017_07_25_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_auditmanager_2017_07_25_.cs index 18eddf36..0aa9f442 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_auditmanager_2017_07_25_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_auditmanager_2017_07_25_.cs @@ -5134,8 +5134,7 @@ public class AssociateAssessmentReportEvidenceFolderPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="evidenceFolderId")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$")] public string EvidenceFolderId { get; set; } } @@ -5152,8 +5151,7 @@ public class BatchAssociateAssessmentReportEvidencePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="evidenceFolderId")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$")] public string EvidenceFolderId { get; set; } @@ -5165,8 +5163,7 @@ public class BatchAssociateAssessmentReportEvidencePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="evidenceIds")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public string[] EvidenceIds { get; set; } } @@ -5181,8 +5178,7 @@ public class BatchCreateDelegationByAssessmentPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="createDelegationRequests")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public CreateDelegationRequest[] CreateDelegationRequests { get; set; } } @@ -5197,8 +5193,7 @@ public class BatchDeleteDelegationByAssessmentPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="delegationIds")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string[] DelegationIds { get; set; } } @@ -5214,8 +5209,7 @@ public class BatchDisassociateAssessmentReportEvidencePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="evidenceFolderId")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$")] public string EvidenceFolderId { get; set; } @@ -5227,8 +5221,7 @@ public class BatchDisassociateAssessmentReportEvidencePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="evidenceIds")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public string[] EvidenceIds { get; set; } } @@ -5243,8 +5236,7 @@ public class BatchImportEvidenceToAssessmentControlPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="manualEvidence")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public ManualEvidence[] ManualEvidence { get; set; } } @@ -5260,8 +5252,7 @@ public class CreateAssessmentPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(300)] + [System.ComponentModel.DataAnnotations.Length(1, 300)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[^\\]*$")] public string Name { get; set; } @@ -5308,8 +5299,7 @@ public class CreateAssessmentPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="frameworkId")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$")] public string FrameworkId { get; set; } @@ -5352,8 +5342,7 @@ public class CreateAssessmentFrameworkPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(300)] + [System.ComponentModel.DataAnnotations.Length(1, 300)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[^\\]*$")] public string Name { get; set; } @@ -5364,8 +5353,7 @@ public class CreateAssessmentFrameworkPostBody /// Pattern: ^[\w\W\s\S]*$ /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\w\W\s\S]*$")] public string Description { get; set; } @@ -5408,8 +5396,7 @@ public class CreateAssessmentReportPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(300)] + [System.ComponentModel.DataAnnotations.Length(1, 300)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_\.]+$")] public string Name { get; set; } @@ -5430,8 +5417,7 @@ public class CreateAssessmentReportPostBody /// Pattern: \(\?s\).* /// [System.Runtime.Serialization.DataMember(Name="queryStatement")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10000)] + [System.ComponentModel.DataAnnotations.Length(1, 10000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\(\?s\).*")] public string QueryStatement { get; set; } } @@ -5448,8 +5434,7 @@ public class CreateControlPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(300)] + [System.ComponentModel.DataAnnotations.Length(1, 300)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[^\\]*$")] public string Name { get; set; } @@ -5520,8 +5505,7 @@ public class UpdateAssessmentPutBody /// Pattern: ^[^\\]*$ /// [System.Runtime.Serialization.DataMember(Name="assessmentName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(300)] + [System.ComponentModel.DataAnnotations.Length(1, 300)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[^\\]*$")] public string AssessmentName { get; set; } @@ -5588,8 +5572,7 @@ public class UpdateAssessmentFrameworkPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(300)] + [System.ComponentModel.DataAnnotations.Length(1, 300)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[^\\]*$")] public string Name { get; set; } @@ -5600,8 +5583,7 @@ public class UpdateAssessmentFrameworkPutBody /// Pattern: ^[\w\W\s\S]*$ /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\w\W\s\S]*$")] public string Description { get; set; } @@ -5638,8 +5620,7 @@ public class UpdateControlPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(300)] + [System.ComponentModel.DataAnnotations.Length(1, 300)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[^\\]*$")] public string Name { get; set; } @@ -5704,8 +5685,7 @@ public class DeregisterOrganizationAdminAccountPostBody /// Pattern: ^[0-9]{12}$ /// [System.Runtime.Serialization.DataMember(Name="adminAccountId")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9]{12}$")] public string AdminAccountId { get; set; } } @@ -5722,8 +5702,7 @@ public class DisassociateAssessmentReportEvidenceFolderPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="evidenceFolderId")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$")] public string EvidenceFolderId { get; set; } } @@ -5750,8 +5729,7 @@ public class RegisterAccountPostBody /// Pattern: ^arn:.*:kms:.*|DEFAULT /// [System.Runtime.Serialization.DataMember(Name="kmsKey")] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(7, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:.*:kms:.*|DEFAULT")] public string KmsKey { get; set; } @@ -5762,8 +5740,7 @@ public class RegisterAccountPostBody /// Pattern: ^[0-9]{12}$ /// [System.Runtime.Serialization.DataMember(Name="delegatedAdminAccount")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9]{12}$")] public string DelegatedAdminAccount { get; set; } } @@ -5780,8 +5757,7 @@ public class RegisterOrganizationAdminAccountPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="adminAccountId")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9]{12}$")] public string AdminAccountId { get; set; } } @@ -5798,8 +5774,7 @@ public class StartAssessmentFrameworkSharePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="destinationAccount")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9]{12}$")] public string DestinationAccount { get; set; } @@ -5910,8 +5885,7 @@ public class UpdateSettingsPutBody /// Pattern: ^arn:.*:sns:.*|NONE /// [System.Runtime.Serialization.DataMember(Name="snsTopic")] - [System.ComponentModel.DataAnnotations.MinLength(4)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(4, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:.*:sns:.*|NONE")] public string SnsTopic { get; set; } @@ -5934,8 +5908,7 @@ public class UpdateSettingsPutBody /// Pattern: ^arn:.*:kms:.*|DEFAULT /// [System.Runtime.Serialization.DataMember(Name="kmsKey")] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(7, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:.*:kms:.*|DEFAULT")] public string KmsKey { get; set; } @@ -5997,8 +5970,7 @@ public class ValidateAssessmentReportIntegrityPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="s3RelativePath")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(S|s)3:\/\/[a-zA-Z0-9\-\.\(\)\'\*\_\!\/]+$")] public string S3RelativePath { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_backup_2018_11_15_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_backup_2018_11_15_.cs index 5b7adecd..0bfda481 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_backup_2018_11_15_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_backup_2018_11_15_.cs @@ -5226,8 +5226,7 @@ public class CreateFrameworkPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z][_a-zA-Z0-9]*")] public string FrameworkName { get; set; } @@ -5238,8 +5237,7 @@ public class CreateFrameworkPostBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string FrameworkDescription { get; set; } @@ -5330,8 +5328,7 @@ public class CreateReportPlanPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z][_a-zA-Z0-9]*")] public string ReportPlanName { get; set; } @@ -5342,8 +5339,7 @@ public class CreateReportPlanPostBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string ReportPlanDescription { get; set; } @@ -5498,8 +5494,7 @@ public class UpdateFrameworkPutBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string FrameworkDescription { get; set; } @@ -5546,8 +5541,7 @@ public class UpdateReportPlanPutBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string ReportPlanDescription { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_billingconductor_2021_07_30_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_billingconductor_2021_07_30_.cs index 5276764e..8bf8a7e8 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_billingconductor_2021_07_30_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_billingconductor_2021_07_30_.cs @@ -2887,8 +2887,7 @@ public class AssociateAccountsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(30)] + [System.ComponentModel.DataAnnotations.Length(1, 30)] public string[] AccountIds { get; set; } } @@ -2913,8 +2912,7 @@ public class AssociatePricingRulesPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(30)] + [System.ComponentModel.DataAnnotations.Length(1, 30)] public string[] PricingRuleArns { get; set; } } @@ -2939,8 +2937,7 @@ public class BatchAssociateResourcesToCustomLineItemPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(30)] + [System.ComponentModel.DataAnnotations.Length(1, 30)] public string[] ResourceArns { get; set; } /// @@ -2981,8 +2978,7 @@ public class BatchDisassociateResourcesFromCustomLineItemPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(30)] + [System.ComponentModel.DataAnnotations.Length(1, 30)] public string[] ResourceArns { get; set; } /// @@ -3014,8 +3010,7 @@ public class CreateBillingGroupPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_\+=\.\-@]+")] public string Name { get; set; } @@ -3049,8 +3044,7 @@ public class CreateBillingGroupPostBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] public string Description { get; set; } /// @@ -3089,8 +3083,7 @@ public class CreateCustomLineItemPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_\+=\.\-@]+")] public string Name { get; set; } @@ -3102,8 +3095,7 @@ public class CreateCustomLineItemPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Description { get; set; } /// @@ -3172,8 +3164,7 @@ public class CreatePricingPlanPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_\+=\.\-@]+")] public string Name { get; set; } @@ -3183,8 +3174,7 @@ public class CreatePricingPlanPostBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] public string Description { get; set; } /// @@ -3193,8 +3183,7 @@ public class CreatePricingPlanPostBody /// Maximum items: 30 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(30)] + [System.ComponentModel.DataAnnotations.Length(0, 30)] public string[] PricingRuleArns { get; set; } /// @@ -3216,8 +3205,7 @@ public class CreatePricingRulePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_\+=\.\-@]+")] public string Name { get; set; } @@ -3227,8 +3215,7 @@ public class CreatePricingRulePostBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] public string Description { get; set; } /// @@ -3262,8 +3249,7 @@ public class CreatePricingRulePostBody /// Pattern: [a-zA-Z0-9]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9]+")] public string Service { get; set; } @@ -3294,8 +3280,7 @@ public class CreatePricingRulePostBody /// Pattern: \S+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\S+")] public string UsageType { get; set; } @@ -3306,8 +3291,7 @@ public class CreatePricingRulePostBody /// Pattern: \S+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\S+")] public string Operation { get; set; } } @@ -3412,8 +3396,7 @@ public class DisassociateAccountsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(30)] + [System.ComponentModel.DataAnnotations.Length(1, 30)] public string[] AccountIds { get; set; } } @@ -3438,8 +3421,7 @@ public class DisassociatePricingRulesPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(30)] + [System.ComponentModel.DataAnnotations.Length(1, 30)] public string[] PricingRuleArns { get; set; } } @@ -3893,8 +3875,7 @@ public class UpdateBillingGroupPostBody /// Pattern: [a-zA-Z0-9_\+=\.\-@]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_\+=\.\-@]+")] public string Name { get; set; } @@ -3916,8 +3897,7 @@ public class UpdateBillingGroupPostBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] public string Description { get; set; } /// @@ -3961,8 +3941,7 @@ public class UpdateCustomLineItemPostBody /// Pattern: [a-zA-Z0-9_\+=\.\-@]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_\+=\.\-@]+")] public string Name { get; set; } @@ -3972,8 +3951,7 @@ public class UpdateCustomLineItemPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Description { get; set; } /// @@ -4029,8 +4007,7 @@ public class UpdatePricingPlanPutBody /// Pattern: [a-zA-Z0-9_\+=\.\-@]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_\+=\.\-@]+")] public string Name { get; set; } @@ -4040,8 +4017,7 @@ public class UpdatePricingPlanPutBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] public string Description { get; set; } } @@ -4065,8 +4041,7 @@ public class UpdatePricingRulePutBody /// Pattern: [a-zA-Z0-9_\+=\.\-@]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_\+=\.\-@]+")] public string Name { get; set; } @@ -4076,8 +4051,7 @@ public class UpdatePricingRulePutBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] public string Description { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_braket_2019_09_01_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_braket_2019_09_01_.cs index f6100207..1ea13819 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_braket_2019_09_01_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_braket_2019_09_01_.cs @@ -1810,8 +1810,7 @@ public class CancelQuantumTaskPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string ClientToken { get; set; } } @@ -1840,8 +1839,7 @@ public class CreateJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string ClientToken { get; set; } /// @@ -1864,8 +1862,7 @@ public class CreateJobPostBody /// Maximum items: 20 /// [System.Runtime.Serialization.DataMember(Name="inputDataConfig")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(0, 20)] public InputFileConfig[] InputDataConfig { get; set; } /// @@ -1885,8 +1882,7 @@ public class CreateJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="jobName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,50}$")] public string JobName { get; set; } @@ -1997,8 +1993,7 @@ public class CreateQuantumTaskPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string ClientToken { get; set; } /// @@ -2009,8 +2004,7 @@ public class CreateQuantumTaskPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="deviceArn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string DeviceArn { get; set; } /// @@ -2019,8 +2013,7 @@ public class CreateQuantumTaskPostBody /// Max length: 48000 /// [System.Runtime.Serialization.DataMember(Name="deviceParameters")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(48000)] + [System.ComponentModel.DataAnnotations.Length(1, 48000)] public string DeviceParameters { get; set; } /// @@ -2029,8 +2022,7 @@ public class CreateQuantumTaskPostBody /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="jobToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string JobToken { get; set; } /// @@ -2041,8 +2033,7 @@ public class CreateQuantumTaskPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="outputS3Bucket")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(3, 63)] public string OutputS3Bucket { get; set; } /// @@ -2053,8 +2044,7 @@ public class CreateQuantumTaskPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="outputS3KeyPrefix")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string OutputS3KeyPrefix { get; set; } /// @@ -2097,8 +2087,7 @@ public class SearchDevicesPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="filters")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(0, 10)] public SearchDevicesFilter[] Filters { get; set; } /// @@ -2128,8 +2117,7 @@ public class SearchJobsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="filters")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(0, 10)] public SearchJobsFilter[] Filters { get; set; } /// @@ -2159,8 +2147,7 @@ public class SearchQuantumTasksPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="filters")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(0, 10)] public SearchQuantumTasksFilter[] Filters { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_budgets_2016_10_20_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_budgets_2016_10_20_.cs index 68014a5a..c8fb8d95 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_budgets_2016_10_20_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_budgets_2016_10_20_.cs @@ -500,8 +500,7 @@ public class CreateBudgetActionResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\d{12}")] public string AccountId { get; set; } @@ -514,8 +513,7 @@ public class CreateBudgetActionResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?![^:\\]*/action/)[^:\\]+$")] public string BudgetName { get; set; } @@ -540,8 +538,7 @@ public class CreateBudgetActionRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\d{12}")] public string AccountId { get; set; } @@ -554,8 +551,7 @@ public class CreateBudgetActionRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?![^:\\]*/action/)[^:\\]+$")] public string BudgetName { get; set; } @@ -612,8 +608,7 @@ public class CreateBudgetActionRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(11)] + [System.ComponentModel.DataAnnotations.Length(1, 11)] public Subscriber[] Subscribers { get; set; } } @@ -908,8 +903,7 @@ public class DeleteBudgetActionResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\d{12}")] public string AccountId { get; set; } @@ -922,8 +916,7 @@ public class DeleteBudgetActionResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?![^:\\]*/action/)[^:\\]+$")] public string BudgetName { get; set; } @@ -959,8 +952,7 @@ public class Action /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?![^:\\]*/action/)[^:\\]+$")] public string BudgetName { get; set; } @@ -1022,8 +1014,7 @@ public class Action /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(11)] + [System.ComponentModel.DataAnnotations.Length(1, 11)] public Subscriber[] Subscribers { get; set; } } @@ -1075,8 +1066,7 @@ public class DeleteBudgetActionRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\d{12}")] public string AccountId { get; set; } @@ -1089,8 +1079,7 @@ public class DeleteBudgetActionRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?![^:\\]*/action/)[^:\\]+$")] public string BudgetName { get; set; } @@ -1234,8 +1223,7 @@ public class DescribeBudgetActionResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\d{12}")] public string AccountId { get; set; } @@ -1248,8 +1236,7 @@ public class DescribeBudgetActionResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?![^:\\]*/action/)[^:\\]+$")] public string BudgetName { get; set; } @@ -1274,8 +1261,7 @@ public class DescribeBudgetActionRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\d{12}")] public string AccountId { get; set; } @@ -1288,8 +1274,7 @@ public class DescribeBudgetActionRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?![^:\\]*/action/)[^:\\]+$")] public string BudgetName { get; set; } @@ -1319,8 +1304,7 @@ public class DescribeBudgetActionHistoriesResponse /// Pattern: .* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2147483647)] + [System.ComponentModel.DataAnnotations.Length(0, 2147483647)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string NextToken { get; set; } } @@ -1398,8 +1382,7 @@ public class ActionHistoryDetails /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2147483647)] + [System.ComponentModel.DataAnnotations.Length(0, 2147483647)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Message { get; set; } @@ -1424,8 +1407,7 @@ public class DescribeBudgetActionHistoriesRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\d{12}")] public string AccountId { get; set; } @@ -1438,8 +1420,7 @@ public class DescribeBudgetActionHistoriesRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?![^:\\]*/action/)[^:\\]+$")] public string BudgetName { get; set; } @@ -1472,8 +1453,7 @@ public class DescribeBudgetActionHistoriesRequest /// Pattern: .* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2147483647)] + [System.ComponentModel.DataAnnotations.Length(0, 2147483647)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string NextToken { get; set; } } @@ -1501,8 +1481,7 @@ public class DescribeBudgetActionsForAccountResponse /// Pattern: .* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2147483647)] + [System.ComponentModel.DataAnnotations.Length(0, 2147483647)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string NextToken { get; set; } } @@ -1520,8 +1499,7 @@ public class DescribeBudgetActionsForAccountRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\d{12}")] public string AccountId { get; set; } @@ -1541,8 +1519,7 @@ public class DescribeBudgetActionsForAccountRequest /// Pattern: .* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2147483647)] + [System.ComponentModel.DataAnnotations.Length(0, 2147483647)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string NextToken { get; set; } } @@ -1565,8 +1542,7 @@ public class DescribeBudgetActionsForBudgetResponse /// Pattern: .* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2147483647)] + [System.ComponentModel.DataAnnotations.Length(0, 2147483647)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string NextToken { get; set; } } @@ -1584,8 +1560,7 @@ public class DescribeBudgetActionsForBudgetRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\d{12}")] public string AccountId { get; set; } @@ -1598,8 +1573,7 @@ public class DescribeBudgetActionsForBudgetRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?![^:\\]*/action/)[^:\\]+$")] public string BudgetName { get; set; } @@ -1619,8 +1593,7 @@ public class DescribeBudgetActionsForBudgetRequest /// Pattern: .* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2147483647)] + [System.ComponentModel.DataAnnotations.Length(0, 2147483647)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string NextToken { get; set; } } @@ -1639,8 +1612,7 @@ public class DescribeBudgetNotificationsForAccountResponse /// Pattern: .* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2147483647)] + [System.ComponentModel.DataAnnotations.Length(0, 2147483647)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string NextToken { get; set; } } @@ -1665,8 +1637,7 @@ public class BudgetNotificationsForAccount /// Pattern: ^(?![^:\\]*/action/)[^:\\]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?![^:\\]*/action/)[^:\\]+$")] public string BudgetName { get; set; } } @@ -1684,8 +1655,7 @@ public class DescribeBudgetNotificationsForAccountRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\d{12}")] public string AccountId { get; set; } @@ -1699,8 +1669,7 @@ public class DescribeBudgetNotificationsForAccountRequest /// Pattern: .* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2147483647)] + [System.ComponentModel.DataAnnotations.Length(0, 2147483647)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string NextToken { get; set; } } @@ -1724,8 +1693,7 @@ public class DescribeBudgetPerformanceHistoryResponse /// Pattern: .* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2147483647)] + [System.ComponentModel.DataAnnotations.Length(0, 2147483647)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string NextToken { get; set; } } @@ -1744,8 +1712,7 @@ public class BudgetPerformanceHistory /// Pattern: ^(?![^:\\]*/action/)[^:\\]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?![^:\\]*/action/)[^:\\]+$")] public string BudgetName { get; set; } @@ -1801,8 +1768,7 @@ public class DescribeBudgetPerformanceHistoryRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\d{12}")] public string AccountId { get; set; } @@ -1815,8 +1781,7 @@ public class DescribeBudgetPerformanceHistoryRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?![^:\\]*/action/)[^:\\]+$")] public string BudgetName { get; set; } @@ -1839,8 +1804,7 @@ public class DescribeBudgetPerformanceHistoryRequest /// Pattern: .* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2147483647)] + [System.ComponentModel.DataAnnotations.Length(0, 2147483647)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string NextToken { get; set; } } @@ -1984,8 +1948,7 @@ public class ExecuteBudgetActionResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\d{12}")] public string AccountId { get; set; } @@ -1998,8 +1961,7 @@ public class ExecuteBudgetActionResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?![^:\\]*/action/)[^:\\]+$")] public string BudgetName { get; set; } @@ -2048,8 +2010,7 @@ public class ExecuteBudgetActionRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\d{12}")] public string AccountId { get; set; } @@ -2062,8 +2023,7 @@ public class ExecuteBudgetActionRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?![^:\\]*/action/)[^:\\]+$")] public string BudgetName { get; set; } @@ -2125,8 +2085,7 @@ public class UpdateBudgetActionResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\d{12}")] public string AccountId { get; set; } @@ -2139,8 +2098,7 @@ public class UpdateBudgetActionResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?![^:\\]*/action/)[^:\\]+$")] public string BudgetName { get; set; } @@ -2172,8 +2130,7 @@ public class UpdateBudgetActionRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\d{12}")] public string AccountId { get; set; } @@ -2186,8 +2143,7 @@ public class UpdateBudgetActionRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?![^:\\]*/action/)[^:\\]+$")] public string BudgetName { get; set; } @@ -2228,8 +2184,7 @@ public class UpdateBudgetActionRequest /// Maximum items: 11 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(11)] + [System.ComponentModel.DataAnnotations.Length(1, 11)] public Subscriber[] Subscribers { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_ce_2017_10_25_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_ce_2017_10_25_.cs index c66b822e..70998e3b 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_ce_2017_10_25_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_ce_2017_10_25_.cs @@ -319,8 +319,7 @@ public class CostCategoryValues /// Max length: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string Key { get; set; } [System.Runtime.Serialization.DataMember()] @@ -513,8 +512,7 @@ public class CreateCostCategoryDefinitionRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string Name { get; set; } [System.Runtime.Serialization.DataMember()] @@ -541,8 +539,7 @@ public class CreateCostCategoryDefinitionRequest /// Max length: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string DefaultValue { get; set; } [System.Runtime.Serialization.DataMember()] @@ -573,8 +570,7 @@ public class CostCategoryRule /// Max length: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string Value { get; set; } [System.Runtime.Serialization.DataMember()] @@ -814,8 +810,7 @@ public class CostCategory /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string Name { get; set; } /// @@ -845,8 +840,7 @@ public class CostCategory /// Max length: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string DefaultValue { get; set; } } @@ -1507,8 +1501,7 @@ public class GetCostCategoriesRequest /// Max length: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string CostCategoryName { get; set; } /// @@ -2997,8 +2990,7 @@ public class RecommendationDetailData /// Pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(([+-]\d\d:\d\d)|Z)$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(20, 25)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(([+-]\d\d:\d\d)|Z)$")] public string GenerationTimestamp { get; set; } @@ -3009,8 +3001,7 @@ public class RecommendationDetailData /// Pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(([+-]\d\d:\d\d)|Z)$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(20, 25)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(([+-]\d\d:\d\d)|Z)$")] public string LatestUsageTimestamp { get; set; } @@ -3094,8 +3085,7 @@ public class RecommendationDetailHourlyMetrics /// Pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(([+-]\d\d:\d\d)|Z)$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(20, 25)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(([+-]\d\d:\d\d)|Z)$")] public string StartTime { get; set; } @@ -3883,8 +3873,7 @@ public class CostCategoryReference /// Max length: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string Name { get; set; } [System.Runtime.Serialization.DataMember()] @@ -3908,8 +3897,7 @@ public class CostCategoryReference /// Max length: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string DefaultValue { get; set; } } @@ -4294,8 +4282,7 @@ public class UpdateCostCategoryDefinitionRequest /// Max length: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string DefaultValue { get; set; } [System.Runtime.Serialization.DataMember()] diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_chime_2018_05_01_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_chime_2018_05_01_.cs index 7d19b6bf..8dd5b80a 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_chime_2018_05_01_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_chime_2018_05_01_.cs @@ -12008,8 +12008,7 @@ public class BatchCreateChannelMembershipPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] MemberArns { get; set; } } @@ -12142,8 +12141,7 @@ public class CreateAccountPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string Name { get; set; } } @@ -12160,8 +12158,7 @@ public class CreateAppInstancePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\u0009\u000A\u000D\u0020-\u007E\u0085\u00A0-\uD7FF\uE000-\uFFFD\u10000-\u10FFFF]*")] public string Name { get; set; } @@ -12172,8 +12169,7 @@ public class CreateAppInstancePostBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Metadata { get; set; } @@ -12186,8 +12182,7 @@ public class CreateAppInstancePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-_a-zA-Z0-9]*")] public string ClientRequestToken { get; set; } @@ -12197,8 +12192,7 @@ public class CreateAppInstancePostBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public Tag[] Tags { get; set; } } @@ -12214,8 +12208,7 @@ public class CreateAppInstanceAdminPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(5, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[^/].{0,1023}")] public string AppInstanceAdminArn { get; set; } } @@ -12232,8 +12225,7 @@ public class CreateAppInstanceUserPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(5, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[^/].{0,1023}")] public string AppInstanceArn { get; set; } @@ -12246,8 +12238,7 @@ public class CreateAppInstanceUserPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-Za-z0-9]([A-Za-z0-9\:\-\_\.\@]{0,62}[A-Za-z0-9])?")] public string AppInstanceUserId { get; set; } @@ -12260,8 +12251,7 @@ public class CreateAppInstanceUserPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string Name { get; set; } @@ -12272,8 +12262,7 @@ public class CreateAppInstanceUserPostBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Metadata { get; set; } @@ -12286,8 +12275,7 @@ public class CreateAppInstanceUserPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-_a-zA-Z0-9]*")] public string ClientRequestToken { get; set; } @@ -12297,8 +12285,7 @@ public class CreateAppInstanceUserPostBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public Tag[] Tags { get; set; } } @@ -12313,8 +12300,7 @@ public class CreateAttendeePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] public string ExternalUserId { get; set; } /// @@ -12323,8 +12309,7 @@ public class CreateAttendeePostBody /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public Tag[] Tags { get; set; } } @@ -12360,8 +12345,7 @@ public class CreateChannelPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(5, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[^/].{0,1023}")] public string AppInstanceArn { get; set; } @@ -12374,8 +12358,7 @@ public class CreateChannelPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\u0009\u000A\u000D\u0020-\u007E\u0085\u00A0-\uD7FF\uE000-\uFFFD\u10000-\u10FFFF]*")] public string Name { get; set; } @@ -12398,8 +12381,7 @@ public class CreateChannelPostBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Metadata { get; set; } @@ -12412,8 +12394,7 @@ public class CreateChannelPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-_a-zA-Z0-9]*")] public string ClientRequestToken { get; set; } @@ -12423,8 +12404,7 @@ public class CreateChannelPostBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public Tag[] Tags { get; set; } } @@ -12440,8 +12420,7 @@ public class CreateChannelBanPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(5, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[^/].{0,1023}")] public string MemberArn { get; set; } } @@ -12458,8 +12437,7 @@ public class CreateChannelMembershipPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(5, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[^/].{0,1023}")] public string MemberArn { get; set; } @@ -12484,8 +12462,7 @@ public class CreateChannelModeratorPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(5, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[^/].{0,1023}")] public string ChannelModeratorArn { get; set; } } @@ -12510,8 +12487,7 @@ public class CreateMediaCapturePipelinePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn[\/\:\-\_\.a-zA-Z0-9]+$")] public string SourceArn { get; set; } @@ -12532,8 +12508,7 @@ public class CreateMediaCapturePipelinePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn[\/\:\-\_\.a-zA-Z0-9]+$")] public string SinkArn { get; set; } @@ -12544,8 +12519,7 @@ public class CreateMediaCapturePipelinePostBody /// Pattern: [-_a-zA-Z0-9]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-_a-zA-Z0-9]*")] public string ClientRequestToken { get; set; } @@ -12578,8 +12552,7 @@ public class CreateMeetingPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-_a-zA-Z0-9]*")] public string ClientRequestToken { get; set; } @@ -12589,8 +12562,7 @@ public class CreateMeetingPostBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] public string ExternalMeetingId { get; set; } /// @@ -12599,8 +12571,7 @@ public class CreateMeetingPostBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] public string MeetingHostId { get; set; } /// @@ -12615,8 +12586,7 @@ public class CreateMeetingPostBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public Tag[] Tags { get; set; } /// @@ -12668,8 +12638,7 @@ public class CreateMeetingDialOutPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(2, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9+/]+$")] public string JoinToken { get; set; } } @@ -12693,8 +12662,7 @@ public class CreateMeetingWithAttendeesPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-_a-zA-Z0-9]*")] public string ClientRequestToken { get; set; } @@ -12704,8 +12672,7 @@ public class CreateMeetingWithAttendeesPostBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] public string ExternalMeetingId { get; set; } /// @@ -12714,8 +12681,7 @@ public class CreateMeetingWithAttendeesPostBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] public string MeetingHostId { get; set; } /// @@ -12730,8 +12696,7 @@ public class CreateMeetingWithAttendeesPostBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public Tag[] Tags { get; set; } /// @@ -12746,8 +12711,7 @@ public class CreateMeetingWithAttendeesPostBody /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public CreateAttendeeRequestItem[] Attendees { get; set; } } @@ -12792,8 +12756,7 @@ public class CreateProxySessionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] public string[] ParticipantPhoneNumbers { get; set; } /// @@ -12867,8 +12830,7 @@ public class CreateRoomPostBody /// Pattern: [-_a-zA-Z0-9]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-_a-zA-Z0-9]*")] public string ClientRequestToken { get; set; } } @@ -12912,8 +12874,7 @@ public class CreateSipMediaApplicationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Name { get; set; } /// @@ -12924,8 +12885,7 @@ public class CreateSipMediaApplicationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public SipMediaApplicationEndpoint[] Endpoints { get; set; } } @@ -12970,8 +12930,7 @@ public class CreateSipRulePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Name { get; set; } /// @@ -13006,8 +12965,7 @@ public class CreateSipRulePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(1, 25)] public SipRuleTargetApplication[] TargetApplications { get; set; } } @@ -13053,8 +13011,7 @@ public class CreateVoiceConnectorPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Name { get; set; } /// @@ -13094,8 +13051,7 @@ public class CreateVoiceConnectorGroupPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Name { get; set; } /// @@ -13115,8 +13071,7 @@ public class UpdateAccountPostBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string Name { get; set; } @@ -13139,8 +13094,7 @@ public class UpdateAppInstancePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\u0009\u000A\u000D\u0020-\u007E\u0085\u00A0-\uD7FF\uE000-\uFFFD\u10000-\u10FFFF]*")] public string Name { get; set; } @@ -13151,8 +13105,7 @@ public class UpdateAppInstancePutBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Metadata { get; set; } } @@ -13168,8 +13121,7 @@ public class PutAppInstanceStreamingConfigurationsPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(1, 2)] public AppInstanceStreamingConfiguration[] AppInstanceStreamingConfigurations { get; set; } } @@ -13185,8 +13137,7 @@ public class UpdateAppInstanceUserPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string Name { get; set; } @@ -13197,8 +13148,7 @@ public class UpdateAppInstanceUserPutBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Metadata { get; set; } } @@ -13215,8 +13165,7 @@ public class UpdateChannelPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\u0009\u000A\u000D\u0020-\u007E\u0085\u00A0-\uD7FF\uE000-\uFFFD\u10000-\u10FFFF]*")] public string Name { get; set; } @@ -13235,8 +13184,7 @@ public class UpdateChannelPutBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Metadata { get; set; } } @@ -13251,8 +13199,7 @@ public class UpdateChannelMessagePutBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4096)] + [System.ComponentModel.DataAnnotations.Length(0, 4096)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string Content { get; set; } @@ -13263,8 +13210,7 @@ public class UpdateChannelMessagePutBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Metadata { get; set; } } @@ -13352,8 +13298,7 @@ public class UpdateSipMediaApplicationPutBody /// Max length: 256 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Name { get; set; } /// @@ -13362,8 +13307,7 @@ public class UpdateSipMediaApplicationPutBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public SipMediaApplicationEndpoint[] Endpoints { get; set; } } @@ -13378,8 +13322,7 @@ public class UpdateSipRulePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Name { get; set; } /// @@ -13394,8 +13337,7 @@ public class UpdateSipRulePutBody /// Maximum items: 25 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(1, 25)] public SipRuleTargetApplication[] TargetApplications { get; set; } } @@ -13410,8 +13352,7 @@ public class UpdateVoiceConnectorPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Name { get; set; } /// @@ -13453,8 +13394,7 @@ public class UpdateVoiceConnectorGroupPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Name { get; set; } /// @@ -13507,8 +13447,7 @@ public class PutVoiceConnectorProxyPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] PhoneNumberPoolCountries { get; set; } /// @@ -13960,8 +13899,7 @@ public class SendChannelMessagePostBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Metadata { get; set; } @@ -13974,8 +13912,7 @@ public class SendChannelMessagePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-_a-zA-Z0-9]*")] public string ClientRequestToken { get; set; } } @@ -14093,8 +14030,7 @@ public class TagAttendeePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public Tag[] Tags { get; set; } } @@ -14109,8 +14045,7 @@ public class TagMeetingPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public Tag[] Tags { get; set; } } @@ -14133,8 +14068,7 @@ public class TagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn[\/\:\-\_\.a-zA-Z0-9]+$")] public string ResourceARN { get; set; } @@ -14146,8 +14080,7 @@ public class TagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public Tag[] Tags { get; set; } } @@ -14162,8 +14095,7 @@ public class UntagAttendeePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public string[] TagKeys { get; set; } } @@ -14178,8 +14110,7 @@ public class UntagMeetingPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string[] TagKeys { get; set; } } @@ -14202,8 +14133,7 @@ public class UntagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn[\/\:\-\_\.a-zA-Z0-9]+$")] public string ResourceARN { get; set; } @@ -14215,8 +14145,7 @@ public class UntagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string[] TagKeys { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_chime_sdk_identity_2021_04_20_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_chime_sdk_identity_2021_04_20_.cs index 14a03037..277326cf 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_chime_sdk_identity_2021_04_20_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_chime_sdk_identity_2021_04_20_.cs @@ -2147,8 +2147,7 @@ public class CreateAppInstancePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\u0009\u000A\u000D\u0020-\u007E\u0085\u00A0-\uD7FF\uE000-\uFFFD\u10000-\u10FFFF]*")] public string Name { get; set; } @@ -2159,8 +2158,7 @@ public class CreateAppInstancePostBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Metadata { get; set; } @@ -2173,8 +2171,7 @@ public class CreateAppInstancePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-_a-zA-Z0-9]*")] public string ClientRequestToken { get; set; } @@ -2184,8 +2181,7 @@ public class CreateAppInstancePostBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public Tag[] Tags { get; set; } } @@ -2201,8 +2197,7 @@ public class CreateAppInstanceAdminPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(5, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[^/].{0,1023}")] public string AppInstanceAdminArn { get; set; } } @@ -2219,8 +2214,7 @@ public class CreateAppInstanceBotPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(5, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[^/].{0,1023}")] public string AppInstanceArn { get; set; } @@ -2231,8 +2225,7 @@ public class CreateAppInstanceBotPostBody /// Pattern: [\u0009\u000A\u000D\u0020-\u007E\u0085\u00A0-\uD7FF\uE000-\uFFFD\u10000-\u10FFFF]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\u0009\u000A\u000D\u0020-\u007E\u0085\u00A0-\uD7FF\uE000-\uFFFD\u10000-\u10FFFF]*")] public string Name { get; set; } @@ -2243,8 +2236,7 @@ public class CreateAppInstanceBotPostBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Metadata { get; set; } @@ -2257,8 +2249,7 @@ public class CreateAppInstanceBotPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-_a-zA-Z0-9]*")] public string ClientRequestToken { get; set; } @@ -2268,8 +2259,7 @@ public class CreateAppInstanceBotPostBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public Tag[] Tags { get; set; } /// @@ -2300,8 +2290,7 @@ public class CreateAppInstanceUserPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(5, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[^/].{0,1023}")] public string AppInstanceArn { get; set; } @@ -2314,8 +2303,7 @@ public class CreateAppInstanceUserPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-Za-z0-9]([A-Za-z0-9\:\-\_\.\@]{0,62}[A-Za-z0-9])?")] public string AppInstanceUserId { get; set; } @@ -2328,8 +2316,7 @@ public class CreateAppInstanceUserPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string Name { get; set; } @@ -2340,8 +2327,7 @@ public class CreateAppInstanceUserPostBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Metadata { get; set; } @@ -2354,8 +2340,7 @@ public class CreateAppInstanceUserPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-_a-zA-Z0-9]*")] public string ClientRequestToken { get; set; } @@ -2365,8 +2350,7 @@ public class CreateAppInstanceUserPostBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public Tag[] Tags { get; set; } /// @@ -2398,8 +2382,7 @@ public class UpdateAppInstancePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\u0009\u000A\u000D\u0020-\u007E\u0085\u00A0-\uD7FF\uE000-\uFFFD\u10000-\u10FFFF]*")] public string Name { get; set; } @@ -2412,8 +2395,7 @@ public class UpdateAppInstancePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Metadata { get; set; } } @@ -2430,8 +2412,7 @@ public class UpdateAppInstanceBotPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\u0009\u000A\u000D\u0020-\u007E\u0085\u00A0-\uD7FF\uE000-\uFFFD\u10000-\u10FFFF]*")] public string Name { get; set; } @@ -2444,8 +2425,7 @@ public class UpdateAppInstanceBotPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Metadata { get; set; } @@ -2475,8 +2455,7 @@ public class UpdateAppInstanceUserPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string Name { get; set; } @@ -2489,8 +2468,7 @@ public class UpdateAppInstanceUserPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Metadata { get; set; } } @@ -2505,8 +2483,7 @@ public class UpdateAppInstanceUserEndpointPutBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(0, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Name { get; set; } @@ -2546,8 +2523,7 @@ public class RegisterAppInstanceUserEndpointPostBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(0, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Name { get; set; } @@ -2568,8 +2544,7 @@ public class RegisterAppInstanceUserEndpointPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(5, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[^/].{0,1023}")] public string ResourceArn { get; set; } @@ -2590,8 +2565,7 @@ public class RegisterAppInstanceUserEndpointPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-_a-zA-Z0-9]*")] public string ClientRequestToken { get; set; } @@ -2651,8 +2625,7 @@ public class TagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(5, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[^/].{0,1023}")] public string ResourceARN { get; set; } @@ -2664,8 +2637,7 @@ public class TagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public Tag[] Tags { get; set; } } @@ -2688,8 +2660,7 @@ public class UntagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(5, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[^/].{0,1023}")] public string ResourceARN { get; set; } @@ -2701,8 +2672,7 @@ public class UntagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string[] TagKeys { get; set; } } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_chime_sdk_media_pipelines_2021_07_15_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_chime_sdk_media_pipelines_2021_07_15_.cs index a117d78b..a46b8b9b 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_chime_sdk_media_pipelines_2021_07_15_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_chime_sdk_media_pipelines_2021_07_15_.cs @@ -2982,8 +2982,7 @@ public class CreateMediaCapturePipelinePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn[\/\:\-\_\.a-zA-Z0-9]+$")] public string SourceArn { get; set; } @@ -3004,8 +3003,7 @@ public class CreateMediaCapturePipelinePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn[\/\:\-\_\.a-zA-Z0-9]+$")] public string SinkArn { get; set; } @@ -3016,8 +3014,7 @@ public class CreateMediaCapturePipelinePostBody /// Pattern: [-_a-zA-Z0-9]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-_a-zA-Z0-9]*")] public string ClientRequestToken { get; set; } @@ -3033,8 +3030,7 @@ public class CreateMediaCapturePipelinePostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public Tag[] Tags { get; set; } } @@ -3059,8 +3055,7 @@ public class CreateMediaConcatenationPipelinePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public ConcatenationSource[] Sources { get; set; } /// @@ -3071,8 +3066,7 @@ public class CreateMediaConcatenationPipelinePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public ConcatenationSink[] Sinks { get; set; } /// @@ -3082,8 +3076,7 @@ public class CreateMediaConcatenationPipelinePostBody /// Pattern: [-_a-zA-Z0-9]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-_a-zA-Z0-9]*")] public string ClientRequestToken { get; set; } @@ -3093,8 +3086,7 @@ public class CreateMediaConcatenationPipelinePostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public Tag[] Tags { get; set; } } @@ -3110,8 +3102,7 @@ public class CreateMediaInsightsPipelinePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn[\/\:\-\_\.a-zA-Z0-9]+$")] public string MediaInsightsPipelineConfigurationArn { get; set; } @@ -3145,8 +3136,7 @@ public class CreateMediaInsightsPipelinePostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public Tag[] Tags { get; set; } /// @@ -3156,8 +3146,7 @@ public class CreateMediaInsightsPipelinePostBody /// Pattern: [-_a-zA-Z0-9]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-_a-zA-Z0-9]*")] public string ClientRequestToken { get; set; } } @@ -3207,8 +3196,7 @@ public class CreateMediaInsightsPipelineConfigurationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-zA-Z._-]+")] public string MediaInsightsPipelineConfigurationName { get; set; } @@ -3221,8 +3209,7 @@ public class CreateMediaInsightsPipelineConfigurationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn[\/\:\-\_\.a-zA-Z0-9]+$")] public string ResourceAccessRoleArn { get; set; } @@ -3246,8 +3233,7 @@ public class CreateMediaInsightsPipelineConfigurationPostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public Tag[] Tags { get; set; } /// @@ -3257,8 +3243,7 @@ public class CreateMediaInsightsPipelineConfigurationPostBody /// Pattern: [-_a-zA-Z0-9]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-_a-zA-Z0-9]*")] public string ClientRequestToken { get; set; } } @@ -3284,8 +3269,7 @@ public class CreateMediaLiveConnectorPipelinePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public LiveConnectorSourceConfiguration[] Sources { get; set; } /// @@ -3296,8 +3280,7 @@ public class CreateMediaLiveConnectorPipelinePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public LiveConnectorSinkConfiguration[] Sinks { get; set; } /// @@ -3307,8 +3290,7 @@ public class CreateMediaLiveConnectorPipelinePostBody /// Pattern: [-_a-zA-Z0-9]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-_a-zA-Z0-9]*")] public string ClientRequestToken { get; set; } @@ -3318,8 +3300,7 @@ public class CreateMediaLiveConnectorPipelinePostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public Tag[] Tags { get; set; } } @@ -3335,8 +3316,7 @@ public class UpdateMediaInsightsPipelineConfigurationPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn[\/\:\-\_\.a-zA-Z0-9]+$")] public string ResourceAccessRoleArn { get; set; } @@ -3384,8 +3364,7 @@ public class TagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn[\/\:\-\_\.a-zA-Z0-9]+$")] public string ResourceARN { get; set; } @@ -3397,8 +3376,7 @@ public class TagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public Tag[] Tags { get; set; } } @@ -3421,8 +3399,7 @@ public class UntagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn[\/\:\-\_\.a-zA-Z0-9]+$")] public string ResourceARN { get; set; } @@ -3434,8 +3411,7 @@ public class UntagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string[] TagKeys { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_chime_sdk_meetings_2021_07_15_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_chime_sdk_meetings_2021_07_15_.cs index 75506ec9..9037c4ed 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_chime_sdk_meetings_2021_07_15_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_chime_sdk_meetings_2021_07_15_.cs @@ -1476,8 +1476,7 @@ public class BatchCreateAttendeePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public CreateAttendeeRequestItem[] Attendees { get; set; } } @@ -1499,8 +1498,7 @@ public class BatchUpdateAttendeeCapabilitiesExceptPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(1, 250)] public AttendeeIdItem[] ExcludedAttendeeIds { get; set; } /// @@ -1536,8 +1534,7 @@ public class CreateAttendeePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] public string ExternalUserId { get; set; } /// @@ -1572,8 +1569,7 @@ public class CreateMeetingPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-_a-zA-Z0-9]*")] public string ClientRequestToken { get; set; } @@ -1585,8 +1581,7 @@ public class CreateMeetingPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] public string MediaRegion { get; set; } /// @@ -1595,8 +1590,7 @@ public class CreateMeetingPostBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] public string MeetingHostId { get; set; } /// @@ -1607,8 +1601,7 @@ public class CreateMeetingPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] public string ExternalMeetingId { get; set; } /// @@ -1629,8 +1622,7 @@ public class CreateMeetingPostBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] public string PrimaryMeetingId { get; set; } /// @@ -1639,8 +1631,7 @@ public class CreateMeetingPostBody /// Maximum items: 5 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(1, 5)] public string[] TenantIds { get; set; } /// @@ -1649,8 +1640,7 @@ public class CreateMeetingPostBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public Tag[] Tags { get; set; } } @@ -1693,8 +1683,7 @@ public class CreateMeetingWithAttendeesPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-_a-zA-Z0-9]*")] public string ClientRequestToken { get; set; } @@ -1706,8 +1695,7 @@ public class CreateMeetingWithAttendeesPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] public string MediaRegion { get; set; } /// @@ -1716,8 +1704,7 @@ public class CreateMeetingWithAttendeesPostBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] public string MeetingHostId { get; set; } /// @@ -1728,8 +1715,7 @@ public class CreateMeetingWithAttendeesPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] public string ExternalMeetingId { get; set; } /// @@ -1752,8 +1738,7 @@ public class CreateMeetingWithAttendeesPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(1, 20)] public CreateAttendeeRequestItem[] Attendees { get; set; } /// @@ -1762,8 +1747,7 @@ public class CreateMeetingWithAttendeesPostBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] public string PrimaryMeetingId { get; set; } /// @@ -1772,8 +1756,7 @@ public class CreateMeetingWithAttendeesPostBody /// Maximum items: 5 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(1, 5)] public string[] TenantIds { get; set; } /// @@ -1782,8 +1765,7 @@ public class CreateMeetingWithAttendeesPostBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public Tag[] Tags { get; set; } } @@ -1862,8 +1844,7 @@ public class TagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:.*")] public string ResourceARN { get; set; } @@ -1875,8 +1856,7 @@ public class TagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public Tag[] Tags { get; set; } } @@ -1899,8 +1879,7 @@ public class UntagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:.*")] public string ResourceARN { get; set; } @@ -1912,8 +1891,7 @@ public class UntagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public string[] TagKeys { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_chime_sdk_messaging_2021_05_15_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_chime_sdk_messaging_2021_05_15_.cs index d3eb8c4d..3d01d7e6 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_chime_sdk_messaging_2021_05_15_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_chime_sdk_messaging_2021_05_15_.cs @@ -3806,8 +3806,7 @@ public class AssociateChannelFlowPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(5, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[^/].{0,1023}")] public string ChannelFlowArn { get; set; } } @@ -3836,8 +3835,7 @@ public class BatchCreateChannelMembershipPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] MemberArns { get; set; } /// @@ -3847,8 +3845,7 @@ public class BatchCreateChannelMembershipPostBody /// Pattern: [-_a-zA-Z0-9]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-_a-zA-Z0-9]*")] public string SubChannelId { get; set; } } @@ -3871,8 +3868,7 @@ public class ChannelFlowCallbackPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(32)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(32, 64)] public string CallbackId { get; set; } /// @@ -3927,8 +3923,7 @@ public class CreateChannelPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(5, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[^/].{0,1023}")] public string AppInstanceArn { get; set; } @@ -3941,8 +3936,7 @@ public class CreateChannelPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\u0009\u000A\u000D\u0020-\u007E\u0085\u00A0-\uD7FF\uE000-\uFFFD\u10000-\u10FFFF]*")] public string Name { get; set; } @@ -3965,8 +3959,7 @@ public class CreateChannelPostBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Metadata { get; set; } @@ -3979,8 +3972,7 @@ public class CreateChannelPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-_a-zA-Z0-9]*")] public string ClientRequestToken { get; set; } @@ -3990,8 +3982,7 @@ public class CreateChannelPostBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public Tag[] Tags { get; set; } /// @@ -4001,8 +3992,7 @@ public class CreateChannelPostBody /// Pattern: [A-Za-z0-9]([A-Za-z0-9\:\-\_\.\@]{0,62}[A-Za-z0-9])? /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-Za-z0-9]([A-Za-z0-9\:\-\_\.\@]{0,62}[A-Za-z0-9])?")] public string ChannelId { get; set; } @@ -4012,8 +4002,7 @@ public class CreateChannelPostBody /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public string[] MemberArns { get; set; } /// @@ -4022,8 +4011,7 @@ public class CreateChannelPostBody /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public string[] ModeratorArns { get; set; } /// @@ -4074,8 +4062,7 @@ public class CreateChannelBanPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(5, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[^/].{0,1023}")] public string MemberArn { get; set; } } @@ -4092,8 +4079,7 @@ public class CreateChannelFlowPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(5, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[^/].{0,1023}")] public string AppInstanceArn { get; set; } @@ -4105,8 +4091,7 @@ public class CreateChannelFlowPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(1, 3)] public Processor[] Processors { get; set; } /// @@ -4118,8 +4103,7 @@ public class CreateChannelFlowPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\u0009\u000A\u000D\u0020-\u007E\u0085\u00A0-\uD7FF\uE000-\uFFFD\u10000-\u10FFFF]*")] public string Name { get; set; } @@ -4129,8 +4113,7 @@ public class CreateChannelFlowPostBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public Tag[] Tags { get; set; } /// @@ -4142,8 +4125,7 @@ public class CreateChannelFlowPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-_a-zA-Z0-9]*")] public string ClientRequestToken { get; set; } } @@ -4160,8 +4142,7 @@ public class CreateChannelMembershipPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(5, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[^/].{0,1023}")] public string MemberArn { get; set; } @@ -4180,8 +4161,7 @@ public class CreateChannelMembershipPostBody /// Pattern: [-_a-zA-Z0-9]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-_a-zA-Z0-9]*")] public string SubChannelId { get; set; } } @@ -4198,8 +4178,7 @@ public class CreateChannelModeratorPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(5, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[^/].{0,1023}")] public string ChannelModeratorArn { get; set; } } @@ -4214,8 +4193,7 @@ public class UpdateChannelPutBody /// Pattern: [\u0009\u000A\u000D\u0020-\u007E\u0085\u00A0-\uD7FF\uE000-\uFFFD\u10000-\u10FFFF]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\u0009\u000A\u000D\u0020-\u007E\u0085\u00A0-\uD7FF\uE000-\uFFFD\u10000-\u10FFFF]*")] public string Name { get; set; } @@ -4232,8 +4210,7 @@ public class UpdateChannelPutBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Metadata { get; set; } } @@ -4249,8 +4226,7 @@ public class UpdateChannelFlowPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(1, 3)] public Processor[] Processors { get; set; } /// @@ -4262,8 +4238,7 @@ public class UpdateChannelFlowPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\u0009\u000A\u000D\u0020-\u007E\u0085\u00A0-\uD7FF\uE000-\uFFFD\u10000-\u10FFFF]*")] public string Name { get; set; } } @@ -4290,8 +4265,7 @@ public class UpdateChannelMessagePutBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Metadata { get; set; } @@ -4302,8 +4276,7 @@ public class UpdateChannelMessagePutBody /// Pattern: [-_a-zA-Z0-9]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-_a-zA-Z0-9]*")] public string SubChannelId { get; set; } @@ -4314,8 +4287,7 @@ public class UpdateChannelMessagePutBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(45)] + [System.ComponentModel.DataAnnotations.Length(0, 45)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string ContentType { get; set; } } @@ -4331,8 +4303,7 @@ public class PutMessagingStreamingConfigurationsPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(1, 2)] public StreamingConfiguration[] StreamingConfigurations { get; set; } } @@ -4421,8 +4392,7 @@ public class SendChannelMessagePostBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Metadata { get; set; } @@ -4435,8 +4405,7 @@ public class SendChannelMessagePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-_a-zA-Z0-9]*")] public string ClientRequestToken { get; set; } @@ -4459,8 +4428,7 @@ public class SendChannelMessagePostBody /// Pattern: [-_a-zA-Z0-9]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-_a-zA-Z0-9]*")] public string SubChannelId { get; set; } @@ -4471,8 +4439,7 @@ public class SendChannelMessagePostBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(45)] + [System.ComponentModel.DataAnnotations.Length(0, 45)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string ContentType { get; set; } @@ -4482,8 +4449,7 @@ public class SendChannelMessagePostBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public Target[] Target { get; set; } } @@ -4551,8 +4517,7 @@ public class RedactChannelMessagePostBody /// Pattern: [-_a-zA-Z0-9]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-_a-zA-Z0-9]*")] public string SubChannelId { get; set; } } @@ -4575,8 +4540,7 @@ public class SearchChannelsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(1, 20)] public SearchField[] Fields { get; set; } } @@ -4599,8 +4563,7 @@ public class TagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(5, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[^/].{0,1023}")] public string ResourceARN { get; set; } @@ -4612,8 +4575,7 @@ public class TagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public Tag[] Tags { get; set; } } @@ -4636,8 +4598,7 @@ public class UntagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(5, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[^/].{0,1023}")] public string ResourceARN { get; set; } @@ -4649,8 +4610,7 @@ public class UntagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string[] TagKeys { get; set; } } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_chime_sdk_voice_2022_08_03_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_chime_sdk_voice_2022_08_03_.cs index f2b5859a..2daf9dfa 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_chime_sdk_voice_2022_08_03_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_chime_sdk_voice_2022_08_03_.cs @@ -5902,8 +5902,7 @@ public class CreateProxySessionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] public string[] ParticipantPhoneNumbers { get; set; } /// @@ -5979,8 +5978,7 @@ public class CreateSipMediaApplicationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9 _.-]+")] public string Name { get; set; } @@ -5992,8 +5990,7 @@ public class CreateSipMediaApplicationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public SipMediaApplicationEndpoint[] Endpoints { get; set; } /// @@ -6002,8 +5999,7 @@ public class CreateSipMediaApplicationPostBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public Tag[] Tags { get; set; } } @@ -6055,8 +6051,7 @@ public class CreateSipRulePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9 _.-]+")] public string Name { get; set; } @@ -6090,8 +6085,7 @@ public class CreateSipRulePostBody /// Maximum items: 25 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(1, 25)] public SipRuleTargetApplication[] TargetApplications { get; set; } } @@ -6107,8 +6101,7 @@ public class CreateVoiceConnectorPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9 _.-]+")] public string Name { get; set; } @@ -6132,8 +6125,7 @@ public class CreateVoiceConnectorPostBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public Tag[] Tags { get; set; } } @@ -6184,8 +6176,7 @@ public class CreateVoiceConnectorGroupPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9 _.-]+")] public string Name { get; set; } @@ -6208,8 +6199,7 @@ public class CreateVoiceProfilePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string SpeakerSearchTaskId { get; set; } } @@ -6226,8 +6216,7 @@ public class CreateVoiceProfileDomainPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9 _.-]+")] public string Name { get; set; } @@ -6237,8 +6226,7 @@ public class CreateVoiceProfileDomainPostBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] public string Description { get; set; } /// @@ -6263,8 +6251,7 @@ public class CreateVoiceProfileDomainPostBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public Tag[] Tags { get; set; } } @@ -6323,8 +6310,7 @@ public class UpdateSipMediaApplicationPutBody /// Pattern: [a-zA-Z0-9 _.-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9 _.-]+")] public string Name { get; set; } @@ -6334,8 +6320,7 @@ public class UpdateSipMediaApplicationPutBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public SipMediaApplicationEndpoint[] Endpoints { get; set; } } @@ -6351,8 +6336,7 @@ public class UpdateSipRulePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9 _.-]+")] public string Name { get; set; } @@ -6368,8 +6352,7 @@ public class UpdateSipRulePutBody /// Maximum items: 25 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(1, 25)] public SipRuleTargetApplication[] TargetApplications { get; set; } } @@ -6385,8 +6368,7 @@ public class UpdateVoiceConnectorPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9 _.-]+")] public string Name { get; set; } @@ -6430,8 +6412,7 @@ public class UpdateVoiceConnectorGroupPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9 _.-]+")] public string Name { get; set; } @@ -6485,8 +6466,7 @@ public class PutVoiceConnectorProxyPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] PhoneNumberPoolCountries { get; set; } /// @@ -6594,8 +6574,7 @@ public class UpdateVoiceProfilePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string SpeakerSearchTaskId { get; set; } } @@ -6610,8 +6589,7 @@ public class UpdateVoiceProfileDomainPutBody /// Pattern: [a-zA-Z0-9 _.-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9 _.-]+")] public string Name { get; set; } @@ -6621,8 +6599,7 @@ public class UpdateVoiceProfileDomainPutBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] public string Description { get; set; } } @@ -6797,8 +6774,7 @@ public class StartSpeakerSearchTaskPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string TransactionId { get; set; } @@ -6811,8 +6787,7 @@ public class StartSpeakerSearchTaskPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string VoiceProfileDomainId { get; set; } @@ -6843,8 +6818,7 @@ public class StartVoiceToneAnalysisTaskPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string TransactionId { get; set; } @@ -6899,8 +6873,7 @@ public class TagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn[\/\:\-\_\.a-zA-Z0-9]+$")] public string ResourceARN { get; set; } @@ -6912,8 +6885,7 @@ public class TagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public Tag[] Tags { get; set; } } @@ -6936,8 +6908,7 @@ public class UntagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn[\/\:\-\_\.a-zA-Z0-9]+$")] public string ResourceARN { get; set; } @@ -6949,8 +6920,7 @@ public class UntagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string[] TagKeys { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_cleanrooms_2022_02_17_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_cleanrooms_2022_02_17_.cs index 21bbbd43..2050807a 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_cleanrooms_2022_02_17_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_cleanrooms_2022_02_17_.cs @@ -4856,8 +4856,7 @@ public class BatchGetCollaborationAnalysisTemplatePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="analysisTemplateArns")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public string[] AnalysisTemplateArns { get; set; } } @@ -4872,8 +4871,7 @@ public class BatchGetSchemaPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="names")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(1, 25)] public string[] Names { get; set; } } @@ -4887,8 +4885,7 @@ public class CreateAnalysisTemplatePostBody /// Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDBFF-\uDC00\uDFFF\t\r\n]* /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDBFF-\uDC00\uDFFF\t\r\n]*")] public string Description { get; set; } @@ -4901,8 +4898,7 @@ public class CreateAnalysisTemplatePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_](([a-zA-Z0-9_ ]+-)*([a-zA-Z0-9_ ]+))?")] public string Name { get; set; } @@ -4934,8 +4930,7 @@ public class CreateAnalysisTemplatePostBody /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="analysisParameters")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(0, 10)] public AnalysisParameter[] AnalysisParameters { get; set; } } @@ -4957,8 +4952,7 @@ public class CreateCollaborationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="members")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(9)] + [System.ComponentModel.DataAnnotations.Length(0, 9)] public MemberSpecification[] Members { get; set; } /// @@ -4970,8 +4964,7 @@ public class CreateCollaborationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(?!\s*$)[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDBFF-\uDC00\uDFFF\t]*")] public string Name { get; set; } @@ -4984,8 +4977,7 @@ public class CreateCollaborationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(?!\s*$)[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDBFF-\uDC00\uDFFF\t\r\n]*")] public string Description { get; set; } @@ -5006,8 +4998,7 @@ public class CreateCollaborationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="creatorDisplayName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(?!\s*$)[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDBFF-\uDC00\uDFFF\t]*")] public string CreatorDisplayName { get; set; } @@ -5060,8 +5051,7 @@ public class CreateConfiguredTablePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(?!\s*$)[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDBFF-\uDC00\uDFFF\t]*")] public string Name { get; set; } @@ -5072,8 +5062,7 @@ public class CreateConfiguredTablePostBody /// Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDBFF-\uDC00\uDFFF\t\r\n]* /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDBFF-\uDC00\uDFFF\t\r\n]*")] public string Description { get; set; } @@ -5093,8 +5082,7 @@ public class CreateConfiguredTablePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="allowedColumns")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] AllowedColumns { get; set; } /// @@ -5158,8 +5146,7 @@ public class CreateConfiguredTableAssociationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_](([a-zA-Z0-9_ ]+-)*([a-zA-Z0-9_ ]+))?")] public string Name { get; set; } @@ -5170,8 +5157,7 @@ public class CreateConfiguredTableAssociationPostBody /// Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDBFF-\uDC00\uDFFF\t\r\n]* /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDBFF-\uDC00\uDFFF\t\r\n]*")] public string Description { get; set; } @@ -5184,8 +5170,7 @@ public class CreateConfiguredTableAssociationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="configuredTableIdentifier")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}.*")] public string ConfiguredTableIdentifier { get; set; } @@ -5198,8 +5183,7 @@ public class CreateConfiguredTableAssociationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="roleArn")] - [System.ComponentModel.DataAnnotations.MinLength(32)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(32, 512)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iam::[\w]+:role/[\w+=,./@-]+")] public string RoleArn { get; set; } @@ -5222,8 +5206,7 @@ public class CreateMembershipPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="collaborationIdentifier")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}.*")] public string CollaborationIdentifier { get; set; } @@ -5252,8 +5235,7 @@ public class UpdateAnalysisTemplatePatchBody /// Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDBFF-\uDC00\uDFFF\t\r\n]* /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDBFF-\uDC00\uDFFF\t\r\n]*")] public string Description { get; set; } } @@ -5268,8 +5250,7 @@ public class UpdateCollaborationPatchBody /// Pattern: (?!\s*$)[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDBFF-\uDC00\uDFFF\t]* /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(?!\s*$)[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDBFF-\uDC00\uDFFF\t]*")] public string Name { get; set; } @@ -5280,8 +5261,7 @@ public class UpdateCollaborationPatchBody /// Pattern: (?!\s*$)[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDBFF-\uDC00\uDFFF\t\r\n]* /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(?!\s*$)[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDBFF-\uDC00\uDFFF\t\r\n]*")] public string Description { get; set; } } @@ -5296,8 +5276,7 @@ public class UpdateConfiguredTablePatchBody /// Pattern: (?!\s*$)[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDBFF-\uDC00\uDFFF\t]* /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(?!\s*$)[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDBFF-\uDC00\uDFFF\t]*")] public string Name { get; set; } @@ -5308,8 +5287,7 @@ public class UpdateConfiguredTablePatchBody /// Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDBFF-\uDC00\uDFFF\t\r\n]* /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDBFF-\uDC00\uDFFF\t\r\n]*")] public string Description { get; set; } } @@ -5343,8 +5321,7 @@ public class UpdateConfiguredTableAssociationPatchBody /// Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDBFF-\uDC00\uDFFF\t\r\n]* /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDBFF-\uDC00\uDFFF\t\r\n]*")] public string Description { get; set; } @@ -5355,8 +5332,7 @@ public class UpdateConfiguredTableAssociationPatchBody /// Pattern: arn:aws:iam::[\w]+:role/[\w+=,./@-]+ /// [System.Runtime.Serialization.DataMember(Name="roleArn")] - [System.ComponentModel.DataAnnotations.MinLength(32)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(32, 512)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iam::[\w]+:role/[\w+=,./@-]+")] public string RoleArn { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_clouddirectory_2016_05_10_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_clouddirectory_2016_05_10_.cs index 53dfcfbb..06c381ea 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_clouddirectory_2016_05_10_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_clouddirectory_2016_05_10_.cs @@ -6096,8 +6096,7 @@ public class AttachObjectPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^\/\[\]\(\):\{\}#@!?\s\\;]+")] public string LinkName { get; set; } } @@ -6280,8 +6279,7 @@ public class CreateDirectoryPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9._-]*$")] public string Name { get; set; } } @@ -6298,8 +6296,7 @@ public class CreateFacetPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9._-]*$")] public string Name { get; set; } @@ -6350,8 +6347,7 @@ public class CreateIndexPutBody /// Pattern: [^\/\[\]\(\):\{\}#@!?\s\\;]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^\/\[\]\(\):\{\}#@!?\s\\;]+")] public string LinkName { get; set; } } @@ -6393,8 +6389,7 @@ public class CreateObjectPutBody /// Pattern: [^\/\[\]\(\):\{\}#@!?\s\\;]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^\/\[\]\(\):\{\}#@!?\s\\;]+")] public string LinkName { get; set; } } @@ -6418,8 +6413,7 @@ public class CreateSchemaPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9._-]*$")] public string Name { get; set; } } @@ -6461,8 +6455,7 @@ public class DeleteFacetPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9._-]*$")] public string Name { get; set; } } @@ -6554,8 +6547,7 @@ public class DetachObjectPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^\/\[\]\(\):\{\}#@!?\s\\;]+")] public string LinkName { get; set; } } @@ -6653,8 +6645,7 @@ public class GetFacetPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9._-]*$")] public string Name { get; set; } } @@ -6671,8 +6662,7 @@ public class UpdateFacetPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9._-]*$")] public string Name { get; set; } @@ -6940,8 +6930,7 @@ public class ListFacetAttributesPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9._-]*$")] public string Name { get; set; } @@ -7494,8 +7483,7 @@ public class PublishSchemaPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9._-]*$")] public string Version { get; set; } @@ -7506,8 +7494,7 @@ public class PublishSchemaPutBody /// Pattern: ^[a-zA-Z0-9._-]*$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9._-]*$")] public string MinorVersion { get; set; } @@ -7518,8 +7505,7 @@ public class PublishSchemaPutBody /// Pattern: ^[a-zA-Z0-9._-]*$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9._-]*$")] public string Name { get; set; } } @@ -7676,8 +7662,7 @@ public class UpdateSchemaPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9._-]*$")] public string Name { get; set; } } @@ -7766,8 +7751,7 @@ public class UpgradePublishedSchemaPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9._-]*$")] public string MinorVersion { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_clouddirectory_2017_01_11_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_clouddirectory_2017_01_11_.cs index bd23f926..41eb296e 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_clouddirectory_2017_01_11_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_clouddirectory_2017_01_11_.cs @@ -5955,8 +5955,7 @@ public class AttachObjectPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^\/\[\]\(\):\{\}#@!?\s\\;]+")] public string LinkName { get; set; } } @@ -6139,8 +6138,7 @@ public class CreateDirectoryPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9._-]*$")] public string Name { get; set; } } @@ -6157,8 +6155,7 @@ public class CreateFacetPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9._-]*$")] public string Name { get; set; } @@ -6213,8 +6210,7 @@ public class CreateIndexPutBody /// Pattern: [^\/\[\]\(\):\{\}#@!?\s\\;]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^\/\[\]\(\):\{\}#@!?\s\\;]+")] public string LinkName { get; set; } } @@ -6256,8 +6252,7 @@ public class CreateObjectPutBody /// Pattern: [^\/\[\]\(\):\{\}#@!?\s\\;]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^\/\[\]\(\):\{\}#@!?\s\\;]+")] public string LinkName { get; set; } } @@ -6281,8 +6276,7 @@ public class CreateSchemaPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9._-]*$")] public string Name { get; set; } } @@ -6324,8 +6318,7 @@ public class DeleteFacetPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9._-]*$")] public string Name { get; set; } } @@ -6417,8 +6410,7 @@ public class DetachObjectPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^\/\[\]\(\):\{\}#@!?\s\\;]+")] public string LinkName { get; set; } } @@ -6516,8 +6508,7 @@ public class GetFacetPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9._-]*$")] public string Name { get; set; } } @@ -6534,8 +6525,7 @@ public class UpdateFacetPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9._-]*$")] public string Name { get; set; } @@ -6803,8 +6793,7 @@ public class ListFacetAttributesPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9._-]*$")] public string Name { get; set; } @@ -7387,8 +7376,7 @@ public class PublishSchemaPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9._-]*$")] public string Version { get; set; } @@ -7399,8 +7387,7 @@ public class PublishSchemaPutBody /// Pattern: ^[a-zA-Z0-9._-]*$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9._-]*$")] public string MinorVersion { get; set; } @@ -7411,8 +7398,7 @@ public class PublishSchemaPutBody /// Pattern: ^[a-zA-Z0-9._-]*$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9._-]*$")] public string Name { get; set; } } @@ -7569,8 +7555,7 @@ public class UpdateSchemaPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9._-]*$")] public string Name { get; set; } } @@ -7659,8 +7644,7 @@ public class UpgradePublishedSchemaPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9._-]*$")] public string MinorVersion { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_cloudsearch_2011_02_01_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_cloudsearch_2011_02_01_.cs index 57d3a890..ddb79030 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_cloudsearch_2011_02_01_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_cloudsearch_2011_02_01_.cs @@ -47,8 +47,7 @@ public class DomainStatus /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string DomainId { get; set; } /// @@ -60,8 +59,7 @@ public class DomainStatus /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } @@ -985,8 +983,7 @@ public class CreateDomainRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } } @@ -1004,8 +1001,7 @@ public class DefineIndexFieldRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } @@ -1031,8 +1027,7 @@ public class DefineRankExpressionRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } @@ -1058,8 +1053,7 @@ public class DeleteDomainRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } } @@ -1077,8 +1071,7 @@ public class DeleteIndexFieldRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } @@ -1091,8 +1084,7 @@ public class DeleteIndexFieldRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9_]*")] public string IndexFieldName { get; set; } } @@ -1110,8 +1102,7 @@ public class DeleteRankExpressionRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } @@ -1151,8 +1142,7 @@ public class DescribeDefaultSearchFieldRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } } @@ -1178,8 +1168,7 @@ public class DescribeIndexFieldsRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } @@ -1200,8 +1189,7 @@ public class DescribeRankExpressionsRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } @@ -1222,8 +1210,7 @@ public class DescribeServiceAccessPoliciesRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } } @@ -1241,8 +1228,7 @@ public class DescribeStemmingOptionsRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } } @@ -1260,8 +1246,7 @@ public class DescribeStopwordOptionsRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } } @@ -1279,8 +1264,7 @@ public class DescribeSynonymOptionsRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } } @@ -1298,8 +1282,7 @@ public class IndexDocumentsRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } } @@ -1320,8 +1303,7 @@ public class UpdateAvailabilityOptionsRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } @@ -1346,8 +1328,7 @@ public class UpdateDefaultSearchFieldRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } @@ -1372,8 +1353,7 @@ public class UpdateServiceAccessPoliciesRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } @@ -1399,8 +1379,7 @@ public class UpdateStemmingOptionsRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } @@ -1426,8 +1405,7 @@ public class UpdateStopwordOptionsRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } @@ -1453,8 +1431,7 @@ public class UpdateSynonymOptionsRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_cloudsearch_2013_01_01_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_cloudsearch_2013_01_01_.cs index 46ee6ee7..7f6da007 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_cloudsearch_2013_01_01_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_cloudsearch_2013_01_01_.cs @@ -81,8 +81,7 @@ public class DomainStatus /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string DomainId { get; set; } /// @@ -94,8 +93,7 @@ public class DomainStatus /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } @@ -243,8 +241,7 @@ public class AnalysisScheme /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9_]*")] public string AnalysisSchemeName { get; set; } @@ -641,8 +638,7 @@ public class Expression /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9_]*")] public string ExpressionName { get; set; } @@ -654,8 +650,7 @@ public class Expression /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10240)] + [System.ComponentModel.DataAnnotations.Length(1, 10240)] public string ExpressionValue { get; set; } } @@ -895,8 +890,7 @@ public class LiteralOptions /// Pattern: [a-z][a-z0-9_]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9_]*")] public string SourceField { get; set; } @@ -930,8 +924,7 @@ public class TextOptions /// Pattern: [a-z][a-z0-9_]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9_]*")] public string SourceField { get; set; } @@ -965,8 +958,7 @@ public class DateOptions /// Pattern: [a-z][a-z0-9_]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9_]*")] public string SourceField { get; set; } @@ -1000,8 +992,7 @@ public class LatLonOptions /// Pattern: [a-z][a-z0-9_]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9_]*")] public string SourceField { get; set; } @@ -1230,8 +1221,7 @@ public class Suggester /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9_]*")] public string SuggesterName { get; set; } @@ -1783,8 +1773,7 @@ public class BuildSuggestersRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } } @@ -1820,8 +1809,7 @@ public class DefineAnalysisSchemeRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } @@ -1850,8 +1838,7 @@ public class DefineExpressionRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } @@ -1880,8 +1867,7 @@ public class DefineIndexFieldRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } @@ -1909,8 +1895,7 @@ public class DefineSuggesterRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } @@ -1939,8 +1924,7 @@ public class DeleteAnalysisSchemeRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } @@ -1983,8 +1967,7 @@ public class DeleteExpressionRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } @@ -2012,8 +1995,7 @@ public class DeleteIndexFieldRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } @@ -2041,8 +2023,7 @@ public class DeleteSuggesterRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } @@ -2180,8 +2161,7 @@ public class DescribeScalingParametersRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } } @@ -2241,8 +2221,7 @@ public class IndexDocumentsRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } } @@ -2263,8 +2242,7 @@ public class UpdateAvailabilityOptionsRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } @@ -2314,8 +2292,7 @@ public class UpdateScalingParametersRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } @@ -2344,8 +2321,7 @@ public class UpdateServiceAccessPoliciesRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } @@ -3215,8 +3191,7 @@ public class GET_DefineAnalysisSchemeAnalysisScheme /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9_]*")] public string AnalysisSchemeName { get; set; } @@ -3378,8 +3353,7 @@ public class GET_DefineExpressionExpression /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9_]*")] public string ExpressionName { get; set; } @@ -3391,8 +3365,7 @@ public class GET_DefineExpressionExpression /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10240)] + [System.ComponentModel.DataAnnotations.Length(1, 10240)] public string ExpressionValue { get; set; } } @@ -3573,8 +3546,7 @@ public class GET_DefineSuggesterSuggester /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9_]*")] public string SuggesterName { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_cloudtrail_data_2021_08_11_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_cloudtrail_data_2021_08_11_.cs index add105e9..6bd9ee8f 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_cloudtrail_data_2021_08_11_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_cloudtrail_data_2021_08_11_.cs @@ -220,8 +220,7 @@ public class PutAuditEventsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="auditEvents")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public AuditEvent[] AuditEvents { get; set; } } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_codeartifact_2018_09_22_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_codeartifact_2018_09_22_.cs index dbf1559e..13fb84fc 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_codeartifact_2018_09_22_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_codeartifact_2018_09_22_.cs @@ -3141,8 +3141,7 @@ public class CreateDomainPostBody /// Pattern: \S+ /// [System.Runtime.Serialization.DataMember(Name="encryptionKey")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\S+")] public string EncryptionKey { get; set; } @@ -3152,8 +3151,7 @@ public class CreateDomainPostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } } @@ -3182,8 +3180,7 @@ public class CreateRepositoryPostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } } @@ -3285,8 +3282,7 @@ public class PutRepositoryPermissionsPolicyPutBody /// Pattern: \S+ /// [System.Runtime.Serialization.DataMember(Name="policyRevision")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\S+")] public string PolicyRevision { get; set; } @@ -3299,8 +3295,7 @@ public class PutRepositoryPermissionsPolicyPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="policyDocument")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(7168)] + [System.ComponentModel.DataAnnotations.Length(1, 7168)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\P{C}\s]+")] public string PolicyDocument { get; set; } } @@ -3324,8 +3319,7 @@ public class ListDomainsPostBody /// Pattern: \S+ /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2000)] + [System.ComponentModel.DataAnnotations.Length(1, 2000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\S+")] public string NextToken { get; set; } } @@ -3354,8 +3348,7 @@ public class PutDomainPermissionsPolicyPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="domain")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(2, 50)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]{0,48}[a-z0-9]")] public string Domain { get; set; } @@ -3366,8 +3359,7 @@ public class PutDomainPermissionsPolicyPutBody /// Pattern: [0-9]{12} /// [System.Runtime.Serialization.DataMember(Name="domainOwner")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12}")] public string DomainOwner { get; set; } @@ -3378,8 +3370,7 @@ public class PutDomainPermissionsPolicyPutBody /// Pattern: \S+ /// [System.Runtime.Serialization.DataMember(Name="policyRevision")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\S+")] public string PolicyRevision { get; set; } @@ -3392,8 +3383,7 @@ public class PutDomainPermissionsPolicyPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="policyDocument")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(7168)] + [System.ComponentModel.DataAnnotations.Length(1, 7168)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\P{C}\s]+")] public string PolicyDocument { get; set; } } @@ -3409,8 +3399,7 @@ public class TagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } } @@ -3425,8 +3414,7 @@ public class UntagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="tagKeys")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public string[] TagKeys { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_codecatalyst_2022_09_28_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_codecatalyst_2022_09_28_.cs index 3e796898..bc95294f 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_codecatalyst_2022_09_28_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_codecatalyst_2022_09_28_.cs @@ -3044,8 +3044,7 @@ public class CreateAccessTokenPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Name { get; set; } /// @@ -3072,8 +3071,7 @@ public class ListAccessTokensPostBody /// Max length: 10000 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10000)] + [System.ComponentModel.DataAnnotations.Length(1, 10000)] public string NextToken { get; set; } } @@ -3092,8 +3090,7 @@ public class CreateDevEnvironmentPutBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string ClientToken { get; set; } /// @@ -3103,8 +3100,7 @@ public class CreateDevEnvironmentPutBody /// Pattern: [a-zA-Z0-9]+(?:[-_\.][a-zA-Z0-9]+)* /// [System.Runtime.Serialization.DataMember(Name="alias")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9]+(?:[-_\.][a-zA-Z0-9]+)*")] public string Alias { get; set; } @@ -3114,8 +3110,7 @@ public class CreateDevEnvironmentPutBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember(Name="ides")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(0, 1)] public IdeConfiguration[] Ides { get; set; } /// @@ -3183,8 +3178,7 @@ public class ListDevEnvironmentsPostBody /// Max length: 10000 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10000)] + [System.ComponentModel.DataAnnotations.Length(1, 10000)] public string NextToken { get; set; } /// @@ -3209,8 +3203,7 @@ public class CreateProjectPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="displayName")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(3, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9]+(?:[-_\. ][a-zA-Z0-9]+)*")] public string DisplayName { get; set; } @@ -3221,8 +3214,7 @@ public class CreateProjectPutBody /// Pattern: [a-zA-Z0-9]+(?:[-_a-zA-Z0-9.,;:/\+=?&$% ])* /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9]+(?:[-_a-zA-Z0-9.,;:/\+=?&$% ])*")] public string Description { get; set; } } @@ -3236,8 +3228,7 @@ public class ListProjectsPostBody /// Max length: 10000 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10000)] + [System.ComponentModel.DataAnnotations.Length(1, 10000)] public string NextToken { get; set; } /// @@ -3265,8 +3256,7 @@ public class CreateSourceRepositoryPutBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Description { get; set; } } @@ -3290,8 +3280,7 @@ public class UpdateDevEnvironmentPatchBody /// Pattern: $|^[a-zA-Z0-9]+(?:[-_\.][a-zA-Z0-9]+)* /// [System.Runtime.Serialization.DataMember(Name="alias")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"$|^[a-zA-Z0-9]+(?:[-_\.][a-zA-Z0-9]+)*")] public string Alias { get; set; } @@ -3301,8 +3290,7 @@ public class UpdateDevEnvironmentPatchBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember(Name="ides")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(0, 1)] public IdeConfiguration[] Ides { get; set; } /// @@ -3326,8 +3314,7 @@ public class UpdateDevEnvironmentPatchBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string ClientToken { get; set; } } @@ -3358,8 +3345,7 @@ public class UpdateProjectPatchBody /// Pattern: [a-zA-Z0-9]+(?:[-_a-zA-Z0-9.,;:/\+=?&$% ])* /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9]+(?:[-_a-zA-Z0-9.,;:/\+=?&$% ])*")] public string Description { get; set; } } @@ -3374,8 +3360,7 @@ public class UpdateSpacePatchBody /// Pattern: [a-zA-Z0-9]+(?:[-_a-zA-Z0-9.,;:/\+=?&$% ])* /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9]+(?:[-_a-zA-Z0-9.,;:/\+=?&$% ])*")] public string Description { get; set; } } @@ -3389,8 +3374,7 @@ public class ListDevEnvironmentSessionsPostBody /// Max length: 10000 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10000)] + [System.ComponentModel.DataAnnotations.Length(1, 10000)] public string NextToken { get; set; } /// @@ -3434,8 +3418,7 @@ public class ListEventLogsPostBody /// Max length: 10000 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10000)] + [System.ComponentModel.DataAnnotations.Length(1, 10000)] public string NextToken { get; set; } /// @@ -3457,8 +3440,7 @@ public class ListSourceRepositoriesPostBody /// Max length: 10000 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10000)] + [System.ComponentModel.DataAnnotations.Length(1, 10000)] public string NextToken { get; set; } /// @@ -3480,8 +3462,7 @@ public class ListSourceRepositoryBranchesPostBody /// Max length: 10000 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10000)] + [System.ComponentModel.DataAnnotations.Length(1, 10000)] public string NextToken { get; set; } /// @@ -3503,8 +3484,7 @@ public class ListSpacesPostBody /// Max length: 10000 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10000)] + [System.ComponentModel.DataAnnotations.Length(1, 10000)] public string NextToken { get; set; } } @@ -3517,8 +3497,7 @@ public class StartDevEnvironmentPutBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember(Name="ides")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(0, 1)] public IdeConfiguration[] Ides { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_codeguru_reviewer_2019_09_19_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_codeguru_reviewer_2019_09_19_.cs index edf60f67..b6e748a0 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_codeguru_reviewer_2019_09_19_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_codeguru_reviewer_2019_09_19_.cs @@ -1667,8 +1667,7 @@ public class AssociateRepositoryPostBody /// Pattern: ^[\w-]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\w-]+$")] public string ClientRequestToken { get; set; } @@ -1726,8 +1725,7 @@ public class CreateCodeReviewPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9-_]*")] public string Name { get; set; } @@ -1740,8 +1738,7 @@ public class CreateCodeReviewPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(1, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws[^:\s]*:codeguru-reviewer:[^:\s]+:[\d]{12}:association:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$")] public string RepositoryAssociationArn { get; set; } @@ -1760,8 +1757,7 @@ public class CreateCodeReviewPostBody /// Pattern: ^[\w-]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\w-]+$")] public string ClientRequestToken { get; set; } } @@ -1800,8 +1796,7 @@ public class PutRecommendationFeedbackPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(1, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws[^:\s]*:codeguru-reviewer:[^:\s]+:[\d]{12}:[a-z-]+:[\w-]+$")] public string CodeReviewArn { get; set; } @@ -1813,8 +1808,7 @@ public class PutRecommendationFeedbackPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string RecommendationId { get; set; } /// @@ -1825,8 +1819,7 @@ public class PutRecommendationFeedbackPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(0, 1)] public Reaction[] Reactions { get; set; } } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_codeguru_security_2018_05_10_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_codeguru_security_2018_05_10_.cs index 920b192b..941ca118 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_codeguru_security_2018_05_10_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_codeguru_security_2018_05_10_.cs @@ -1310,8 +1310,7 @@ public class BatchGetFindingsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="findingIdentifiers")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(1, 25)] public FindingIdentifier[] FindingIdentifiers { get; set; } } @@ -1331,8 +1330,7 @@ public class CreateScanPostBody /// Pattern: ^[\S]+$ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\S]+$")] public string ClientToken { get; set; } @@ -1353,8 +1351,7 @@ public class CreateScanPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="scanName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_$:.]*$")] public string ScanName { get; set; } @@ -1390,8 +1387,7 @@ public class CreateUploadUrlPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="scanName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_$:.]*$")] public string ScanName { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_codeguruprofiler_2019_07_18_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_codeguruprofiler_2019_07_18_.cs index 12c92210..41310c67 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_codeguruprofiler_2019_07_18_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_codeguruprofiler_2019_07_18_.cs @@ -2062,8 +2062,7 @@ public class AddNotificationChannelsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="channels")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(1, 2)] public Channel[] Channels { get; set; } } @@ -2086,8 +2085,7 @@ public class ConfigureAgentPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="fleetInstanceId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string FleetInstanceId { get; set; } /// @@ -2121,8 +2119,7 @@ public class CreateProfilingGroupPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="profilingGroupName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\w-]+$")] public string ProfilingGroupName { get; set; } @@ -2194,8 +2191,7 @@ public class PutPermissionPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="principals")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string[] Principals { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_codestar_connections_2019_12_01_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_codestar_connections_2019_12_01_.cs index d9adf043..71e3bb95 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_codestar_connections_2019_12_01_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_codestar_connections_2019_12_01_.cs @@ -120,8 +120,7 @@ public class CreateHostOutput /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } } @@ -158,8 +157,7 @@ public class CreateHostInput /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_codestar_notifications_2019_10_15_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_codestar_notifications_2019_10_15_.cs index ca855e08..989d9349 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_codestar_notifications_2019_10_15_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_codestar_notifications_2019_10_15_.cs @@ -1065,8 +1065,7 @@ public class CreateNotificationRulePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-Za-z0-9\-_ ]+$")] public string Name { get; set; } @@ -1113,8 +1112,7 @@ public class CreateNotificationRulePostBody /// Pattern: ^[\w:/-]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\w:/-]+$")] public string ClientRequestToken { get; set; } @@ -1156,8 +1154,7 @@ public class DeleteTargetPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(320)] + [System.ComponentModel.DataAnnotations.Length(1, 320)] public string TargetAddress { get; set; } /// @@ -1304,8 +1301,7 @@ public class SubscribePostBody /// Pattern: ^[\w:/-]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\w:/-]+$")] public string ClientRequestToken { get; set; } } @@ -1363,8 +1359,7 @@ public class UnsubscribePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(320)] + [System.ComponentModel.DataAnnotations.Length(1, 320)] public string TargetAddress { get; set; } } @@ -1388,8 +1383,7 @@ public class UpdateNotificationRulePostBody /// Pattern: [A-Za-z0-9\-_ ]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-Za-z0-9\-_ ]+$")] public string Name { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_cognito_sync_2014_06_30_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_cognito_sync_2014_06_30_.cs index 39460a7e..a2c7e117 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_cognito_sync_2014_06_30_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_cognito_sync_2014_06_30_.cs @@ -1336,8 +1336,7 @@ public class UpdateRecordsPostBody /// Max length: 256 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string DeviceId { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_connect_2017_08_08_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_connect_2017_08_08_.cs index 7b68c42c..befaadfa 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_connect_2017_08_08_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_connect_2017_08_08_.cs @@ -17501,8 +17501,7 @@ public class AssociateDefaultVocabularyPutBody /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(1, 500)] public string VocabularyId { get; set; } } @@ -17559,8 +17558,7 @@ public class AssociateLambdaFunctionPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string FunctionArn { get; set; } } @@ -17597,8 +17595,7 @@ public class AssociatePhoneNumberContactFlowPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string InstanceId { get; set; } /// @@ -17623,8 +17620,7 @@ public class AssociateQueueQuickConnectsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string[] QuickConnectIds { get; set; } } @@ -17639,8 +17635,7 @@ public class AssociateRoutingProfileQueuesPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public RoutingProfileQueueConfig[] QueueConfigs { get; set; } } @@ -17655,8 +17650,7 @@ public class AssociateSecurityKeyPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string Key { get; set; } } @@ -17688,8 +17682,7 @@ public class ClaimPhoneNumberPostBody /// Pattern: ^[\W\S_]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\W\S_]*")] public string PhoneNumberDescription { get; set; } @@ -17719,8 +17712,7 @@ public class CreateAgentStatusPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(1, 127)] public string Name { get; set; } /// @@ -17729,8 +17721,7 @@ public class CreateAgentStatusPutBody /// Max length: 250 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(1, 250)] public string Description { get; set; } /// @@ -17811,8 +17802,7 @@ public class CreateContactFlowModulePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(1, 127)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string Name { get; set; } @@ -17823,8 +17813,7 @@ public class CreateContactFlowModulePutBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string Description { get; set; } @@ -17836,8 +17825,7 @@ public class CreateContactFlowModulePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256000)] + [System.ComponentModel.DataAnnotations.Length(1, 256000)] public string Content { get; set; } /// @@ -17866,8 +17854,7 @@ public class CreateEvaluationFormPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Title { get; set; } /// @@ -17876,8 +17863,7 @@ public class CreateEvaluationFormPutBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] public string Description { get; set; } /// @@ -17888,8 +17874,7 @@ public class CreateEvaluationFormPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public EvaluationFormItem[] Items { get; set; } /// @@ -17928,8 +17913,7 @@ public class CreateHoursOfOperationPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(1, 127)] public string Name { get; set; } /// @@ -17938,8 +17922,7 @@ public class CreateHoursOfOperationPutBody /// Max length: 250 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(1, 250)] public string Description { get; set; } /// @@ -17958,8 +17941,7 @@ public class CreateHoursOfOperationPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public HoursOfOperationConfig[] Config { get; set; } /// @@ -17995,8 +17977,7 @@ public class CreateInstancePutBody /// Pattern: ^(?!d-)([\da-zA-Z]+)([-]*[\da-zA-Z])*$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(45)] + [System.ComponentModel.DataAnnotations.Length(1, 45)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?!d-)([\da-zA-Z]+)([-]*[\da-zA-Z])*$")] public string InstanceAlias { get; set; } @@ -18007,8 +17988,7 @@ public class CreateInstancePutBody /// Pattern: ^d-[0-9a-f]{10}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^d-[0-9a-f]{10}$")] public string DirectoryId { get; set; } @@ -18054,8 +18034,7 @@ public class CreateIntegrationAssociationPutBody /// Max length: 2000 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2000)] + [System.ComponentModel.DataAnnotations.Length(1, 2000)] public string SourceApplicationUrl { get; set; } /// @@ -18065,8 +18044,7 @@ public class CreateIntegrationAssociationPutBody /// Pattern: ^[a-zA-Z0-9_ -]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9_ -]+$")] public string SourceApplicationName { get; set; } @@ -18094,8 +18072,7 @@ public class CreateParticipantPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string InstanceId { get; set; } /// @@ -18106,8 +18083,7 @@ public class CreateParticipantPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string ContactId { get; set; } /// @@ -18148,8 +18124,7 @@ public class CreatePromptPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(1, 127)] public string Name { get; set; } /// @@ -18158,8 +18133,7 @@ public class CreatePromptPutBody /// Max length: 250 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(1, 250)] public string Description { get; set; } /// @@ -18171,8 +18145,7 @@ public class CreatePromptPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"s3://\S+/.+")] public string S3Uri { get; set; } @@ -18194,8 +18167,7 @@ public class CreateQueuePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(1, 127)] public string Name { get; set; } /// @@ -18204,8 +18176,7 @@ public class CreateQueuePutBody /// Max length: 250 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(1, 250)] public string Description { get; set; } /// @@ -18236,8 +18207,7 @@ public class CreateQueuePutBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string[] QuickConnectIds { get; set; } /// @@ -18271,8 +18241,7 @@ public class CreateQuickConnectPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(1, 127)] public string Name { get; set; } /// @@ -18281,8 +18250,7 @@ public class CreateQuickConnectPutBody /// Max length: 250 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(1, 250)] public string Description { get; set; } /// @@ -18327,8 +18295,7 @@ public class CreateRoutingProfilePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(1, 127)] public string Name { get; set; } /// @@ -18339,8 +18306,7 @@ public class CreateRoutingProfilePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(1, 250)] public string Description { get; set; } /// @@ -18357,8 +18323,7 @@ public class CreateRoutingProfilePutBody /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public RoutingProfileQueueConfig[] QueueConfigs { get; set; } /// @@ -18394,8 +18359,7 @@ public class CreateRulePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-zA-Z._-]+")] public string Name { get; set; } @@ -18462,8 +18426,7 @@ public class CreateSecurityProfilePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(1, 127)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[ a-zA-Z0-9_@-]+$")] public string SecurityProfileName { get; set; } @@ -18515,8 +18478,7 @@ public class CreateTaskTemplatePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Name { get; set; } /// @@ -18525,8 +18487,7 @@ public class CreateTaskTemplatePutBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Description { get; set; } /// @@ -18604,8 +18565,7 @@ public class CreateTrafficDistributionGroupPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(^[\S].*[\S]$)|(^[\S]$)")] public string Name { get; set; } @@ -18616,8 +18576,7 @@ public class CreateTrafficDistributionGroupPutBody /// Pattern: (^[\S].*[\S]$)|(^[\S]$) /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(1, 250)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(^[\S].*[\S]$)|(^[\S]$)")] public string Description { get; set; } @@ -18630,8 +18589,7 @@ public class CreateTrafficDistributionGroupPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(1, 250)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(arn:(aws|aws-us-gov):connect:[a-z]{2}-[a-z]+-[0-9]{1}:[0-9]{1,20}:instance/)?[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$")] public string InstanceId { get; set; } @@ -18679,8 +18637,7 @@ public class CreateUserPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Username { get; set; } /// @@ -18719,8 +18676,7 @@ public class CreateUserPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public string[] SecurityProfileIds { get; set; } /// @@ -18823,8 +18779,7 @@ public class CreateVocabularyPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-zA-Z._-]+")] public string VocabularyName { get; set; } @@ -18844,8 +18799,7 @@ public class CreateVocabularyPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(60000)] + [System.ComponentModel.DataAnnotations.Length(1, 60000)] public string Content { get; set; } /// @@ -18986,8 +18940,7 @@ public class UpdateEvaluationFormPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Title { get; set; } /// @@ -18996,8 +18949,7 @@ public class UpdateEvaluationFormPutBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] public string Description { get; set; } /// @@ -19008,8 +18960,7 @@ public class UpdateEvaluationFormPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public EvaluationFormItem[] Items { get; set; } /// @@ -19046,8 +18997,7 @@ public class UpdateHoursOfOperationPostBody /// Max length: 127 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(1, 127)] public string Name { get; set; } /// @@ -19056,8 +19006,7 @@ public class UpdateHoursOfOperationPostBody /// Max length: 250 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(0, 250)] public string Description { get; set; } /// @@ -19072,8 +19021,7 @@ public class UpdateHoursOfOperationPostBody /// Maximum items: 100 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public HoursOfOperationConfig[] Config { get; set; } } @@ -19086,8 +19034,7 @@ public class UpdatePromptPostBody /// Max length: 127 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(1, 127)] public string Name { get; set; } /// @@ -19096,8 +19043,7 @@ public class UpdatePromptPostBody /// Max length: 250 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(1, 250)] public string Description { get; set; } /// @@ -19107,8 +19053,7 @@ public class UpdatePromptPostBody /// Pattern: s3://\S+/.+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"s3://\S+/.+")] public string S3Uri { get; set; } } @@ -19125,8 +19070,7 @@ public class UpdateRulePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-zA-Z._-]+")] public string Name { get; set; } @@ -19198,8 +19142,7 @@ public class UpdateTaskTemplatePostBody /// Max length: 100 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Name { get; set; } /// @@ -19208,8 +19151,7 @@ public class UpdateTaskTemplatePostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Description { get; set; } /// @@ -19274,8 +19216,7 @@ public class UpdateAgentStatusPostBody /// Max length: 127 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(1, 127)] public string Name { get; set; } /// @@ -19284,8 +19225,7 @@ public class UpdateAgentStatusPostBody /// Max length: 250 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(0, 250)] public string Description { get; set; } /// @@ -19319,8 +19259,7 @@ public class UpdateContactPostBody /// Max length: 512 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(0, 512)] public string Name { get; set; } /// @@ -19329,8 +19268,7 @@ public class UpdateContactPostBody /// Max length: 4096 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4096)] + [System.ComponentModel.DataAnnotations.Length(0, 4096)] public string Description { get; set; } /// @@ -19351,8 +19289,7 @@ public class UpdateInstanceAttributePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Value { get; set; } } @@ -19452,8 +19389,7 @@ public class DisassociateQueueQuickConnectsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string[] QuickConnectIds { get; set; } } @@ -19480,8 +19416,7 @@ public class DismissUserContactPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string ContactId { get; set; } } @@ -19533,8 +19468,7 @@ public class GetCurrentMetricDataPostBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(0, 1)] public CurrentMetricSortCriteria[] SortCriteria { get; set; } } @@ -19704,8 +19638,7 @@ public class GetMetricDataV2PostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(1, 5)] public FilterV2[] Filters { get; set; } /// @@ -19730,8 +19663,7 @@ public class GetMetricDataV2PostBody /// Max length: 2500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2500)] + [System.ComponentModel.DataAnnotations.Length(1, 2500)] public string NextToken { get; set; } /// @@ -19786,8 +19718,7 @@ public class ListDefaultVocabulariesPostBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(131070)] + [System.ComponentModel.DataAnnotations.Length(1, 131070)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string NextToken { get; set; } } @@ -19890,8 +19821,7 @@ public class ListPhoneNumbersV2PostBody /// Max length: 100000 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100000)] + [System.ComponentModel.DataAnnotations.Length(1, 100000)] public string NextToken { get; set; } /// @@ -19930,8 +19860,7 @@ public class UpdateRoutingProfileQueuesPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public RoutingProfileQueueConfig[] QueueConfigs { get; set; } } @@ -19958,8 +19887,7 @@ public class MonitorContactPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string InstanceId { get; set; } /// @@ -19970,8 +19898,7 @@ public class MonitorContactPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string ContactId { get; set; } /// @@ -19982,8 +19909,7 @@ public class MonitorContactPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string UserId { get; set; } /// @@ -20027,8 +19953,7 @@ public class ReplicateInstancePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(8)] - [System.ComponentModel.DataAnnotations.MaxLength(31)] + [System.ComponentModel.DataAnnotations.Length(8, 31)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z]{2}(-[a-z]+){1,2}(-[0-9])?")] public string ReplicaRegion { get; set; } @@ -20049,8 +19974,7 @@ public class ReplicateInstancePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(45)] + [System.ComponentModel.DataAnnotations.Length(1, 45)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?!d-)([\da-zA-Z]+)([-]*[\da-zA-Z])*$")] public string ReplicaAlias { get; set; } } @@ -20066,8 +19990,7 @@ public class ResumeContactRecordingPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string InstanceId { get; set; } /// @@ -20078,8 +20001,7 @@ public class ResumeContactRecordingPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string ContactId { get; set; } /// @@ -20090,8 +20012,7 @@ public class ResumeContactRecordingPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string InitialContactId { get; set; } } @@ -20145,8 +20066,7 @@ public class SearchAvailablePhoneNumbersPostBody /// Max length: 100000 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100000)] + [System.ComponentModel.DataAnnotations.Length(1, 100000)] public string NextToken { get; set; } } @@ -20161,8 +20081,7 @@ public class SearchHoursOfOperationsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string InstanceId { get; set; } /// @@ -20171,8 +20090,7 @@ public class SearchHoursOfOperationsPostBody /// Max length: 2500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2500)] + [System.ComponentModel.DataAnnotations.Length(1, 2500)] public string NextToken { get; set; } /// @@ -20231,8 +20149,7 @@ public class SearchPromptsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string InstanceId { get; set; } /// @@ -20241,8 +20158,7 @@ public class SearchPromptsPostBody /// Max length: 2500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2500)] + [System.ComponentModel.DataAnnotations.Length(1, 2500)] public string NextToken { get; set; } /// @@ -20301,8 +20217,7 @@ public class SearchQueuesPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string InstanceId { get; set; } /// @@ -20311,8 +20226,7 @@ public class SearchQueuesPostBody /// Max length: 2500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2500)] + [System.ComponentModel.DataAnnotations.Length(1, 2500)] public string NextToken { get; set; } /// @@ -20374,8 +20288,7 @@ public class SearchQuickConnectsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string InstanceId { get; set; } /// @@ -20384,8 +20297,7 @@ public class SearchQuickConnectsPostBody /// Max length: 2500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2500)] + [System.ComponentModel.DataAnnotations.Length(1, 2500)] public string NextToken { get; set; } /// @@ -20445,8 +20357,7 @@ public class SearchResourceTagsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(1, 250)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(arn:(aws|aws-us-gov):connect:[a-z]{2}-[a-z]+-[0-9]{1}:[0-9]{1,20}:instance/)?[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$")] public string InstanceId { get; set; } @@ -20462,8 +20373,7 @@ public class SearchResourceTagsPostBody /// Max length: 2500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2500)] + [System.ComponentModel.DataAnnotations.Length(1, 2500)] public string NextToken { get; set; } /// @@ -20500,8 +20410,7 @@ public class SearchRoutingProfilesPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string InstanceId { get; set; } /// @@ -20510,8 +20419,7 @@ public class SearchRoutingProfilesPostBody /// Max length: 2500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2500)] + [System.ComponentModel.DataAnnotations.Length(1, 2500)] public string NextToken { get; set; } /// @@ -20570,8 +20478,7 @@ public class SearchSecurityProfilesPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string InstanceId { get; set; } /// @@ -20580,8 +20487,7 @@ public class SearchSecurityProfilesPostBody /// Max length: 2500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2500)] + [System.ComponentModel.DataAnnotations.Length(1, 2500)] public string NextToken { get; set; } /// @@ -20641,8 +20547,7 @@ public class SearchUsersPostBody /// Max length: 100 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string InstanceId { get; set; } /// @@ -20651,8 +20556,7 @@ public class SearchUsersPostBody /// Max length: 2500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2500)] + [System.ComponentModel.DataAnnotations.Length(1, 2500)] public string NextToken { get; set; } /// @@ -20722,8 +20626,7 @@ public class SearchVocabulariesPostBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(131070)] + [System.ComponentModel.DataAnnotations.Length(1, 131070)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string NextToken { get; set; } @@ -20740,8 +20643,7 @@ public class SearchVocabulariesPostBody /// Pattern: ^[0-9a-zA-Z._-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-zA-Z._-]+")] public string NameStartsWith { get; set; } @@ -20837,8 +20739,7 @@ public class StartChatContactPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string InstanceId { get; set; } /// @@ -20906,8 +20807,7 @@ public class StartChatContactPutBody /// Max length: 256 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string RelatedContactId { get; set; } } @@ -20949,8 +20849,7 @@ public class StartContactEvaluationPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string ContactId { get; set; } /// @@ -20961,8 +20860,7 @@ public class StartContactEvaluationPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(1, 500)] public string EvaluationFormId { get; set; } /// @@ -20985,8 +20883,7 @@ public class StartContactRecordingPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string InstanceId { get; set; } /// @@ -20997,8 +20894,7 @@ public class StartContactRecordingPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string ContactId { get; set; } /// @@ -21009,8 +20905,7 @@ public class StartContactRecordingPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string InitialContactId { get; set; } /// @@ -21040,8 +20935,7 @@ public class StartContactStreamingPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string InstanceId { get; set; } /// @@ -21052,8 +20946,7 @@ public class StartContactStreamingPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string ContactId { get; set; } /// @@ -21113,8 +21006,7 @@ public class StartOutboundVoiceContactPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string InstanceId { get; set; } /// @@ -21157,8 +21049,7 @@ public class StartOutboundVoiceContactPutBody /// Max length: 100 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string CampaignId { get; set; } /// @@ -21189,8 +21080,7 @@ public class StartTaskContactPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string InstanceId { get; set; } /// @@ -21199,8 +21089,7 @@ public class StartTaskContactPutBody /// Max length: 256 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string PreviousContactId { get; set; } /// @@ -21225,8 +21114,7 @@ public class StartTaskContactPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(0, 512)] public string Name { get; set; } /// @@ -21241,8 +21129,7 @@ public class StartTaskContactPutBody /// Max length: 4096 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4096)] + [System.ComponentModel.DataAnnotations.Length(0, 4096)] public string Description { get; set; } /// @@ -21265,8 +21152,7 @@ public class StartTaskContactPutBody /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(1, 500)] public string TaskTemplateId { get; set; } /// @@ -21281,8 +21167,7 @@ public class StartTaskContactPutBody /// Max length: 256 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string RelatedContactId { get; set; } } @@ -21297,8 +21182,7 @@ public class StopContactPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string ContactId { get; set; } /// @@ -21309,8 +21193,7 @@ public class StopContactPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string InstanceId { get; set; } } @@ -21325,8 +21208,7 @@ public class StopContactRecordingPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string InstanceId { get; set; } /// @@ -21337,8 +21219,7 @@ public class StopContactRecordingPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string ContactId { get; set; } /// @@ -21349,8 +21230,7 @@ public class StopContactRecordingPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string InitialContactId { get; set; } } @@ -21365,8 +21245,7 @@ public class StopContactStreamingPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string InstanceId { get; set; } /// @@ -21377,8 +21256,7 @@ public class StopContactStreamingPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string ContactId { get; set; } /// @@ -21389,8 +21267,7 @@ public class StopContactStreamingPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string StreamingId { get; set; } } @@ -21421,8 +21298,7 @@ public class SuspendContactRecordingPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string InstanceId { get; set; } /// @@ -21433,8 +21309,7 @@ public class SuspendContactRecordingPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string ContactId { get; set; } /// @@ -21445,8 +21320,7 @@ public class SuspendContactRecordingPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string InitialContactId { get; set; } } @@ -21461,8 +21335,7 @@ public class TransferContactPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string InstanceId { get; set; } /// @@ -21473,8 +21346,7 @@ public class TransferContactPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string ContactId { get; set; } /// @@ -21489,8 +21361,7 @@ public class TransferContactPostBody /// Max length: 256 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string UserId { get; set; } /// @@ -21523,8 +21394,7 @@ public class UpdateContactAttributesPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string InitialContactId { get; set; } /// @@ -21535,8 +21405,7 @@ public class UpdateContactAttributesPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string InstanceId { get; set; } /// @@ -21595,8 +21464,7 @@ public class UpdateContactFlowModuleContentPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256000)] + [System.ComponentModel.DataAnnotations.Length(1, 256000)] public string Content { get; set; } } @@ -21610,8 +21478,7 @@ public class UpdateContactFlowModuleMetadataPostBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(1, 127)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string Name { get; set; } @@ -21622,8 +21489,7 @@ public class UpdateContactFlowModuleMetadataPostBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string Description { get; set; } @@ -21663,8 +21529,7 @@ public class UpdateContactSchedulePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string InstanceId { get; set; } /// @@ -21675,8 +21540,7 @@ public class UpdateContactSchedulePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string ContactId { get; set; } /// @@ -21740,8 +21604,7 @@ public class UpdateQueueNamePostBody /// Max length: 127 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(1, 127)] public string Name { get; set; } /// @@ -21750,8 +21613,7 @@ public class UpdateQueueNamePostBody /// Max length: 250 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(1, 250)] public string Description { get; set; } } @@ -21829,8 +21691,7 @@ public class UpdateQuickConnectNamePostBody /// Max length: 127 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(1, 127)] public string Name { get; set; } /// @@ -21839,8 +21700,7 @@ public class UpdateQuickConnectNamePostBody /// Max length: 250 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(0, 250)] public string Description { get; set; } } @@ -21889,8 +21749,7 @@ public class UpdateRoutingProfileNamePostBody /// Max length: 127 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(1, 127)] public string Name { get; set; } /// @@ -21899,8 +21758,7 @@ public class UpdateRoutingProfileNamePostBody /// Max length: 250 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(1, 250)] public string Description { get; set; } } @@ -22008,8 +21866,7 @@ public class UpdateUserSecurityProfilesPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public string[] SecurityProfileIds { get; set; } } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_connect_contact_lens_2020_08_21_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_connect_contact_lens_2020_08_21_.cs index afda3fe3..2b7b0f46 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_connect_contact_lens_2020_08_21_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_connect_contact_lens_2020_08_21_.cs @@ -335,8 +335,7 @@ public class ListRealtimeContactAnalysisSegmentsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string InstanceId { get; set; } @@ -349,8 +348,7 @@ public class ListRealtimeContactAnalysisSegmentsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string ContactId { get; set; } @@ -370,8 +368,7 @@ public class ListRealtimeContactAnalysisSegmentsPostBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(131070)] + [System.ComponentModel.DataAnnotations.Length(1, 131070)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string NextToken { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_connectcampaigns_2021_01_30_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_connectcampaigns_2021_01_30_.cs index 2702188c..ec5c81ef 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_connectcampaigns_2021_01_30_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_connectcampaigns_2021_01_30_.cs @@ -31,8 +31,7 @@ public class CreateCampaignResponse /// Max length: 500 /// [System.Runtime.Serialization.DataMember(Name="arn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(20, 500)] public string Arn { get; set; } /// @@ -41,8 +40,7 @@ public class CreateCampaignResponse /// Max length: 256 /// [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string Id { get; set; } /// @@ -182,8 +180,7 @@ public class Campaign /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="arn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(20, 500)] public string Arn { get; set; } /// @@ -194,8 +191,7 @@ public class Campaign /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="connectInstanceId")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string ConnectInstanceId { get; set; } /// @@ -214,8 +210,7 @@ public class Campaign /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string Id { get; set; } /// @@ -226,8 +221,7 @@ public class Campaign /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(1, 127)] public string Name { get; set; } /// @@ -286,8 +280,7 @@ public class OutboundCallConfig /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="connectContactFlowId")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] public string ConnectContactFlowId { get; set; } /// @@ -298,8 +291,7 @@ public class OutboundCallConfig /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="connectQueueId")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] public string ConnectQueueId { get; set; } /// @@ -308,8 +300,7 @@ public class OutboundCallConfig /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="connectSourcePhoneNumber")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string ConnectSourcePhoneNumber { get; set; } } @@ -360,8 +351,7 @@ public class GetCampaignStateBatchResponse /// Maximum items: 25 /// [System.Runtime.Serialization.DataMember(Name="failedRequests")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(0, 25)] public FailedCampaignStateResponse[] FailedRequests { get; set; } /// @@ -370,8 +360,7 @@ public class GetCampaignStateBatchResponse /// Maximum items: 25 /// [System.Runtime.Serialization.DataMember(Name="successfulRequests")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(0, 25)] public SuccessfulCampaignStateResponse[] SuccessfulRequests { get; set; } } @@ -388,8 +377,7 @@ public class FailedCampaignStateResponse /// Max length: 256 /// [System.Runtime.Serialization.DataMember(Name="campaignId")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string CampaignId { get; set; } /// @@ -423,8 +411,7 @@ public class SuccessfulCampaignStateResponse /// Max length: 256 /// [System.Runtime.Serialization.DataMember(Name="campaignId")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string CampaignId { get; set; } /// @@ -463,8 +450,7 @@ public class InstanceConfig /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="connectInstanceId")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string ConnectInstanceId { get; set; } /// @@ -483,8 +469,7 @@ public class InstanceConfig /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="serviceLinkedRoleArn")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string ServiceLinkedRoleArn { get; set; } } @@ -515,8 +500,7 @@ public class EncryptionConfig /// Max length: 500 /// [System.Runtime.Serialization.DataMember(Name="keyArn")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] public string KeyArn { get; set; } } @@ -557,8 +541,7 @@ public class InstanceOnboardingJobStatus /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="connectInstanceId")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string ConnectInstanceId { get; set; } /// @@ -632,8 +615,7 @@ public class ListCampaignsResponse /// Max length: 1000 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] public string NextToken { get; set; } } @@ -652,8 +634,7 @@ public class CampaignSummary /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="arn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(20, 500)] public string Arn { get; set; } /// @@ -664,8 +645,7 @@ public class CampaignSummary /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="connectInstanceId")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string ConnectInstanceId { get; set; } /// @@ -676,8 +656,7 @@ public class CampaignSummary /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string Id { get; set; } /// @@ -688,8 +667,7 @@ public class CampaignSummary /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(1, 127)] public string Name { get; set; } } @@ -716,8 +694,7 @@ public class InstanceIdFilter /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="value")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string Value { get; set; } } @@ -761,8 +738,7 @@ public class PutDialRequestBatchResponse /// Maximum items: 25 /// [System.Runtime.Serialization.DataMember(Name="failedRequests")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(0, 25)] public FailedRequest[] FailedRequests { get; set; } /// @@ -771,8 +747,7 @@ public class PutDialRequestBatchResponse /// Maximum items: 25 /// [System.Runtime.Serialization.DataMember(Name="successfulRequests")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(0, 25)] public SuccessfulRequest[] SuccessfulRequests { get; set; } } @@ -789,8 +764,7 @@ public class FailedRequest /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(0, 64)] public string ClientToken { get; set; } /// @@ -833,8 +807,7 @@ public class SuccessfulRequest /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(0, 64)] public string ClientToken { get; set; } /// @@ -867,8 +840,7 @@ public class DialRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(0, 64)] public string ClientToken { get; set; } /// @@ -887,8 +859,7 @@ public class DialRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="phoneNumber")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(0, 20)] public string PhoneNumber { get; set; } } @@ -977,8 +948,7 @@ public class CreateCampaignRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="connectInstanceId")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string ConnectInstanceId { get; set; } /// @@ -997,8 +967,7 @@ public class CreateCampaignRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(1, 127)] public string Name { get; set; } /// @@ -1094,8 +1063,7 @@ public class GetCampaignStateBatchRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="campaignIds")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(1, 25)] public string[] CampaignIds { get; set; } } @@ -1194,8 +1162,7 @@ public class ListCampaignsRequest /// Max length: 1000 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] public string NextToken { get; set; } } @@ -1230,8 +1197,7 @@ public class PutDialRequestBatchRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="dialRequests")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(1, 25)] public DialRequest[] DialRequests { get; set; } } @@ -1330,8 +1296,7 @@ public class UpdateCampaignNameRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(1, 127)] public string Name { get; set; } } @@ -1354,8 +1319,7 @@ public class UpdateCampaignOutboundCallConfigRequest /// Max length: 500 /// [System.Runtime.Serialization.DataMember(Name="connectContactFlowId")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] public string ConnectContactFlowId { get; set; } /// @@ -1364,8 +1328,7 @@ public class UpdateCampaignOutboundCallConfigRequest /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="connectSourcePhoneNumber")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string ConnectSourcePhoneNumber { get; set; } } @@ -2030,8 +1993,7 @@ public class CreateCampaignPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="connectInstanceId")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string ConnectInstanceId { get; set; } /// @@ -2050,8 +2012,7 @@ public class CreateCampaignPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(1, 127)] public string Name { get; set; } /// @@ -2100,8 +2061,7 @@ public class CreateCampaignPutBodyOutboundCallConfig /// Max length: 500 /// [System.Runtime.Serialization.DataMember(Name="connectContactFlowId")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] public string ConnectContactFlowId { get; set; } /// @@ -2110,8 +2070,7 @@ public class CreateCampaignPutBodyOutboundCallConfig /// Max length: 500 /// [System.Runtime.Serialization.DataMember(Name="connectQueueId")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] public string ConnectQueueId { get; set; } /// @@ -2120,8 +2079,7 @@ public class CreateCampaignPutBodyOutboundCallConfig /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="connectSourcePhoneNumber")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string ConnectSourcePhoneNumber { get; set; } } @@ -2158,8 +2116,7 @@ public class StartInstanceOnboardingJobPutBodyEncryptionConfig /// Max length: 500 /// [System.Runtime.Serialization.DataMember(Name="keyArn")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] public string KeyArn { get; set; } } @@ -2174,8 +2131,7 @@ public class GetCampaignStateBatchPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="campaignIds")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(1, 25)] public string[] CampaignIds { get; set; } } @@ -2203,8 +2159,7 @@ public class ListCampaignsPostBody /// Max length: 1000 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] public string NextToken { get; set; } } @@ -2241,8 +2196,7 @@ public class PutDialRequestBatchPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="dialRequests")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(1, 25)] public DialRequest[] DialRequests { get; set; } } @@ -2285,8 +2239,7 @@ public class UpdateCampaignNamePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(1, 127)] public string Name { get; set; } } @@ -2305,8 +2258,7 @@ public class UpdateCampaignOutboundCallConfigPostBody /// Max length: 500 /// [System.Runtime.Serialization.DataMember(Name="connectContactFlowId")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] public string ConnectContactFlowId { get; set; } /// @@ -2315,8 +2267,7 @@ public class UpdateCampaignOutboundCallConfigPostBody /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="connectSourcePhoneNumber")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string ConnectSourcePhoneNumber { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_connectcases_2022_10_03_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_connectcases_2022_10_03_.cs index e18be620..591f347c 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_connectcases_2022_10_03_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_connectcases_2022_10_03_.cs @@ -440,8 +440,7 @@ public class LayoutSections /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember(Name="sections")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(0, 1)] public Section[] Sections { get; set; } } @@ -2810,8 +2809,7 @@ public class BatchGetFieldPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="fields")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public FieldIdentifier[] Fields { get; set; } } @@ -2826,8 +2824,7 @@ public class BatchPutFieldOptionsPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="options")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public FieldOption[] Options { get; set; } } @@ -2840,8 +2837,7 @@ public class CreateCasePostBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(0, 64)] public string ClientToken { get; set; } /// @@ -2852,8 +2848,7 @@ public class CreateCasePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="fields")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public FieldValue[] Fields { get; set; } /// @@ -2864,8 +2859,7 @@ public class CreateCasePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="templateId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(1, 500)] public string TemplateId { get; set; } } @@ -2881,8 +2875,7 @@ public class CreateDomainPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^.*[\S]$")] public string Name { get; set; } } @@ -2896,8 +2889,7 @@ public class CreateFieldPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Description { get; set; } /// @@ -2909,8 +2901,7 @@ public class CreateFieldPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^.*[\S]$")] public string Name { get; set; } @@ -2943,8 +2934,7 @@ public class CreateLayoutPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^.*[\S]$")] public string Name { get; set; } } @@ -2995,8 +2985,7 @@ public class CreateTemplatePostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Description { get; set; } /// @@ -3014,8 +3003,7 @@ public class CreateTemplatePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^.*[\S]$")] public string Name { get; set; } @@ -3025,8 +3013,7 @@ public class CreateTemplatePostBody /// Maximum items: 100 /// [System.Runtime.Serialization.DataMember(Name="requiredFields")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public RequiredField[] RequiredFields { get; set; } /// @@ -3054,8 +3041,7 @@ public class GetCasePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="fields")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public FieldIdentifier[] Fields { get; set; } /// @@ -3064,8 +3050,7 @@ public class GetCasePostBody /// Max length: 9000 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(9000)] + [System.ComponentModel.DataAnnotations.Length(0, 9000)] public string NextToken { get; set; } } @@ -3080,8 +3065,7 @@ public class UpdateCasePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="fields")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public FieldValue[] Fields { get; set; } } @@ -3123,8 +3107,7 @@ public class UpdateLayoutPutBody /// Pattern: ^.*[\S]$ /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^.*[\S]$")] public string Name { get; set; } } @@ -3145,8 +3128,7 @@ public class UpdateTemplatePutBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Description { get; set; } /// @@ -3162,8 +3144,7 @@ public class UpdateTemplatePutBody /// Pattern: ^.*[\S]$ /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^.*[\S]$")] public string Name { get; set; } @@ -3173,8 +3154,7 @@ public class UpdateTemplatePutBody /// Maximum items: 100 /// [System.Runtime.Serialization.DataMember(Name="requiredFields")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public RequiredField[] RequiredFields { get; set; } /// @@ -3202,8 +3182,7 @@ public class ListCasesForContactPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="contactArn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(1, 500)] public string ContactArn { get; set; } /// @@ -3221,8 +3200,7 @@ public class ListCasesForContactPostBody /// Max length: 9000 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(9000)] + [System.ComponentModel.DataAnnotations.Length(0, 9000)] public string NextToken { get; set; } } @@ -3247,8 +3225,7 @@ public class SearchCasesPostBody /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="fields")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(0, 10)] public FieldIdentifier[] Fields { get; set; } /// @@ -3272,8 +3249,7 @@ public class SearchCasesPostBody /// Max length: 9000 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(9000)] + [System.ComponentModel.DataAnnotations.Length(0, 9000)] public string NextToken { get; set; } /// @@ -3282,8 +3258,7 @@ public class SearchCasesPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="searchTerm")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string SearchTerm { get; set; } /// @@ -3292,8 +3267,7 @@ public class SearchCasesPostBody /// Maximum items: 2 /// [System.Runtime.Serialization.DataMember(Name="sorts")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(0, 2)] public Sort[] Sorts { get; set; } } @@ -3325,8 +3299,7 @@ public class SearchRelatedItemsPostBody /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="filters")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(0, 10)] public RelatedItemTypeFilter[] Filters { get; set; } /// @@ -3344,8 +3317,7 @@ public class SearchRelatedItemsPostBody /// Max length: 9000 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(9000)] + [System.ComponentModel.DataAnnotations.Length(0, 9000)] public string NextToken { get; set; } } @@ -3358,8 +3330,7 @@ public class UpdateFieldPutBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Description { get; set; } /// @@ -3369,8 +3340,7 @@ public class UpdateFieldPutBody /// Pattern: ^.*[\S]$ /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^.*[\S]$")] public string Name { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_connectparticipant_2018_09_07_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_connectparticipant_2018_09_07_.cs index 3aae7a00..d88cbfcb 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_connectparticipant_2018_09_07_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_connectparticipant_2018_09_07_.cs @@ -802,8 +802,7 @@ public class CompleteAttachmentUploadPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public string[] AttachmentIds { get; set; } /// @@ -814,8 +813,7 @@ public class CompleteAttachmentUploadPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(1, 500)] public string ClientToken { get; set; } } @@ -860,8 +858,7 @@ public class GetAttachmentPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string AttachmentId { get; set; } } @@ -874,8 +871,7 @@ public class GetTranscriptPostBody /// Max length: 256 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string ContactId { get; set; } /// @@ -893,8 +889,7 @@ public class GetTranscriptPostBody /// Max length: 1000 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] public string NextToken { get; set; } /// @@ -940,8 +935,7 @@ public class SendEventPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string ContentType { get; set; } /// @@ -950,8 +944,7 @@ public class SendEventPostBody /// Max length: 16384 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(16384)] + [System.ComponentModel.DataAnnotations.Length(1, 16384)] public string Content { get; set; } /// @@ -974,8 +967,7 @@ public class SendMessagePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string ContentType { get; set; } /// @@ -986,8 +978,7 @@ public class SendMessagePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(16384)] + [System.ComponentModel.DataAnnotations.Length(1, 16384)] public string Content { get; set; } /// @@ -1010,8 +1001,7 @@ public class StartAttachmentUploadPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string ContentType { get; set; } /// @@ -1032,8 +1022,7 @@ public class StartAttachmentUploadPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string AttachmentName { get; set; } /// @@ -1044,8 +1033,7 @@ public class StartAttachmentUploadPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(1, 500)] public string ClientToken { get; set; } } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_controltower_2018_05_10_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_controltower_2018_05_10_.cs index 68977b51..7ba5ab4e 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_controltower_2018_05_10_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_controltower_2018_05_10_.cs @@ -381,8 +381,7 @@ public class DisableControlPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="controlIdentifier")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws[0-9a-zA-Z_\-:\/]+$")] public string ControlIdentifier { get; set; } @@ -395,8 +394,7 @@ public class DisableControlPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="targetIdentifier")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws[0-9a-zA-Z_\-:\/]+$")] public string TargetIdentifier { get; set; } } @@ -413,8 +411,7 @@ public class EnableControlPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="controlIdentifier")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws[0-9a-zA-Z_\-:\/]+$")] public string ControlIdentifier { get; set; } @@ -427,8 +424,7 @@ public class EnableControlPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="targetIdentifier")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws[0-9a-zA-Z_\-:\/]+$")] public string TargetIdentifier { get; set; } } @@ -445,8 +441,7 @@ public class GetControlOperationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="operationIdentifier")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$")] public string OperationIdentifier { get; set; } } @@ -478,8 +473,7 @@ public class ListEnabledControlsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="targetIdentifier")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws[0-9a-zA-Z_\-:\/]+$")] public string TargetIdentifier { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_customer_profiles_2020_08_15_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_customer_profiles_2020_08_15_.cs index fe01a195..bb2dd222 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_customer_profiles_2020_08_15_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_customer_profiles_2020_08_15_.cs @@ -6057,8 +6057,7 @@ public class AddProfileKeyPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9_-]+$")] public string KeyName { get; set; } @@ -6081,8 +6080,7 @@ public class CreateCalculatedAttributeDefinitionPostBody /// Pattern: ^[a-zA-Z_][a-zA-Z_0-9-\s]*$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z_][a-zA-Z_0-9-\s]*$")] public string DisplayName { get; set; } @@ -6092,8 +6090,7 @@ public class CreateCalculatedAttributeDefinitionPostBody /// Max length: 1000 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] public string Description { get; set; } /// @@ -6158,8 +6155,7 @@ public class UpdateCalculatedAttributeDefinitionPutBody /// Pattern: ^[a-zA-Z_][a-zA-Z_0-9-\s]*$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z_][a-zA-Z_0-9-\s]*$")] public string DisplayName { get; set; } @@ -6169,8 +6165,7 @@ public class UpdateCalculatedAttributeDefinitionPutBody /// Max length: 1000 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] public string Description { get; set; } /// @@ -6213,8 +6208,7 @@ public class CreateDomainPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string DefaultEncryptionKey { get; set; } /// @@ -6223,8 +6217,7 @@ public class CreateDomainPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string DeadLetterQueueUrl { get; set; } /// @@ -6311,8 +6304,7 @@ public class UpdateDomainPutBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string DefaultEncryptionKey { get; set; } /// @@ -6321,8 +6313,7 @@ public class UpdateDomainPutBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string DeadLetterQueueUrl { get; set; } /// @@ -6402,8 +6393,7 @@ public class CreateEventStreamPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Uri { get; set; } /// @@ -6441,8 +6431,7 @@ public class CreateIntegrationWorkflowPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z_][a-zA-Z_0-9-]*$")] public string ObjectTypeName { get; set; } @@ -6481,8 +6470,7 @@ public class CreateProfilePostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string AccountNumber { get; set; } /// @@ -6491,8 +6479,7 @@ public class CreateProfilePostBody /// Max length: 1000 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] public string AdditionalInformation { get; set; } /// @@ -6507,8 +6494,7 @@ public class CreateProfilePostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string BusinessName { get; set; } /// @@ -6517,8 +6503,7 @@ public class CreateProfilePostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string FirstName { get; set; } /// @@ -6527,8 +6512,7 @@ public class CreateProfilePostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string MiddleName { get; set; } /// @@ -6537,8 +6521,7 @@ public class CreateProfilePostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string LastName { get; set; } /// @@ -6547,8 +6530,7 @@ public class CreateProfilePostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string BirthDate { get; set; } /// @@ -6563,8 +6545,7 @@ public class CreateProfilePostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string PhoneNumber { get; set; } /// @@ -6573,8 +6554,7 @@ public class CreateProfilePostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string MobilePhoneNumber { get; set; } /// @@ -6583,8 +6563,7 @@ public class CreateProfilePostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string HomePhoneNumber { get; set; } /// @@ -6593,8 +6572,7 @@ public class CreateProfilePostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string BusinessPhoneNumber { get; set; } /// @@ -6603,8 +6581,7 @@ public class CreateProfilePostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string EmailAddress { get; set; } /// @@ -6613,8 +6590,7 @@ public class CreateProfilePostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string PersonalEmailAddress { get; set; } /// @@ -6623,8 +6599,7 @@ public class CreateProfilePostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string BusinessEmailAddress { get; set; } /// @@ -6663,8 +6638,7 @@ public class CreateProfilePostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string PartyTypeString { get; set; } /// @@ -6673,8 +6647,7 @@ public class CreateProfilePostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string GenderString { get; set; } } @@ -6833,8 +6806,7 @@ public class UpdateProfilePutBody /// Max length: 1000 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] public string AdditionalInformation { get; set; } /// @@ -6843,8 +6815,7 @@ public class UpdateProfilePutBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string AccountNumber { get; set; } /// @@ -6859,8 +6830,7 @@ public class UpdateProfilePutBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string BusinessName { get; set; } /// @@ -6869,8 +6839,7 @@ public class UpdateProfilePutBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string FirstName { get; set; } /// @@ -6879,8 +6848,7 @@ public class UpdateProfilePutBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string MiddleName { get; set; } /// @@ -6889,8 +6857,7 @@ public class UpdateProfilePutBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string LastName { get; set; } /// @@ -6899,8 +6866,7 @@ public class UpdateProfilePutBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string BirthDate { get; set; } /// @@ -6915,8 +6881,7 @@ public class UpdateProfilePutBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string PhoneNumber { get; set; } /// @@ -6925,8 +6890,7 @@ public class UpdateProfilePutBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string MobilePhoneNumber { get; set; } /// @@ -6935,8 +6899,7 @@ public class UpdateProfilePutBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string HomePhoneNumber { get; set; } /// @@ -6945,8 +6908,7 @@ public class UpdateProfilePutBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string BusinessPhoneNumber { get; set; } /// @@ -6955,8 +6917,7 @@ public class UpdateProfilePutBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string EmailAddress { get; set; } /// @@ -6965,8 +6926,7 @@ public class UpdateProfilePutBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string PersonalEmailAddress { get; set; } /// @@ -6975,8 +6935,7 @@ public class UpdateProfilePutBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string BusinessEmailAddress { get; set; } /// @@ -7015,8 +6974,7 @@ public class UpdateProfilePutBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string PartyTypeString { get; set; } /// @@ -7025,8 +6983,7 @@ public class UpdateProfilePutBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string GenderString { get; set; } } @@ -7177,8 +7134,7 @@ public class DeleteIntegrationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Uri { get; set; } } @@ -7218,8 +7174,7 @@ public class DeleteProfileKeyPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9_-]+$")] public string KeyName { get; set; } @@ -7253,8 +7208,7 @@ public class DeleteProfileObjectPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string ProfileObjectUniqueKey { get; set; } /// @@ -7266,8 +7220,7 @@ public class DeleteProfileObjectPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z_][a-zA-Z_0-9-]*$")] public string ObjectTypeName { get; set; } } @@ -7283,8 +7236,7 @@ public class PutProfileObjectTypePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] public string Description { get; set; } /// @@ -7294,8 +7246,7 @@ public class PutProfileObjectTypePutBody /// Pattern: ^[a-zA-Z0-9_-]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9_-]+$")] public string TemplateId { get; set; } @@ -7314,8 +7265,7 @@ public class PutProfileObjectTypePutBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string EncryptionKey { get; set; } /// @@ -7330,8 +7280,7 @@ public class PutProfileObjectTypePutBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string SourceLastUpdatedTimestampFormat { get; set; } /// @@ -7410,8 +7359,7 @@ public class GetIntegrationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Uri { get; set; } } @@ -7424,8 +7372,7 @@ public class PutIntegrationPutBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Uri { get; set; } /// @@ -7435,8 +7382,7 @@ public class PutIntegrationPutBody /// Pattern: ^[a-zA-Z_][a-zA-Z_0-9-]*$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z_][a-zA-Z_0-9-]*$")] public string ObjectTypeName { get; set; } @@ -7500,8 +7446,7 @@ public class GetSimilarProfilesPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string SearchKey { get; set; } /// @@ -7512,8 +7457,7 @@ public class GetSimilarProfilesPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string SearchValue { get; set; } } @@ -7528,8 +7472,7 @@ public class ListAccountIntegrationsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Uri { get; set; } } @@ -7545,8 +7488,7 @@ public class ListProfileObjectsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z_][a-zA-Z_0-9-]*$")] public string ObjectTypeName { get; set; } @@ -7589,8 +7531,7 @@ public class PutProfileObjectPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z_][a-zA-Z_0-9-]*$")] public string ObjectTypeName { get; set; } @@ -7602,8 +7543,7 @@ public class PutProfileObjectPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256000)] + [System.ComponentModel.DataAnnotations.Length(1, 256000)] public string Object { get; set; } } @@ -7668,8 +7608,7 @@ public class MergeProfilesPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(1, 20)] public string[] ProfileIdsToBeMerged { get; set; } /// @@ -7758,8 +7697,7 @@ public class SearchProfilesPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9_-]+$")] public string KeyName { get; set; } @@ -7777,8 +7715,7 @@ public class SearchProfilesPostBody /// Maximum items: 4 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(1, 4)] public AdditionalSearchKey[] AdditionalSearchKeys { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_databrew_2017_07_25_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_databrew_2017_07_25_.cs index eb1637aa..1ac886ff 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_databrew_2017_07_25_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_databrew_2017_07_25_.cs @@ -4542,8 +4542,7 @@ public class BatchDeleteRecipeVersionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string[] RecipeVersions { get; set; } } @@ -4558,8 +4557,7 @@ public class CreateDatasetPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -4648,8 +4646,7 @@ public class CreateProfileJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string DatasetName { get; set; } /// @@ -4658,8 +4655,7 @@ public class CreateProfileJobPostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string EncryptionKeyArn { get; set; } /// @@ -4676,8 +4672,7 @@ public class CreateProfileJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(240)] + [System.ComponentModel.DataAnnotations.Length(1, 240)] public string Name { get; set; } /// @@ -4730,8 +4725,7 @@ public class CreateProfileJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string RoleArn { get; set; } /// @@ -4816,8 +4810,7 @@ public class CreateProjectPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string DatasetName { get; set; } /// @@ -4828,8 +4821,7 @@ public class CreateProjectPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -4840,8 +4832,7 @@ public class CreateProjectPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string RecipeName { get; set; } /// @@ -4858,8 +4849,7 @@ public class CreateProjectPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string RoleArn { get; set; } /// @@ -4898,8 +4888,7 @@ public class CreateRecipePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -4926,8 +4915,7 @@ public class CreateRecipeJobPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string DatasetName { get; set; } /// @@ -4936,8 +4924,7 @@ public class CreateRecipeJobPostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string EncryptionKeyArn { get; set; } /// @@ -4954,8 +4941,7 @@ public class CreateRecipeJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(240)] + [System.ComponentModel.DataAnnotations.Length(1, 240)] public string Name { get; set; } /// @@ -5008,8 +4994,7 @@ public class CreateRecipeJobPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string ProjectName { get; set; } /// @@ -5026,8 +5011,7 @@ public class CreateRecipeJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string RoleArn { get; set; } /// @@ -5077,8 +5061,7 @@ public class CreateRulesetPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -5097,8 +5080,7 @@ public class CreateRulesetPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string TargetArn { get; set; } /// @@ -5137,8 +5119,7 @@ public class CreateSchedulePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] public string CronExpression { get; set; } /// @@ -5155,8 +5136,7 @@ public class CreateSchedulePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } } @@ -5249,8 +5229,7 @@ public class UpdateProjectPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string RoleArn { get; set; } } @@ -5305,8 +5284,7 @@ public class UpdateSchedulePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] public string CronExpression { get; set; } } @@ -5382,8 +5360,7 @@ public class SendProjectSessionActionPutBody /// Pattern: ^[a-zA-Z0-9][a-zA-Z0-9-]*$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9][a-zA-Z0-9-]*$")] public string ClientSessionId { get; set; } @@ -5451,8 +5428,7 @@ public class UpdateProfileJobPutBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string EncryptionKeyArn { get; set; } /// @@ -5505,8 +5481,7 @@ public class UpdateProfileJobPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string RoleArn { get; set; } /// @@ -5583,8 +5558,7 @@ public class UpdateRecipeJobPutBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string EncryptionKeyArn { get; set; } /// @@ -5645,8 +5619,7 @@ public class UpdateRecipeJobPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string RoleArn { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_dataexchange_2017_07_25_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_dataexchange_2017_07_25_.cs index 5236869b..a0f94837 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_dataexchange_2017_07_25_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_dataexchange_2017_07_25_.cs @@ -3684,8 +3684,7 @@ public class CreateRevisionPostBody /// Max length: 16384 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(16384)] + [System.ComponentModel.DataAnnotations.Length(0, 16384)] public string Comment { get; set; } /// @@ -3749,8 +3748,7 @@ public class UpdateRevisionPatchBody /// Max length: 16384 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(16384)] + [System.ComponentModel.DataAnnotations.Length(0, 16384)] public string Comment { get; set; } /// @@ -3783,8 +3781,7 @@ public class RevokeRevisionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(10)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(10, 512)] public string RevocationComment { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_detective_2018_10_26_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_detective_2018_10_26_.cs index 39757a64..0a4639cf 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_detective_2018_10_26_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_detective_2018_10_26_.cs @@ -1541,8 +1541,7 @@ public class BatchGetGraphMemberDatasourcesPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string[] AccountIds { get; set; } } @@ -1557,8 +1556,7 @@ public class BatchGetMembershipDatasourcesPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string[] GraphArns { get; set; } } @@ -1591,8 +1589,7 @@ public class CreateMembersPostBody /// Max length: 1000 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] public string Message { get; set; } /// @@ -1609,8 +1606,7 @@ public class CreateMembersPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public Account[] Accounts { get; set; } } @@ -1649,8 +1645,7 @@ public class DeleteMembersPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string[] AccountIds { get; set; } } @@ -1694,8 +1689,7 @@ public class EnableOrganizationAdminAccountPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9]+$")] public string AccountId { get; set; } } @@ -1721,8 +1715,7 @@ public class GetMembersPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string[] AccountIds { get; set; } } @@ -1745,8 +1738,7 @@ public class ListDatasourcePackagesPostBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string NextToken { get; set; } /// @@ -1768,8 +1760,7 @@ public class ListGraphsPostBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string NextToken { get; set; } /// @@ -1791,8 +1782,7 @@ public class ListInvitationsPostBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string NextToken { get; set; } /// @@ -1824,8 +1814,7 @@ public class ListMembersPostBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string NextToken { get; set; } /// @@ -1847,8 +1836,7 @@ public class ListOrganizationAdminAccountsPostBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string NextToken { get; set; } /// @@ -1909,8 +1897,7 @@ public class StartMonitoringMemberPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9]+$")] public string AccountId { get; set; } } @@ -1936,8 +1923,7 @@ public class UpdateDatasourcePackagesPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(1, 25)] public DatasourcePackage[] DatasourcePackages { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_devops_guru_2020_12_01_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_devops_guru_2020_12_01_.cs index 31a6f4f0..73d28ca2 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_devops_guru_2020_12_01_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_devops_guru_2020_12_01_.cs @@ -4261,8 +4261,7 @@ public class ListNotificationChannelsPostBody /// Pattern: ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$")] public string NextToken { get; set; } } @@ -4312,8 +4311,7 @@ public class DescribeFeedbackPostBody /// Pattern: ^[\w-]*$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\w-]*$")] public string InsightId { get; set; } } @@ -4347,8 +4345,7 @@ public class DescribeOrganizationHealthPostBody /// Maximum items: 5 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(0, 5)] public string[] AccountIds { get; set; } /// @@ -4357,8 +4354,7 @@ public class DescribeOrganizationHealthPostBody /// Maximum items: 5 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(0, 5)] public string[] OrganizationalUnitIds { get; set; } } @@ -4385,8 +4381,7 @@ public class DescribeOrganizationOverviewPostBody /// Maximum items: 5 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(0, 5)] public string[] AccountIds { get; set; } /// @@ -4395,8 +4390,7 @@ public class DescribeOrganizationOverviewPostBody /// Maximum items: 5 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(0, 5)] public string[] OrganizationalUnitIds { get; set; } } @@ -4417,8 +4411,7 @@ public class DescribeOrganizationResourceCollectionHealthPostBody /// Maximum items: 5 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(0, 5)] public string[] AccountIds { get; set; } /// @@ -4427,8 +4420,7 @@ public class DescribeOrganizationResourceCollectionHealthPostBody /// Maximum items: 5 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(0, 5)] public string[] OrganizationalUnitIds { get; set; } /// @@ -4438,8 +4430,7 @@ public class DescribeOrganizationResourceCollectionHealthPostBody /// Pattern: ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$")] public string NextToken { get; set; } @@ -4499,8 +4490,7 @@ public class StartCostEstimationPutBody /// Pattern: ^[a-zA-Z0-9]+[a-zA-Z0-9-]*$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9]+[a-zA-Z0-9-]*$")] public string ClientToken { get; set; } } @@ -4540,8 +4530,7 @@ public class ListAnomaliesForInsightPostBody /// Pattern: ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$")] public string NextToken { get; set; } @@ -4552,8 +4541,7 @@ public class ListAnomaliesForInsightPostBody /// Pattern: ^\d{12}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\d{12}$")] public string AccountId { get; set; } @@ -4596,8 +4584,7 @@ public class ListAnomalousLogGroupsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\w-]*$")] public string InsightId { get; set; } @@ -4617,8 +4604,7 @@ public class ListAnomalousLogGroupsPostBody /// Pattern: ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$")] public string NextToken { get; set; } } @@ -4650,8 +4636,7 @@ public class ListEventsPostBody /// Pattern: ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$")] public string NextToken { get; set; } @@ -4662,8 +4647,7 @@ public class ListEventsPostBody /// Pattern: ^\d{12}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\d{12}$")] public string AccountId { get; set; } } @@ -4720,8 +4704,7 @@ public class ListInsightsPostBody /// Pattern: ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$")] public string NextToken { get; set; } } @@ -4764,8 +4747,7 @@ public class ListMonitoredResourcesPostBody /// Pattern: ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$")] public string NextToken { get; set; } } @@ -4806,8 +4788,7 @@ public class ListOrganizationInsightsPostBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(0, 1)] public string[] AccountIds { get; set; } /// @@ -4816,8 +4797,7 @@ public class ListOrganizationInsightsPostBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(0, 1)] public string[] OrganizationalUnitIds { get; set; } /// @@ -4827,8 +4807,7 @@ public class ListOrganizationInsightsPostBody /// Pattern: ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$")] public string NextToken { get; set; } } @@ -4858,8 +4837,7 @@ public class ListRecommendationsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\w-]*$")] public string InsightId { get; set; } @@ -4870,8 +4848,7 @@ public class ListRecommendationsPostBody /// Pattern: ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$")] public string NextToken { get; set; } @@ -4888,8 +4865,7 @@ public class ListRecommendationsPostBody /// Pattern: ^\d{12}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\d{12}$")] public string AccountId { get; set; } } @@ -4927,8 +4903,7 @@ public class SearchInsightsPostBody /// Pattern: ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$")] public string NextToken { get; set; } @@ -4981,8 +4956,7 @@ public class SearchOrganizationInsightsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public string[] AccountIds { get; set; } /// @@ -5015,8 +4989,7 @@ public class SearchOrganizationInsightsPostBody /// Pattern: ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$")] public string NextToken { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_dlm_2018_01_12_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_dlm_2018_01_12_.cs index dbc9fcb0..9decbf62 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_dlm_2018_01_12_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_dlm_2018_01_12_.cs @@ -1092,8 +1092,7 @@ public class CreateLifecyclePolicyPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws(-[a-z]{1,3}){0,2}:iam::\d+:role/.*")] public string ExecutionRoleArn { get; set; } @@ -1106,8 +1105,7 @@ public class CreateLifecyclePolicyPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9A-Za-z _-]+")] public string Description { get; set; } @@ -1184,8 +1182,7 @@ public class UpdateLifecyclePolicyPatchBody /// Pattern: arn:aws(-[a-z]{1,3}){0,2}:iam::\d+:role/.* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws(-[a-z]{1,3}){0,2}:iam::\d+:role/.*")] public string ExecutionRoleArn { get; set; } @@ -1202,8 +1199,7 @@ public class UpdateLifecyclePolicyPatchBody /// Pattern: [0-9A-Za-z _-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9A-Za-z _-]+")] public string Description { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_docdb_elastic_2022_11_28_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_docdb_elastic_2022_11_28_.cs index 06604815..ae95f9e5 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_docdb_elastic_2022_11_28_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_docdb_elastic_2022_11_28_.cs @@ -1199,8 +1199,7 @@ public class CreateClusterSnapshotPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="snapshotName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] public string SnapshotName { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_drs_2020_02_26_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_drs_2020_02_26_.cs index 97d078e0..3556910f 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_drs_2020_02_26_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_drs_2020_02_26_.cs @@ -4617,8 +4617,7 @@ public class AssociateSourceNetworkStackPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="cfnStackName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z][-a-zA-Z0-9]*$")] public string CfnStackName { get; set; } @@ -4631,8 +4630,7 @@ public class AssociateSourceNetworkStackPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceNetworkID")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(20, 20)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^sn-[0-9a-zA-Z]{17}$")] public string SourceNetworkID { get; set; } } @@ -4649,8 +4647,7 @@ public class CreateExtendedSourceServerPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceServerArn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:(?:[0-9a-zA-Z_-]+:){3}([0-9]{12,}):source-server/(s-[0-9a-zA-Z]{17})$")] public string SourceServerArn { get; set; } @@ -4683,8 +4680,7 @@ public class CreateLaunchConfigurationTemplatePostBody /// Pattern: ^arn:.{16,2044}$ /// [System.Runtime.Serialization.DataMember(Name="exportBucketArn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:.{16,2044}$")] public string ExportBucketArn { get; set; } @@ -4786,8 +4782,7 @@ public class CreateReplicationConfigurationTemplatePostBody /// Pattern: ^arn:.{16,2044}$ /// [System.Runtime.Serialization.DataMember(Name="ebsEncryptionKeyArn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:.{16,2044}$")] public string EbsEncryptionKeyArn { get; set; } @@ -4799,8 +4794,7 @@ public class CreateReplicationConfigurationTemplatePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="pitPolicy")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public PITPolicyRule[] PitPolicy { get; set; } /// @@ -4811,8 +4805,7 @@ public class CreateReplicationConfigurationTemplatePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="replicationServerInstanceType")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string ReplicationServerInstanceType { get; set; } /// @@ -4823,8 +4816,7 @@ public class CreateReplicationConfigurationTemplatePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="replicationServersSecurityGroupsIDs")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(0, 32)] public string[] ReplicationServersSecurityGroupsIDs { get; set; } /// @@ -4836,8 +4828,7 @@ public class CreateReplicationConfigurationTemplatePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="stagingAreaSubnetId")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^subnet-[0-9a-fA-F]{8,}$")] public string StagingAreaSubnetId { get; set; } @@ -4876,8 +4867,7 @@ public class CreateSourceNetworkPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="originAccountID")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12,}")] public string OriginAccountID { get; set; } @@ -4890,8 +4880,7 @@ public class CreateSourceNetworkPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="originRegion")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(us(-gov)?|ap|ca|cn|eu|sa|af|me)-(central|north|(north(?:east|west))|south|south(?:east|west)|east|west)-[0-9]$")] public string OriginRegion { get; set; } @@ -4910,8 +4899,7 @@ public class CreateSourceNetworkPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="vpcID")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(21)] + [System.ComponentModel.DataAnnotations.Length(12, 21)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^vpc-[0-9a-fA-F]{8,}$")] public string VpcID { get; set; } } @@ -4928,8 +4916,7 @@ public class DeleteJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="jobID")] - [System.ComponentModel.DataAnnotations.MinLength(24)] - [System.ComponentModel.DataAnnotations.MaxLength(24)] + [System.ComponentModel.DataAnnotations.Length(24, 24)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^drsjob-[0-9a-zA-Z]{17}$")] public string JobID { get; set; } } @@ -4946,8 +4933,7 @@ public class DeleteLaunchConfigurationTemplatePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="launchConfigurationTemplateID")] - [System.ComponentModel.DataAnnotations.MinLength(21)] - [System.ComponentModel.DataAnnotations.MaxLength(21)] + [System.ComponentModel.DataAnnotations.Length(21, 21)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^lct-[0-9a-zA-Z]{17}$")] public string LaunchConfigurationTemplateID { get; set; } } @@ -4964,8 +4950,7 @@ public class DeleteRecoveryInstancePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="recoveryInstanceID")] - [System.ComponentModel.DataAnnotations.MinLength(10)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(10, 19)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^i-[0-9a-fA-F]{8,}$")] public string RecoveryInstanceID { get; set; } } @@ -4982,8 +4967,7 @@ public class DeleteReplicationConfigurationTemplatePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="replicationConfigurationTemplateID")] - [System.ComponentModel.DataAnnotations.MinLength(21)] - [System.ComponentModel.DataAnnotations.MaxLength(21)] + [System.ComponentModel.DataAnnotations.Length(21, 21)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^rct-[0-9a-zA-Z]{17}$")] public string ReplicationConfigurationTemplateID { get; set; } } @@ -5000,8 +4984,7 @@ public class DeleteSourceNetworkPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceNetworkID")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(20, 20)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^sn-[0-9a-zA-Z]{17}$")] public string SourceNetworkID { get; set; } } @@ -5018,8 +5001,7 @@ public class DeleteSourceServerPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceServerID")] - [System.ComponentModel.DataAnnotations.MinLength(19)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(19, 19)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^s-[0-9a-zA-Z]{17}$")] public string SourceServerID { get; set; } } @@ -5036,8 +5018,7 @@ public class DescribeJobLogItemsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="jobID")] - [System.ComponentModel.DataAnnotations.MinLength(24)] - [System.ComponentModel.DataAnnotations.MaxLength(24)] + [System.ComponentModel.DataAnnotations.Length(24, 24)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^drsjob-[0-9a-zA-Z]{17}$")] public string JobID { get; set; } @@ -5055,8 +5036,7 @@ public class DescribeJobLogItemsPostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] public string NextToken { get; set; } } @@ -5083,8 +5063,7 @@ public class DescribeJobsPostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] public string NextToken { get; set; } } @@ -5110,8 +5089,7 @@ public class DescribeLaunchConfigurationTemplatesPostBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember(Name="launchConfigurationTemplateIDs")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(0, 1)] public string[] LaunchConfigurationTemplateIDs { get; set; } /// @@ -5129,8 +5107,7 @@ public class DescribeLaunchConfigurationTemplatesPostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] public string NextToken { get; set; } } @@ -5157,8 +5134,7 @@ public class DescribeRecoveryInstancesPostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] public string NextToken { get; set; } } @@ -5195,8 +5171,7 @@ public class DescribeRecoverySnapshotsPostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] public string NextToken { get; set; } /// @@ -5214,8 +5189,7 @@ public class DescribeRecoverySnapshotsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceServerID")] - [System.ComponentModel.DataAnnotations.MinLength(19)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(19, 19)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^s-[0-9a-zA-Z]{17}$")] public string SourceServerID { get; set; } } @@ -5247,8 +5221,7 @@ public class DescribeReplicationConfigurationTemplatesPostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] public string NextToken { get; set; } /// @@ -5257,8 +5230,7 @@ public class DescribeReplicationConfigurationTemplatesPostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember(Name="replicationConfigurationTemplateIDs")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public string[] ReplicationConfigurationTemplateIDs { get; set; } } @@ -5285,8 +5257,7 @@ public class DescribeSourceNetworksPostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] public string NextToken { get; set; } } @@ -5326,8 +5297,7 @@ public class DescribeSourceServersPostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] public string NextToken { get; set; } } @@ -5356,8 +5326,7 @@ public class DisconnectRecoveryInstancePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="recoveryInstanceID")] - [System.ComponentModel.DataAnnotations.MinLength(10)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(10, 19)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^i-[0-9a-fA-F]{8,}$")] public string RecoveryInstanceID { get; set; } } @@ -5374,8 +5343,7 @@ public class DisconnectSourceServerPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceServerID")] - [System.ComponentModel.DataAnnotations.MinLength(19)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(19, 19)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^s-[0-9a-zA-Z]{17}$")] public string SourceServerID { get; set; } } @@ -5392,8 +5360,7 @@ public class ExportSourceNetworkCfnTemplatePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceNetworkID")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(20, 20)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^sn-[0-9a-zA-Z]{17}$")] public string SourceNetworkID { get; set; } } @@ -5410,8 +5377,7 @@ public class GetFailbackReplicationConfigurationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="recoveryInstanceID")] - [System.ComponentModel.DataAnnotations.MinLength(10)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(10, 19)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^i-[0-9a-fA-F]{8,}$")] public string RecoveryInstanceID { get; set; } } @@ -5428,8 +5394,7 @@ public class GetLaunchConfigurationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceServerID")] - [System.ComponentModel.DataAnnotations.MinLength(19)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(19, 19)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^s-[0-9a-zA-Z]{17}$")] public string SourceServerID { get; set; } } @@ -5446,8 +5411,7 @@ public class GetReplicationConfigurationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceServerID")] - [System.ComponentModel.DataAnnotations.MinLength(19)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(19, 19)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^s-[0-9a-zA-Z]{17}$")] public string SourceServerID { get; set; } } @@ -5470,8 +5434,7 @@ public class ListExtensibleSourceServersPostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] public string NextToken { get; set; } /// @@ -5483,8 +5446,7 @@ public class ListExtensibleSourceServersPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="stagingAccountID")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12,}")] public string StagingAccountID { get; set; } } @@ -5513,8 +5475,7 @@ public class RetryDataReplicationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceServerID")] - [System.ComponentModel.DataAnnotations.MinLength(19)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(19, 19)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^s-[0-9a-zA-Z]{17}$")] public string SourceServerID { get; set; } } @@ -5531,8 +5492,7 @@ public class ReverseReplicationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="recoveryInstanceID")] - [System.ComponentModel.DataAnnotations.MinLength(10)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(10, 19)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^i-[0-9a-fA-F]{8,}$")] public string RecoveryInstanceID { get; set; } } @@ -5548,8 +5508,7 @@ public class StartFailbackLaunchPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="recoveryInstanceIDs")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string[] RecoveryInstanceIDs { get; set; } /// @@ -5576,8 +5535,7 @@ public class StartRecoveryPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceServers")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public StartRecoveryRequestSourceServer[] SourceServers { get; set; } /// @@ -5599,8 +5557,7 @@ public class StartReplicationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceServerID")] - [System.ComponentModel.DataAnnotations.MinLength(19)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(19, 19)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^s-[0-9a-zA-Z]{17}$")] public string SourceServerID { get; set; } } @@ -5622,8 +5579,7 @@ public class StartSourceNetworkRecoveryPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceNetworks")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public StartSourceNetworkRecoveryRequestNetworkEntry[] SourceNetworks { get; set; } /// @@ -5645,8 +5601,7 @@ public class StartSourceNetworkReplicationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceNetworkID")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(20, 20)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^sn-[0-9a-zA-Z]{17}$")] public string SourceNetworkID { get; set; } } @@ -5663,8 +5618,7 @@ public class StopFailbackPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="recoveryInstanceID")] - [System.ComponentModel.DataAnnotations.MinLength(10)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(10, 19)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^i-[0-9a-fA-F]{8,}$")] public string RecoveryInstanceID { get; set; } } @@ -5681,8 +5635,7 @@ public class StopReplicationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceServerID")] - [System.ComponentModel.DataAnnotations.MinLength(19)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(19, 19)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^s-[0-9a-zA-Z]{17}$")] public string SourceServerID { get; set; } } @@ -5699,8 +5652,7 @@ public class StopSourceNetworkReplicationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceNetworkID")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(20, 20)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^sn-[0-9a-zA-Z]{17}$")] public string SourceNetworkID { get; set; } } @@ -5716,8 +5668,7 @@ public class TerminateRecoveryInstancesPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="recoveryInstanceIDs")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string[] RecoveryInstanceIDs { get; set; } } @@ -5738,8 +5689,7 @@ public class UpdateFailbackReplicationConfigurationPostBody /// Max length: 256 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string Name { get; set; } /// @@ -5751,8 +5701,7 @@ public class UpdateFailbackReplicationConfigurationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="recoveryInstanceID")] - [System.ComponentModel.DataAnnotations.MinLength(10)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(10, 19)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^i-[0-9a-fA-F]{8,}$")] public string RecoveryInstanceID { get; set; } @@ -5796,8 +5745,7 @@ public class UpdateLaunchConfigurationPostBody /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] public string Name { get; set; } /// @@ -5809,8 +5757,7 @@ public class UpdateLaunchConfigurationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceServerID")] - [System.ComponentModel.DataAnnotations.MinLength(19)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(19, 19)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^s-[0-9a-zA-Z]{17}$")] public string SourceServerID { get; set; } @@ -5850,8 +5797,7 @@ public class UpdateLaunchConfigurationTemplatePostBody /// Pattern: ^arn:.{16,2044}$ /// [System.Runtime.Serialization.DataMember(Name="exportBucketArn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:.{16,2044}$")] public string ExportBucketArn { get; set; } @@ -5864,8 +5810,7 @@ public class UpdateLaunchConfigurationTemplatePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="launchConfigurationTemplateID")] - [System.ComponentModel.DataAnnotations.MinLength(21)] - [System.ComponentModel.DataAnnotations.MaxLength(21)] + [System.ComponentModel.DataAnnotations.Length(21, 21)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^lct-[0-9a-zA-Z]{17}$")] public string LaunchConfigurationTemplateID { get; set; } @@ -5949,8 +5894,7 @@ public class UpdateReplicationConfigurationPostBody /// Pattern: ^arn:.{16,2044}$ /// [System.Runtime.Serialization.DataMember(Name="ebsEncryptionKeyArn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:.{16,2044}$")] public string EbsEncryptionKeyArn { get; set; } @@ -5960,8 +5904,7 @@ public class UpdateReplicationConfigurationPostBody /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] public string Name { get; set; } /// @@ -5970,8 +5913,7 @@ public class UpdateReplicationConfigurationPostBody /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="pitPolicy")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public PITPolicyRule[] PitPolicy { get; set; } /// @@ -5980,8 +5922,7 @@ public class UpdateReplicationConfigurationPostBody /// Maximum items: 60 /// [System.Runtime.Serialization.DataMember(Name="replicatedDisks")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(60)] + [System.ComponentModel.DataAnnotations.Length(0, 60)] public ReplicationConfigurationReplicatedDisk[] ReplicatedDisks { get; set; } /// @@ -5990,8 +5931,7 @@ public class UpdateReplicationConfigurationPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="replicationServerInstanceType")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string ReplicationServerInstanceType { get; set; } /// @@ -6000,8 +5940,7 @@ public class UpdateReplicationConfigurationPostBody /// Maximum items: 32 /// [System.Runtime.Serialization.DataMember(Name="replicationServersSecurityGroupsIDs")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(0, 32)] public string[] ReplicationServersSecurityGroupsIDs { get; set; } /// @@ -6013,8 +5952,7 @@ public class UpdateReplicationConfigurationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceServerID")] - [System.ComponentModel.DataAnnotations.MinLength(19)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(19, 19)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^s-[0-9a-zA-Z]{17}$")] public string SourceServerID { get; set; } @@ -6025,8 +5963,7 @@ public class UpdateReplicationConfigurationPostBody /// Pattern: ^subnet-[0-9a-fA-F]{8,}$ /// [System.Runtime.Serialization.DataMember(Name="stagingAreaSubnetId")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^subnet-[0-9a-fA-F]{8,}$")] public string StagingAreaSubnetId { get; set; } @@ -6053,8 +5990,7 @@ public class UpdateReplicationConfigurationTemplatePostBody /// Pattern: ^arn:.{16,2044}$ /// [System.Runtime.Serialization.DataMember(Name="arn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:.{16,2044}$")] public string Arn { get; set; } @@ -6109,8 +6045,7 @@ public class UpdateReplicationConfigurationTemplatePostBody /// Pattern: ^arn:.{16,2044}$ /// [System.Runtime.Serialization.DataMember(Name="ebsEncryptionKeyArn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:.{16,2044}$")] public string EbsEncryptionKeyArn { get; set; } @@ -6120,8 +6055,7 @@ public class UpdateReplicationConfigurationTemplatePostBody /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="pitPolicy")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public PITPolicyRule[] PitPolicy { get; set; } /// @@ -6133,8 +6067,7 @@ public class UpdateReplicationConfigurationTemplatePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="replicationConfigurationTemplateID")] - [System.ComponentModel.DataAnnotations.MinLength(21)] - [System.ComponentModel.DataAnnotations.MaxLength(21)] + [System.ComponentModel.DataAnnotations.Length(21, 21)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^rct-[0-9a-zA-Z]{17}$")] public string ReplicationConfigurationTemplateID { get; set; } @@ -6144,8 +6077,7 @@ public class UpdateReplicationConfigurationTemplatePostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="replicationServerInstanceType")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string ReplicationServerInstanceType { get; set; } /// @@ -6154,8 +6086,7 @@ public class UpdateReplicationConfigurationTemplatePostBody /// Maximum items: 32 /// [System.Runtime.Serialization.DataMember(Name="replicationServersSecurityGroupsIDs")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(0, 32)] public string[] ReplicationServersSecurityGroupsIDs { get; set; } /// @@ -6165,8 +6096,7 @@ public class UpdateReplicationConfigurationTemplatePostBody /// Pattern: ^subnet-[0-9a-fA-F]{8,}$ /// [System.Runtime.Serialization.DataMember(Name="stagingAreaSubnetId")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^subnet-[0-9a-fA-F]{8,}$")] public string StagingAreaSubnetId { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_dynamodb_2011_12_05_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_dynamodb_2011_12_05_.cs index c7625d08..e61640b0 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_dynamodb_2011_12_05_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_dynamodb_2011_12_05_.cs @@ -947,8 +947,7 @@ public class KeysAndAttributes /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public Key[] Keys { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_ebs_2019_11_02_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_ebs_2019_11_02_.cs index c3342bb0..3c3eedec 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_ebs_2019_11_02_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_ebs_2019_11_02_.cs @@ -572,8 +572,7 @@ public class StartSnapshotPostBody /// Pattern: ^snap-[0-9a-f]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^snap-[0-9a-f]+$")] public string ParentSnapshotId { get; set; } @@ -616,8 +615,7 @@ public class StartSnapshotPostBody /// Pattern: arn:aws[a-z\-]*:kms:.*:[0-9]{12}:key/.* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws[a-z\-]*:kms:.*:[0-9]{12}:key/.*")] public string KmsKeyArn { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_eks_2017_11_01_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_eks_2017_11_01_.cs index 9a4c6504..3152ef5d 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_eks_2017_11_01_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_eks_2017_11_01_.cs @@ -3690,8 +3690,7 @@ public class CreateAddonPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="serviceAccountRoleArn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string ServiceAccountRoleArn { get; set; } /// @@ -3731,8 +3730,7 @@ public class CreateClusterPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9A-Za-z][A-Za-z0-9\-_]*")] public string Name { get; set; } @@ -4140,8 +4138,7 @@ public class RegisterClusterPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9A-Za-z][A-Za-z0-9\-_]*")] public string Name { get; set; } @@ -4191,8 +4188,7 @@ public class UpdateAddonPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="serviceAccountRoleArn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string ServiceAccountRoleArn { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_elastic_inference_2017_07_25_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_elastic_inference_2017_07_25_.cs index 1ad600e9..75e3edec 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_elastic_inference_2017_07_25_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_elastic_inference_2017_07_25_.cs @@ -480,8 +480,7 @@ public class DescribeAcceleratorOfferingsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="locationType")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public DescribeAcceleratorOfferingsPostBodyLocationType LocationType { get; set; } /// @@ -490,8 +489,7 @@ public class DescribeAcceleratorOfferingsPostBody /// Maximum items: 100 /// [System.Runtime.Serialization.DataMember(Name="acceleratorTypes")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string[] AcceleratorTypes { get; set; } } @@ -518,8 +516,7 @@ public class DescribeAcceleratorsPostBody /// Maximum items: 1000 /// [System.Runtime.Serialization.DataMember(Name="acceleratorIds")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] public string[] AcceleratorIds { get; set; } /// @@ -528,8 +525,7 @@ public class DescribeAcceleratorsPostBody /// Maximum items: 100 /// [System.Runtime.Serialization.DataMember(Name="filters")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public Filter[] Filters { get; set; } /// @@ -548,8 +544,7 @@ public class DescribeAcceleratorsPostBody /// Pattern: ^[A-Za-z0-9+/]+={0,2}$ /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Za-z0-9+/]+={0,2}$")] public string NextToken { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_elasticfilesystem_2015_02_01_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_elasticfilesystem_2015_02_01_.cs index a5102fe7..062aefc2 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_elasticfilesystem_2015_02_01_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_elasticfilesystem_2015_02_01_.cs @@ -2202,8 +2202,7 @@ public class CreateAccessPointPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".+")] public string ClientToken { get; set; } @@ -2273,8 +2272,7 @@ public class CreateFileSystemPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".+")] public string CreationToken { get; set; } @@ -2321,8 +2319,7 @@ public class CreateFileSystemPostBody /// Pattern: .+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".+")] public string AvailabilityZoneName { get; set; } @@ -2363,8 +2360,7 @@ public class CreateMountTargetPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(15)] - [System.ComponentModel.DataAnnotations.MaxLength(47)] + [System.ComponentModel.DataAnnotations.Length(15, 47)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^subnet-[0-9a-f]{8,40}$")] public string SubnetId { get; set; } @@ -2375,8 +2371,7 @@ public class CreateMountTargetPostBody /// Pattern: ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(15)] + [System.ComponentModel.DataAnnotations.Length(7, 15)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$")] public string IpAddress { get; set; } @@ -2443,8 +2438,7 @@ public class PutFileSystemPolicyPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(20000)] + [System.ComponentModel.DataAnnotations.Length(1, 20000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]+")] public string Policy { get; set; } @@ -2466,8 +2460,7 @@ public class DeleteTagsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string[] TagKeys { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_elastictranscoder_2012_09_25_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_elastictranscoder_2012_09_25_.cs index c0f0cbfc..76673120 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_elastictranscoder_2012_09_25_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_elastictranscoder_2012_09_25_.cs @@ -1925,8 +1925,7 @@ public class CreateJobPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string OutputKeyPrefix { get; set; } /// @@ -2026,8 +2025,7 @@ public class CreatePipelinePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string Name { get; set; } /// @@ -2064,8 +2062,7 @@ public class CreatePipelinePostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string AwsKmsKeyArn { get; set; } /// @@ -2140,8 +2137,7 @@ public class CreatePresetPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string Name { get; set; } /// @@ -2150,8 +2146,7 @@ public class CreatePresetPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Description { get; set; } /// @@ -2291,8 +2286,7 @@ public class UpdatePipelinePutBody /// Max length: 40 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string Name { get; set; } /// @@ -2317,8 +2311,7 @@ public class UpdatePipelinePutBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string AwsKmsKeyArn { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_emr_containers_2020_10_01_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_emr_containers_2020_10_01_.cs index f4ad7817..ce9e2834 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_emr_containers_2020_10_01_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_emr_containers_2020_10_01_.cs @@ -1924,8 +1924,7 @@ public class CreateJobTemplatePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\.\-_/#A-Za-z0-9]+")] public string Name { get; set; } @@ -1938,8 +1937,7 @@ public class CreateJobTemplatePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string ClientToken { get; set; } @@ -1964,8 +1962,7 @@ public class CreateJobTemplatePostBody /// Pattern: ^(arn:(aws[a-zA-Z0-9-]*):kms:.+:(\d{12})?:key\/[(0-9a-zA-Z)-?]+|\$\{[a-zA-Z]\w*\})$ /// [System.Runtime.Serialization.DataMember(Name="kmsKeyArn")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(3, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(arn:(aws[a-zA-Z0-9-]*):kms:.+:(\d{12})?:key\/[(0-9a-zA-Z)-?]+|\$\{[a-zA-Z]\w*\})$")] public string KmsKeyArn { get; set; } } @@ -2007,8 +2004,7 @@ public class CreateManagedEndpointPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\.\-_/#A-Za-z0-9]+")] public string Name { get; set; } @@ -2021,8 +2017,7 @@ public class CreateManagedEndpointPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="type")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string Type { get; set; } @@ -2035,8 +2030,7 @@ public class CreateManagedEndpointPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="releaseLabel")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\.\-_/A-Za-z0-9]+")] public string ReleaseLabel { get; set; } @@ -2049,8 +2043,7 @@ public class CreateManagedEndpointPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="executionRoleArn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:(aws[a-zA-Z0-9-]*):iam::(\d{12})?:(role((\u002F)|(\u002F[\u0021-\u007F]+\u002F))[\w+=,.@-]+)$")] public string ExecutionRoleArn { get; set; } @@ -2061,8 +2054,7 @@ public class CreateManagedEndpointPostBody /// Pattern: ^arn:(aws[a-zA-Z0-9-]*):acm:.+:(\d{12}):certificate/.+$ /// [System.Runtime.Serialization.DataMember(Name="certificateArn")] - [System.ComponentModel.DataAnnotations.MinLength(44)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(44, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:(aws[a-zA-Z0-9-]*):acm:.+:(\d{12}):certificate/.+$")] public string CertificateArn { get; set; } @@ -2081,8 +2073,7 @@ public class CreateManagedEndpointPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string ClientToken { get; set; } @@ -2115,8 +2106,7 @@ public class CreateVirtualClusterPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\.\-_/#A-Za-z0-9]+")] public string Name { get; set; } @@ -2137,8 +2127,7 @@ public class CreateVirtualClusterPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string ClientToken { get; set; } @@ -2174,8 +2163,7 @@ public class GetManagedEndpointSessionCredentialsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="executionRoleArn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:(aws[a-zA-Z0-9-]*):iam::(\d{12})?:(role((\u002F)|(\u002F[\u0021-\u007F]+\u002F))[\w+=,.@-]+)$")] public string ExecutionRoleArn { get; set; } @@ -2188,8 +2176,7 @@ public class GetManagedEndpointSessionCredentialsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="credentialType")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^.*\S.*$")] public string CredentialType { get; set; } @@ -2206,8 +2193,7 @@ public class GetManagedEndpointSessionCredentialsPostBody /// Pattern: ^((?!.*-s3alias)(?!xn--.*)[a-z0-9][-a-z0-9.]*)?[a-z0-9]$ /// [System.Runtime.Serialization.DataMember(Name="logContext")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(3, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^((?!.*-s3alias)(?!xn--.*)[a-z0-9][-a-z0-9.]*)?[a-z0-9]$")] public string LogContext { get; set; } @@ -2218,8 +2204,7 @@ public class GetManagedEndpointSessionCredentialsPostBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string ClientToken { get; set; } } @@ -2234,8 +2219,7 @@ public class StartJobRunPostBody /// Pattern: [\.\-_/#A-Za-z0-9]+ /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\.\-_/#A-Za-z0-9]+")] public string Name { get; set; } @@ -2248,8 +2232,7 @@ public class StartJobRunPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string ClientToken { get; set; } @@ -2260,8 +2243,7 @@ public class StartJobRunPostBody /// Pattern: ^arn:(aws[a-zA-Z0-9-]*):iam::(\d{12})?:(role((\u002F)|(\u002F[\u0021-\u007F]+\u002F))[\w+=,.@-]+)$ /// [System.Runtime.Serialization.DataMember(Name="executionRoleArn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:(aws[a-zA-Z0-9-]*):iam::(\d{12})?:(role((\u002F)|(\u002F[\u0021-\u007F]+\u002F))[\w+=,.@-]+)$")] public string ExecutionRoleArn { get; set; } @@ -2272,8 +2254,7 @@ public class StartJobRunPostBody /// Pattern: [\.\-_/A-Za-z0-9]+ /// [System.Runtime.Serialization.DataMember(Name="releaseLabel")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\.\-_/A-Za-z0-9]+")] public string ReleaseLabel { get; set; } @@ -2302,8 +2283,7 @@ public class StartJobRunPostBody /// Pattern: [0-9a-z]+ /// [System.Runtime.Serialization.DataMember(Name="jobTemplateId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9a-z]+")] public string JobTemplateId { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_emr_serverless_2021_07_13_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_emr_serverless_2021_07_13_.cs index 30257c21..43ed1d05 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_emr_serverless_2021_07_13_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_emr_serverless_2021_07_13_.cs @@ -1749,8 +1749,7 @@ public class CreateApplicationPostBody /// Pattern: [A-Za-z0-9._/#-]+ /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-Za-z0-9._/#-]+")] public string Name { get; set; } @@ -1763,8 +1762,7 @@ public class CreateApplicationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="releaseLabel")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-Za-z0-9._/-]+")] public string ReleaseLabel { get; set; } @@ -1776,8 +1774,7 @@ public class CreateApplicationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="type")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string Type { get; set; } /// @@ -1789,8 +1786,7 @@ public class CreateApplicationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-Za-z0-9._-]+")] public string ClientToken { get; set; } @@ -1908,8 +1904,7 @@ public class UpdateApplicationPatchBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-Za-z0-9._-]+")] public string ClientToken { get; set; } @@ -1968,8 +1963,7 @@ public class UpdateApplicationPatchBody /// Pattern: [A-Za-z0-9._/-]+ /// [System.Runtime.Serialization.DataMember(Name="releaseLabel")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-Za-z0-9._/-]+")] public string ReleaseLabel { get; set; } } @@ -2033,8 +2027,7 @@ public class StartJobRunPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-Za-z0-9._-]+")] public string ClientToken { get; set; } @@ -2047,8 +2040,7 @@ public class StartJobRunPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="executionRoleArn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:(aws[a-zA-Z0-9-]*):iam::(\d{12})?:(role((\u002F)|(\u002F[\u0021-\u007F]+\u002F))[\w+=,.@-]+)")] public string ExecutionRoleArn { get; set; } @@ -2086,8 +2078,7 @@ public class StartJobRunPostBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string Name { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_entityresolution_2018_05_10_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_entityresolution_2018_05_10_.cs index b6af8277..6437d4c4 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_entityresolution_2018_05_10_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_entityresolution_2018_05_10_.cs @@ -1577,8 +1577,7 @@ public class CreateMatchingWorkflowPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Description { get; set; } /// @@ -1595,8 +1594,7 @@ public class CreateMatchingWorkflowPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="inputSourceConfig")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(1, 20)] public InputSource[] InputSourceConfig { get; set; } /// @@ -1607,8 +1605,7 @@ public class CreateMatchingWorkflowPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="outputSourceConfig")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public OutputSource[] OutputSourceConfig { get; set; } /// @@ -1642,8 +1639,7 @@ public class CreateMatchingWorkflowPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="workflowName")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z_0-9-]*$")] public string WorkflowName { get; set; } } @@ -1674,8 +1670,7 @@ public class CreateSchemaMappingPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Description { get; set; } /// @@ -1684,8 +1679,7 @@ public class CreateSchemaMappingPostBody /// Maximum items: 25 /// [System.Runtime.Serialization.DataMember(Name="mappedInputFields")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(2, 25)] public SchemaInputAttribute[] MappedInputFields { get; set; } /// @@ -1697,8 +1691,7 @@ public class CreateSchemaMappingPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="schemaName")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z_0-9-]*$")] public string SchemaName { get; set; } @@ -1718,8 +1711,7 @@ public class UpdateMatchingWorkflowPutBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Description { get; set; } /// @@ -1736,8 +1728,7 @@ public class UpdateMatchingWorkflowPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="inputSourceConfig")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(1, 20)] public InputSource[] InputSourceConfig { get; set; } /// @@ -1748,8 +1739,7 @@ public class UpdateMatchingWorkflowPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="outputSourceConfig")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public OutputSource[] OutputSourceConfig { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_es_2015_01_01_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_es_2015_01_01_.cs index 3336cbd4..b5c06071 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_es_2015_01_01_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_es_2015_01_01_.cs @@ -58,8 +58,7 @@ public class DomainInformation /// Max length: 12 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] public string OwnerId { get; set; } /// @@ -71,8 +70,7 @@ public class DomainInformation /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } @@ -2939,8 +2937,7 @@ public class UpgradeElasticsearchDomainResponse /// Pattern: [a-z][a-z0-9\-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } @@ -3855,8 +3852,7 @@ public class UpgradeElasticsearchDomainRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } @@ -5446,8 +5442,7 @@ public class CancelElasticsearchServiceSoftwareUpdatePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } } @@ -5464,8 +5459,7 @@ public class CreateElasticsearchDomainPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } @@ -5754,8 +5748,7 @@ public class CreateOutboundCrossClusterSearchConnectionPostBodySourceDomainInfo /// Max length: 12 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] public string OwnerId { get; set; } /// @@ -5765,8 +5758,7 @@ public class CreateOutboundCrossClusterSearchConnectionPostBodySourceDomainInfo /// Pattern: [a-z][a-z0-9\-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } @@ -5782,8 +5774,7 @@ public class CreateOutboundCrossClusterSearchConnectionPostBodyDestinationDomain /// Max length: 12 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] public string OwnerId { get; set; } /// @@ -5793,8 +5784,7 @@ public class CreateOutboundCrossClusterSearchConnectionPostBodyDestinationDomain /// Pattern: [a-z][a-z0-9\-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } @@ -5814,8 +5804,7 @@ public class CreatePackagePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string PackageName { get; set; } @@ -5874,8 +5863,7 @@ public class CreateVpcEndpointPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws[a-z\-]*:[a-z]+:[a-z0-9\-]+:[0-9]+:domain\/[a-z0-9\-]+")] public string DomainArn { get; set; } @@ -5893,8 +5881,7 @@ public class CreateVpcEndpointPostBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string ClientToken { get; set; } } @@ -6448,8 +6435,7 @@ public class PurchaseReservedElasticsearchInstanceOfferingPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(5, 64)] public string ReservationName { get; set; } /// @@ -6507,8 +6493,7 @@ public class StartElasticsearchServiceSoftwareUpdatePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } } @@ -6571,8 +6556,7 @@ public class UpdateVpcEndpointPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(5, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^aos-[a-zA-Z0-9]*$")] public string VpcEndpointId { get; set; } @@ -6607,8 +6591,7 @@ public class UpgradeElasticsearchDomainPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_eventbridge_2015_10_07_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_eventbridge_2015_10_07_.cs index 894239c6..261dd5f5 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_eventbridge_2015_10_07_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_eventbridge_2015_10_07_.cs @@ -2624,8 +2624,7 @@ public class RedshiftDataParameters /// Maximum items: 40 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(0, 40)] public string[] Sqls { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_evidently_2021_02_01_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_evidently_2021_02_01_.cs index 9d41fe6c..9ab8ccf4 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_evidently_2021_02_01_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_evidently_2021_02_01_.cs @@ -3781,8 +3781,7 @@ public class BatchEvaluateFeaturePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="requests")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(1, 20)] public EvaluationRequest[] Requests { get; set; } } @@ -3796,8 +3795,7 @@ public class CreateExperimentPostBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(160)] + [System.ComponentModel.DataAnnotations.Length(0, 160)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Description { get; set; } @@ -3809,8 +3807,7 @@ public class CreateExperimentPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="metricGoals")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(1, 3)] public MetricGoalConfig[] MetricGoals { get; set; } /// @@ -3822,8 +3819,7 @@ public class CreateExperimentPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(1, 127)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[-a-zA-Z0-9._]*$")] public string Name { get; set; } @@ -3840,8 +3836,7 @@ public class CreateExperimentPostBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember(Name="randomizationSalt")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(0, 127)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string RandomizationSalt { get; set; } @@ -3861,8 +3856,7 @@ public class CreateExperimentPostBody /// Pattern: (^[-a-zA-Z0-9._]*$)|(arn:[^:]*:[^:]*:[^:]*:[^:]*:segment/[-a-zA-Z0-9._]*) /// [System.Runtime.Serialization.DataMember(Name="segment")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(^[-a-zA-Z0-9._]*$)|(arn:[^:]*:[^:]*:[^:]*:[^:]*:segment/[-a-zA-Z0-9._]*)")] public string Segment { get; set; } @@ -3880,8 +3874,7 @@ public class CreateExperimentPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="treatments")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(0, 5)] public TreatmentConfig[] Treatments { get; set; } } @@ -3905,8 +3898,7 @@ public class CreateFeaturePostBody /// Pattern: ^[-a-zA-Z0-9._]*$ /// [System.Runtime.Serialization.DataMember(Name="defaultVariation")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(1, 127)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[-a-zA-Z0-9._]*$")] public string DefaultVariation { get; set; } @@ -3917,8 +3909,7 @@ public class CreateFeaturePostBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(160)] + [System.ComponentModel.DataAnnotations.Length(0, 160)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Description { get; set; } @@ -3943,8 +3934,7 @@ public class CreateFeaturePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(1, 127)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[-a-zA-Z0-9._]*$")] public string Name { get; set; } @@ -3962,8 +3952,7 @@ public class CreateFeaturePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="variations")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(1, 5)] public VariationConfig[] Variations { get; set; } } @@ -3977,8 +3966,7 @@ public class CreateLaunchPostBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(160)] + [System.ComponentModel.DataAnnotations.Length(0, 160)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Description { get; set; } @@ -3990,8 +3978,7 @@ public class CreateLaunchPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="groups")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(1, 5)] public LaunchGroupConfig[] Groups { get; set; } /// @@ -4000,8 +3987,7 @@ public class CreateLaunchPostBody /// Maximum items: 3 /// [System.Runtime.Serialization.DataMember(Name="metricMonitors")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(0, 3)] public MetricMonitorConfig[] MetricMonitors { get; set; } /// @@ -4013,8 +3999,7 @@ public class CreateLaunchPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(1, 127)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[-a-zA-Z0-9._]*$")] public string Name { get; set; } @@ -4025,8 +4010,7 @@ public class CreateLaunchPostBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember(Name="randomizationSalt")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(0, 127)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string RandomizationSalt { get; set; } @@ -4072,8 +4056,7 @@ public class CreateProjectPostBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(160)] + [System.ComponentModel.DataAnnotations.Length(0, 160)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Description { get; set; } @@ -4086,8 +4069,7 @@ public class CreateProjectPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(1, 127)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[-a-zA-Z0-9._]*$")] public string Name { get; set; } @@ -4128,8 +4110,7 @@ public class CreateSegmentPostBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(160)] + [System.ComponentModel.DataAnnotations.Length(0, 160)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Description { get; set; } @@ -4142,8 +4123,7 @@ public class CreateSegmentPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[-a-zA-Z0-9._]*$")] public string Name { get; set; } @@ -4155,8 +4135,7 @@ public class CreateSegmentPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="pattern")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string Pattern { get; set; } /// @@ -4176,8 +4155,7 @@ public class UpdateExperimentPatchBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(160)] + [System.ComponentModel.DataAnnotations.Length(0, 160)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Description { get; set; } @@ -4187,8 +4165,7 @@ public class UpdateExperimentPatchBody /// Maximum items: 3 /// [System.Runtime.Serialization.DataMember(Name="metricGoals")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(1, 3)] public MetricGoalConfig[] MetricGoals { get; set; } /// @@ -4204,8 +4181,7 @@ public class UpdateExperimentPatchBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember(Name="randomizationSalt")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(0, 127)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string RandomizationSalt { get; set; } @@ -4231,8 +4207,7 @@ public class UpdateExperimentPatchBody /// Pattern: (^[-a-zA-Z0-9._]*$)|(arn:[^:]*:[^:]*:[^:]*:[^:]*:segment/[-a-zA-Z0-9._]*) /// [System.Runtime.Serialization.DataMember(Name="segment")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(^[-a-zA-Z0-9._]*$)|(arn:[^:]*:[^:]*:[^:]*:[^:]*:segment/[-a-zA-Z0-9._]*)")] public string Segment { get; set; } @@ -4242,8 +4217,7 @@ public class UpdateExperimentPatchBody /// Maximum items: 5 /// [System.Runtime.Serialization.DataMember(Name="treatments")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(0, 5)] public TreatmentConfig[] Treatments { get; set; } } @@ -4266,8 +4240,7 @@ public class UpdateFeaturePatchBody /// Maximum items: 5 /// [System.Runtime.Serialization.DataMember(Name="addOrUpdateVariations")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(1, 5)] public VariationConfig[] AddOrUpdateVariations { get; set; } /// @@ -4277,8 +4250,7 @@ public class UpdateFeaturePatchBody /// Pattern: ^[-a-zA-Z0-9._]*$ /// [System.Runtime.Serialization.DataMember(Name="defaultVariation")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(1, 127)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[-a-zA-Z0-9._]*$")] public string DefaultVariation { get; set; } @@ -4289,8 +4261,7 @@ public class UpdateFeaturePatchBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(160)] + [System.ComponentModel.DataAnnotations.Length(0, 160)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Description { get; set; } @@ -4312,8 +4283,7 @@ public class UpdateFeaturePatchBody /// Maximum items: 5 /// [System.Runtime.Serialization.DataMember(Name="removeVariations")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(0, 5)] public string[] RemoveVariations { get; set; } } @@ -4327,8 +4297,7 @@ public class UpdateLaunchPatchBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(160)] + [System.ComponentModel.DataAnnotations.Length(0, 160)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Description { get; set; } @@ -4338,8 +4307,7 @@ public class UpdateLaunchPatchBody /// Maximum items: 5 /// [System.Runtime.Serialization.DataMember(Name="groups")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(1, 5)] public LaunchGroupConfig[] Groups { get; set; } /// @@ -4348,8 +4316,7 @@ public class UpdateLaunchPatchBody /// Maximum items: 3 /// [System.Runtime.Serialization.DataMember(Name="metricMonitors")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(0, 3)] public MetricMonitorConfig[] MetricMonitors { get; set; } /// @@ -4359,8 +4326,7 @@ public class UpdateLaunchPatchBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember(Name="randomizationSalt")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(0, 127)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string RandomizationSalt { get; set; } @@ -4394,8 +4360,7 @@ public class UpdateProjectPatchBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(160)] + [System.ComponentModel.DataAnnotations.Length(0, 160)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Description { get; set; } } @@ -4422,8 +4387,7 @@ public class EvaluateFeaturePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="entityId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string EntityId { get; set; } @@ -4457,8 +4421,7 @@ public class GetExperimentResultsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="metricNames")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public string[] MetricNames { get; set; } /// @@ -4476,8 +4439,7 @@ public class GetExperimentResultsPostBody /// Maximum items: 5 /// [System.Runtime.Serialization.DataMember(Name="reportNames")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(0, 5)] public ExperimentReportName[] ReportNames { get; set; } /// @@ -4486,8 +4448,7 @@ public class GetExperimentResultsPostBody /// Maximum items: 5 /// [System.Runtime.Serialization.DataMember(Name="resultStats")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(0, 5)] public ExperimentResultRequestType[] ResultStats { get; set; } /// @@ -4504,8 +4465,7 @@ public class GetExperimentResultsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="treatmentNames")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(1, 5)] public string[] TreatmentNames { get; set; } } @@ -4532,8 +4492,7 @@ public class PutProjectEventsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="events")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public Event[] Events { get; set; } } @@ -4565,8 +4524,7 @@ public class StopExperimentPostBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember(Name="reason")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(160)] + [System.ComponentModel.DataAnnotations.Length(0, 160)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Reason { get; set; } } @@ -4587,8 +4545,7 @@ public class StopLaunchPostBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember(Name="reason")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(160)] + [System.ComponentModel.DataAnnotations.Length(0, 160)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Reason { get; set; } } @@ -4604,8 +4561,7 @@ public class TestSegmentPatternPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="pattern")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string Pattern { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_finspace_2021_03_12_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_finspace_2021_03_12_.cs index 9c54813a..aa76eb9b 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_finspace_2021_03_12_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_finspace_2021_03_12_.cs @@ -3176,8 +3176,7 @@ public class CreateEnvironmentPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]$")] public string Name { get; set; } @@ -3188,8 +3187,7 @@ public class CreateEnvironmentPostBody /// Pattern: ^[a-zA-Z0-9. ]{1,1000}$ /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9. ]{1,1000}$")] public string Description { get; set; } @@ -3200,8 +3198,7 @@ public class CreateEnvironmentPostBody /// Pattern: ^[a-zA-Z-0-9-:\/]*$ /// [System.Runtime.Serialization.DataMember(Name="kmsKeyId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z-0-9-:\/]*$")] public string KmsKeyId { get; set; } @@ -3282,8 +3279,7 @@ public class CreateKxChangesetPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="changeRequests")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] public ChangeRequest[] ChangeRequests { get; set; } /// @@ -3295,8 +3291,7 @@ public class CreateKxChangesetPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-]+$")] public string ClientToken { get; set; } } @@ -3311,8 +3306,7 @@ public class CreateKxClusterPostBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string ClientToken { get; set; } @@ -3325,8 +3319,7 @@ public class CreateKxClusterPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clusterName")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(3, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9][a-zA-Z0-9-_]*[a-zA-Z0-9]$")] public string ClusterName { get; set; } @@ -3363,8 +3356,7 @@ public class CreateKxClusterPostBody /// Pattern: ^[a-zA-Z0-9\_\-\.\s]+$ /// [System.Runtime.Serialization.DataMember(Name="clusterDescription")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9\_\-\.\s]+$")] public string ClusterDescription { get; set; } @@ -3385,8 +3377,7 @@ public class CreateKxClusterPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="releaseLabel")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(16)] + [System.ComponentModel.DataAnnotations.Length(1, 16)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9._-]+")] public string ReleaseLabel { get; set; } @@ -3403,8 +3394,7 @@ public class CreateKxClusterPostBody /// Pattern: ^[a-zA-Z0-9\_\-\.\/\\]+$ /// [System.Runtime.Serialization.DataMember(Name="initializationScript")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9\_\-\.\/\\]+$")] public string InitializationScript { get; set; } @@ -3427,8 +3417,7 @@ public class CreateKxClusterPostBody /// Pattern: ^arn:aws[a-z0-9-]*:iam::\d{12}:role\/[\w-\/.@+=,]{1,1017}$ /// [System.Runtime.Serialization.DataMember(Name="executionRole")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws[a-z0-9-]*:iam::\d{12}:role\/[\w-\/.@+=,]{1,1017}$")] public string ExecutionRole { get; set; } @@ -3542,8 +3531,7 @@ public class CreateKxDatabasePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="databaseName")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(3, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9][a-zA-Z0-9-_]*[a-zA-Z0-9]$")] public string DatabaseName { get; set; } @@ -3554,8 +3542,7 @@ public class CreateKxDatabasePostBody /// Pattern: ^[a-zA-Z0-9. ]{1,1000}$ /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9. ]{1,1000}$")] public string Description { get; set; } @@ -3574,8 +3561,7 @@ public class CreateKxDatabasePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-]+$")] public string ClientToken { get; set; } } @@ -3592,8 +3578,7 @@ public class CreateKxEnvironmentPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(3, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9][a-zA-Z0-9-_]*[a-zA-Z0-9]$")] public string Name { get; set; } @@ -3604,8 +3589,7 @@ public class CreateKxEnvironmentPostBody /// Pattern: ^[a-zA-Z0-9. ]{1,1000}$ /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9. ]{1,1000}$")] public string Description { get; set; } @@ -3618,8 +3602,7 @@ public class CreateKxEnvironmentPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="kmsKeyId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:kms:.*:\d+:.*$")] public string KmsKeyId { get; set; } @@ -3636,8 +3619,7 @@ public class CreateKxEnvironmentPostBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string ClientToken { get; set; } } @@ -3654,8 +3636,7 @@ public class CreateKxUserPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="userName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9A-Za-z_-]{1,50}$")] public string UserName { get; set; } @@ -3668,8 +3649,7 @@ public class CreateKxUserPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="iamRole")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws[a-z\-]*:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+$")] public string IamRole { get; set; } @@ -3686,8 +3666,7 @@ public class CreateKxUserPostBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string ClientToken { get; set; } } @@ -3702,8 +3681,7 @@ public class UpdateEnvironmentPutBody /// Pattern: ^[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]$ /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]$")] public string Name { get; set; } @@ -3714,8 +3692,7 @@ public class UpdateEnvironmentPutBody /// Pattern: ^[a-zA-Z0-9. ]{1,1000}$ /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9. ]{1,1000}$")] public string Description { get; set; } @@ -3764,8 +3741,7 @@ public class UpdateKxEnvironmentPutBody /// Pattern: ^[a-zA-Z0-9][a-zA-Z0-9-_]*[a-zA-Z0-9]$ /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(3, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9][a-zA-Z0-9-_]*[a-zA-Z0-9]$")] public string Name { get; set; } @@ -3776,8 +3752,7 @@ public class UpdateKxEnvironmentPutBody /// Pattern: ^[a-zA-Z0-9. ]{1,1000}$ /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9. ]{1,1000}$")] public string Description { get; set; } @@ -3788,8 +3763,7 @@ public class UpdateKxEnvironmentPutBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string ClientToken { get; set; } } @@ -3806,8 +3780,7 @@ public class UpdateKxUserPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="iamRole")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws[a-z\-]*:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+$")] public string IamRole { get; set; } @@ -3818,8 +3791,7 @@ public class UpdateKxUserPutBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string ClientToken { get; set; } } @@ -3834,8 +3806,7 @@ public class UpdateKxDatabasePutBody /// Pattern: ^[a-zA-Z0-9. ]{1,1000}$ /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9. ]{1,1000}$")] public string Description { get; set; } @@ -3848,8 +3819,7 @@ public class UpdateKxDatabasePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-]+$")] public string ClientToken { get; set; } } @@ -3876,8 +3846,7 @@ public class UpdateKxClusterDatabasesPutBody /// Pattern: ^[a-zA-Z0-9-]+$ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-]+$")] public string ClientToken { get; set; } @@ -3912,8 +3881,7 @@ public class UpdateKxEnvironmentNetworkPutBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string ClientToken { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_finspace_data_2020_07_13_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_finspace_data_2020_07_13_.cs index 94fbee1c..16189b05 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_finspace_data_2020_07_13_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_finspace_data_2020_07_13_.cs @@ -2744,8 +2744,7 @@ public class AssociateUserToPermissionGroupPostBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string ClientToken { get; set; } } @@ -2760,8 +2759,7 @@ public class CreateChangesetPostBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string ClientToken { get; set; } @@ -2800,8 +2798,7 @@ public class CreateDataViewPostBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string ClientToken { get; set; } @@ -2861,8 +2858,7 @@ public class CreateDatasetPostBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string ClientToken { get; set; } @@ -2875,8 +2871,7 @@ public class CreateDatasetPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="datasetTitle")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string DatasetTitle { get; set; } @@ -2919,8 +2914,7 @@ public class CreateDatasetPostBody /// Pattern: ^alias\/\S+ /// [System.Runtime.Serialization.DataMember(Name="alias")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^alias\/\S+")] public string Alias { get; set; } @@ -2973,8 +2967,7 @@ public class CreatePermissionGroupPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string Name { get; set; } @@ -2985,8 +2978,7 @@ public class CreatePermissionGroupPostBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4000)] + [System.ComponentModel.DataAnnotations.Length(1, 4000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string Description { get; set; } @@ -3005,8 +2997,7 @@ public class CreatePermissionGroupPostBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string ClientToken { get; set; } } @@ -3023,8 +3014,7 @@ public class CreateUserPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="emailAddress")] - [System.ComponentModel.DataAnnotations.MinLength(4)] - [System.ComponentModel.DataAnnotations.MaxLength(320)] + [System.ComponentModel.DataAnnotations.Length(4, 320)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}")] public string EmailAddress { get; set; } @@ -3043,8 +3033,7 @@ public class CreateUserPostBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember(Name="firstName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string FirstName { get; set; } @@ -3055,8 +3044,7 @@ public class CreateUserPostBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember(Name="lastName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string LastName { get; set; } @@ -3073,8 +3061,7 @@ public class CreateUserPostBody /// Pattern: ^arn:aws[a-z\-]*:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+$ /// [System.Runtime.Serialization.DataMember(Name="apiAccessPrincipalArn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws[a-z\-]*:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+$")] public string ApiAccessPrincipalArn { get; set; } @@ -3085,8 +3072,7 @@ public class CreateUserPostBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string ClientToken { get; set; } } @@ -3101,8 +3087,7 @@ public class UpdateDatasetPutBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string ClientToken { get; set; } @@ -3115,8 +3100,7 @@ public class UpdateDatasetPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="datasetTitle")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string DatasetTitle { get; set; } @@ -3145,8 +3129,7 @@ public class UpdateDatasetPutBody /// Pattern: ^alias\/\S+ /// [System.Runtime.Serialization.DataMember(Name="alias")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^alias\/\S+")] public string Alias { get; set; } @@ -3174,8 +3157,7 @@ public class UpdatePermissionGroupPutBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string Name { get; set; } @@ -3186,8 +3168,7 @@ public class UpdatePermissionGroupPutBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4000)] + [System.ComponentModel.DataAnnotations.Length(1, 4000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string Description { get; set; } @@ -3204,8 +3185,7 @@ public class UpdatePermissionGroupPutBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string ClientToken { get; set; } } @@ -3220,8 +3200,7 @@ public class DisableUserPostBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string ClientToken { get; set; } } @@ -3236,8 +3215,7 @@ public class EnableUserPostBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string ClientToken { get; set; } } @@ -3252,8 +3230,7 @@ public class UpdateChangesetPutBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string ClientToken { get; set; } @@ -3290,8 +3267,7 @@ public class UpdateUserPutBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember(Name="firstName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string FirstName { get; set; } @@ -3302,8 +3278,7 @@ public class UpdateUserPutBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember(Name="lastName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string LastName { get; set; } @@ -3320,8 +3295,7 @@ public class UpdateUserPutBody /// Pattern: ^arn:aws[a-z\-]*:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+$ /// [System.Runtime.Serialization.DataMember(Name="apiAccessPrincipalArn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws[a-z\-]*:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+$")] public string ApiAccessPrincipalArn { get; set; } @@ -3332,8 +3306,7 @@ public class UpdateUserPutBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string ClientToken { get; set; } } @@ -3358,8 +3331,7 @@ public class ResetUserPasswordPostBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string ClientToken { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_fis_2020_12_01_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_fis_2020_12_01_.cs index 74aecee1..a9bddda5 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_fis_2020_12_01_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_fis_2020_12_01_.cs @@ -1784,8 +1784,7 @@ public class CreateExperimentTemplatePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\S]+")] public string ClientToken { get; set; } @@ -1832,8 +1831,7 @@ public class CreateExperimentTemplatePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="roleArn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\S]+")] public string RoleArn { get; set; } @@ -1901,8 +1899,7 @@ public class UpdateExperimentTemplatePatchBody /// Pattern: [\S]+ /// [System.Runtime.Serialization.DataMember(Name="roleArn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\S]+")] public string RoleArn { get; set; } @@ -1938,8 +1935,7 @@ public class StartExperimentPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\S]+")] public string ClientToken { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_fsx_2018_03_01_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_fsx_2018_03_01_.cs index 85da237c..8dff83f8 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_fsx_2018_03_01_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_fsx_2018_03_01_.cs @@ -77,8 +77,7 @@ public class AssociateFileSystemAliasesRequest /// Pattern: [A-za-z0-9_.-]{0,63}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-za-z0-9_.-]{0,63}$")] public string ClientRequestToken { get; set; } @@ -260,8 +259,7 @@ public class Backup /// Pattern: ^\d{12}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\d{12}$")] public string OwnerId { get; set; } @@ -272,8 +270,7 @@ public class Backup /// Pattern: ^(backup-[0-9a-f]{8,})$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(12, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(backup-[0-9a-f]{8,})$")] public string SourceBackupId { get; set; } @@ -703,8 +700,7 @@ public class LustreFileSystemConfiguration /// Pattern: ^([01]\d|2[0-3]):?([0-5]\d)$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(5, 5)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^([01]\d|2[0-3]):?([0-5]\d)$")] public string DailyAutomaticBackupStartTime { get; set; } @@ -815,8 +811,7 @@ public class DataRepositoryFailureDetails /// Max length: 256 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Message { get; set; } } @@ -1032,8 +1027,7 @@ public class Volume /// Pattern: ^(fs-[0-9a-f]{8,})$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(11)] - [System.ComponentModel.DataAnnotations.MaxLength(21)] + [System.ComponentModel.DataAnnotations.Length(11, 21)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(fs-[0-9a-f]{8,})$")] public string FileSystemId { get; set; } @@ -1056,8 +1050,7 @@ public class Volume /// Pattern: ^arn:(?=[^:]+:fsx:[^:]+:\d{12}:)((|(?=[a-z0-9-.]{1,63})(?!\d{1,3}(\.\d{1,3}){3})(?![^:]*-{2})(?![^:]*-\.)(?![^:]*\.-)[a-z0-9].*(? [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(8)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(8, 512)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:(?=[^:]+:fsx:[^:]+:\d{12}:)((|(?=[a-z0-9-.]{1,63})(?!\d{1,3}(\.\d{1,3}){3})(?![^:]*-{2})(?![^:]*-\.)(?![^:]*\.-)[a-z0-9].*(? [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public Tag[] Tags { get; set; } [System.Runtime.Serialization.DataMember()] @@ -1425,8 +1417,7 @@ public class LifecycleTransitionReason /// Max length: 256 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Message { get; set; } } @@ -1508,8 +1499,7 @@ public class OpenZFSOriginSnapshotConfiguration /// Pattern: ^arn:(?=[^:]+:fsx:[^:]+:\d{12}:)((|(?=[a-z0-9-.]{1,63})(?!\d{1,3}(\.\d{1,3}){3})(?![^:]*-{2})(?![^:]*-\.)(?![^:]*\.-)[a-z0-9].*(? [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(8)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(8, 512)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:(?=[^:]+:fsx:[^:]+:\d{12}:)((|(?=[a-z0-9-.]{1,63})(?!\d{1,3}(\.\d{1,3}){3})(?![^:]*-{2})(?![^:]*-\.)(?![^:]*\.-)[a-z0-9].*(? [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(8)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(8, 512)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:(?=[^:]+:fsx:[^:]+:\d{12}:)((|(?=[a-z0-9-.]{1,63})(?!\d{1,3}(\.\d{1,3}){3})(?![^:]*-{2})(?![^:]*-\.)(?![^:]*\.-)[a-z0-9].*(? [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public Tag[] Tags { get; set; } [System.Runtime.Serialization.DataMember()] @@ -1702,8 +1690,7 @@ public class OntapFileSystemConfiguration /// Pattern: ^([01]\d|2[0-3]):?([0-5]\d)$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(5, 5)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^([01]\d|2[0-3]):?([0-5]\d)$")] public string DailyAutomaticBackupStartTime { get; set; } @@ -1726,8 +1713,7 @@ public class OntapFileSystemConfiguration /// Pattern: ^(subnet-[0-9a-f]{8,})$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(15)] - [System.ComponentModel.DataAnnotations.MaxLength(24)] + [System.ComponentModel.DataAnnotations.Length(15, 24)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(subnet-[0-9a-f]{8,})$")] public string PreferredSubnetId { get; set; } @@ -1750,8 +1736,7 @@ public class OntapFileSystemConfiguration /// Pattern: ^[1-7]:([01]\d|2[0-3]):?([0-5]\d)$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(7)] + [System.ComponentModel.DataAnnotations.Length(7, 7)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[1-7]:([01]\d|2[0-3]):?([0-5]\d)$")] public string WeeklyMaintenanceStartTime { get; set; } @@ -1798,8 +1783,7 @@ public class FileSystemEndpoint /// Pattern: ^((fs|fc)i?-[0-9a-f]{8,}\..{4,253})$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(16)] - [System.ComponentModel.DataAnnotations.MaxLength(275)] + [System.ComponentModel.DataAnnotations.Length(16, 275)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^((fs|fc)i?-[0-9a-f]{8,}\..{4,253})$")] public string DNSName { get; set; } @@ -1861,8 +1845,7 @@ public class OpenZFSFileSystemConfiguration /// Pattern: ^([01]\d|2[0-3]):?([0-5]\d)$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(5, 5)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^([01]\d|2[0-3]):?([0-5]\d)$")] public string DailyAutomaticBackupStartTime { get; set; } @@ -1879,8 +1862,7 @@ public class OpenZFSFileSystemConfiguration /// Pattern: ^[1-7]:([01]\d|2[0-3]):?([0-5]\d)$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(7)] + [System.ComponentModel.DataAnnotations.Length(7, 7)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[1-7]:([01]\d|2[0-3]):?([0-5]\d)$")] public string WeeklyMaintenanceStartTime { get; set; } @@ -1925,8 +1907,7 @@ public class ActiveDirectoryBackupAttributes /// Pattern: ^arn:(?=[^:]+:fsx:[^:]+:\d{12}:)((|(?=[a-z0-9-.]{1,63})(?!\d{1,3}(\.\d{1,3}){3})(?![^:]*-{2})(?![^:]*-\.)(?![^:]*\.-)[a-z0-9].*(? [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(8)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(8, 512)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:(?=[^:]+:fsx:[^:]+:\d{12}:)((|(?=[a-z0-9-.]{1,63})(?!\d{1,3}(\.\d{1,3}){3})(?![^:]*-{2})(?![^:]*-\.)(?![^:]*\.-)[a-z0-9].*(? [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-za-z0-9_.-]{0,63}$")] public string ClientRequestToken { get; set; } @@ -1975,8 +1955,7 @@ public class CopyBackupRequest /// Pattern: ^.{1,2048}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^.{1,2048}$")] public string KmsKeyId { get; set; } @@ -1989,8 +1968,7 @@ public class CopyBackupRequest /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public Tag[] Tags { get; set; } } @@ -2100,8 +2078,7 @@ public class DataRepositoryAssociation /// Pattern: ^arn:(?=[^:]+:fsx:[^:]+:\d{12}:)((|(?=[a-z0-9-.]{1,63})(?!\d{1,3}(\.\d{1,3}){3})(?![^:]*-{2})(?![^:]*-\.)(?![^:]*\.-)[a-z0-9].*(? [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(8)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(8, 512)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:(?=[^:]+:fsx:[^:]+:\d{12}:)((|(?=[a-z0-9-.]{1,63})(?!\d{1,3}(\.\d{1,3}){3})(?![^:]*-{2})(?![^:]*-\.)(?![^:]*\.-)[a-z0-9].*(? [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(11)] - [System.ComponentModel.DataAnnotations.MaxLength(21)] + [System.ComponentModel.DataAnnotations.Length(11, 21)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(fs-[0-9a-f]{8,})$")] public string FileSystemId { get; set; } @@ -2147,8 +2123,7 @@ public class DataRepositoryAssociation /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public Tag[] Tags { get; set; } /// @@ -2262,8 +2237,7 @@ public class CreateDataRepositoryAssociationRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(11)] - [System.ComponentModel.DataAnnotations.MaxLength(21)] + [System.ComponentModel.DataAnnotations.Length(11, 21)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(fs-[0-9a-f]{8,})$")] public string FileSystemId { get; set; } @@ -2293,8 +2267,7 @@ public class CreateDataRepositoryAssociationRequest /// Pattern: [A-za-z0-9_.-]{0,63}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-za-z0-9_.-]{0,63}$")] public string ClientRequestToken { get; set; } @@ -2304,8 +2277,7 @@ public class CreateDataRepositoryAssociationRequest /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public Tag[] Tags { get; set; } } @@ -2366,8 +2338,7 @@ public class DataRepositoryTask /// Pattern: ^arn:(?=[^:]+:fsx:[^:]+:\d{12}:)((|(?=[a-z0-9-.]{1,63})(?!\d{1,3}(\.\d{1,3}){3})(?![^:]*-{2})(?![^:]*-\.)(?![^:]*\.-)[a-z0-9].*(? [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(8)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(8, 512)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:(?=[^:]+:fsx:[^:]+:\d{12}:)((|(?=[a-z0-9-.]{1,63})(?!\d{1,3}(\.\d{1,3}){3})(?![^:]*-{2})(?![^:]*-\.)(?![^:]*\.-)[a-z0-9].*(? [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public Tag[] Tags { get; set; } [System.Runtime.Serialization.DataMember()] @@ -2436,8 +2406,7 @@ public class DataRepositoryTaskFailureDetails /// Max length: 256 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Message { get; set; } } @@ -2527,8 +2496,7 @@ public class CreateDataRepositoryTaskRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(11)] - [System.ComponentModel.DataAnnotations.MaxLength(21)] + [System.ComponentModel.DataAnnotations.Length(11, 21)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(fs-[0-9a-f]{8,})$")] public string FileSystemId { get; set; } @@ -2546,8 +2514,7 @@ public class CreateDataRepositoryTaskRequest /// Pattern: [A-za-z0-9_.-]{0,63}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-za-z0-9_.-]{0,63}$")] public string ClientRequestToken { get; set; } @@ -2557,8 +2524,7 @@ public class CreateDataRepositoryTaskRequest /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public Tag[] Tags { get; set; } [System.Runtime.Serialization.DataMember()] @@ -2592,8 +2558,7 @@ public class FileCacheCreating /// Pattern: ^\d{12}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\d{12}$")] public string OwnerId { get; set; } @@ -2628,8 +2593,7 @@ public class FileCacheCreating /// Pattern: ^(vpc-[0-9a-f]{8,})$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(21)] + [System.ComponentModel.DataAnnotations.Length(12, 21)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(vpc-[0-9a-f]{8,})$")] public string VpcId { get; set; } @@ -2662,8 +2626,7 @@ public class FileCacheCreating /// Pattern: ^arn:(?=[^:]+:fsx:[^:]+:\d{12}:)((|(?=[a-z0-9-.]{1,63})(?!\d{1,3}(\.\d{1,3}){3})(?![^:]*-{2})(?![^:]*-\.)(?![^:]*\.-)[a-z0-9].*(? [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(8)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(8, 512)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:(?=[^:]+:fsx:[^:]+:\d{12}:)((|(?=[a-z0-9-.]{1,63})(?!\d{1,3}(\.\d{1,3}){3})(?![^:]*-{2})(?![^:]*-\.)(?![^:]*\.-)[a-z0-9].*(? [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public Tag[] Tags { get; set; } [System.Runtime.Serialization.DataMember()] @@ -2749,8 +2711,7 @@ public class FileCacheLustreConfiguration /// Pattern: ^[1-7]:([01]\d|2[0-3]):?([0-5]\d)$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(7)] + [System.ComponentModel.DataAnnotations.Length(7, 7)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[1-7]:([01]\d|2[0-3]):?([0-5]\d)$")] public string WeeklyMaintenanceStartTime { get; set; } @@ -2831,8 +2792,7 @@ public class CreateFileCacheRequest /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public Tag[] Tags { get; set; } [System.Runtime.Serialization.DataMember()] @@ -2876,8 +2836,7 @@ public class CreateFileCacheLustreConfiguration /// Pattern: ^[1-7]:([01]\d|2[0-3]):?([0-5]\d)$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(7)] + [System.ComponentModel.DataAnnotations.Length(7, 7)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[1-7]:([01]\d|2[0-3]):?([0-5]\d)$")] public string WeeklyMaintenanceStartTime { get; set; } @@ -3008,8 +2967,7 @@ public class CreateFileSystemRequest /// Pattern: ^.{1,2048}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^.{1,2048}$")] public string KmsKeyId { get; set; } @@ -3185,8 +3143,7 @@ public class CreateFileSystemLustreConfiguration /// Pattern: ^([01]\d|2[0-3]):?([0-5]\d)$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(5, 5)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^([01]\d|2[0-3]):?([0-5]\d)$")] public string DailyAutomaticBackupStartTime { get; set; } @@ -3250,8 +3207,7 @@ public class CreateFileSystemOntapConfiguration /// Pattern: ^([01]\d|2[0-3]):?([0-5]\d)$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(5, 5)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^([01]\d|2[0-3]):?([0-5]\d)$")] public string DailyAutomaticBackupStartTime { get; set; } @@ -3291,8 +3247,7 @@ public class CreateFileSystemOntapConfiguration /// Pattern: ^[1-7]:([01]\d|2[0-3]):?([0-5]\d)$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(7)] + [System.ComponentModel.DataAnnotations.Length(7, 7)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[1-7]:([01]\d|2[0-3]):?([0-5]\d)$")] public string WeeklyMaintenanceStartTime { get; set; } } @@ -3326,8 +3281,7 @@ public class CreateFileSystemOpenZFSConfiguration /// Pattern: ^([01]\d|2[0-3]):?([0-5]\d)$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(5, 5)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^([01]\d|2[0-3]):?([0-5]\d)$")] public string DailyAutomaticBackupStartTime { get; set; } @@ -3352,8 +3306,7 @@ public class CreateFileSystemOpenZFSConfiguration /// Pattern: ^[1-7]:([01]\d|2[0-3]):?([0-5]\d)$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(7)] + [System.ComponentModel.DataAnnotations.Length(7, 7)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[1-7]:([01]\d|2[0-3]):?([0-5]\d)$")] public string WeeklyMaintenanceStartTime { get; set; } @@ -3440,8 +3393,7 @@ public class CreateFileSystemFromBackupRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(12, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(backup-[0-9a-f]{8,})$")] public string BackupId { get; set; } @@ -3480,8 +3432,7 @@ public class CreateFileSystemFromBackupRequest /// Pattern: ^.{1,2048}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^.{1,2048}$")] public string KmsKeyId { get; set; } @@ -3514,8 +3465,7 @@ public class CreateSnapshotRequest /// Pattern: [A-za-z0-9_.-]{0,63}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-za-z0-9_.-]{0,63}$")] public string ClientRequestToken { get; set; } @@ -3539,8 +3489,7 @@ public class CreateSnapshotRequest /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public Tag[] Tags { get; set; } } @@ -3578,8 +3527,7 @@ public class StorageVirtualMachine /// Pattern: ^(fs-[0-9a-f]{8,})$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(11)] - [System.ComponentModel.DataAnnotations.MaxLength(21)] + [System.ComponentModel.DataAnnotations.Length(11, 21)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(fs-[0-9a-f]{8,})$")] public string FileSystemId { get; set; } @@ -3596,8 +3544,7 @@ public class StorageVirtualMachine /// Pattern: ^arn:(?=[^:]+:fsx:[^:]+:\d{12}:)((|(?=[a-z0-9-.]{1,63})(?!\d{1,3}(\.\d{1,3}){3})(?![^:]*-{2})(?![^:]*-\.)(?![^:]*\.-)[a-z0-9].*(? [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(8)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(8, 512)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:(?=[^:]+:fsx:[^:]+:\d{12}:)((|(?=[a-z0-9-.]{1,63})(?!\d{1,3}(\.\d{1,3}){3})(?![^:]*-{2})(?![^:]*-\.)(?![^:]*\.-)[a-z0-9].*(? [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public Tag[] Tags { get; set; } [System.Runtime.Serialization.DataMember()] @@ -3678,8 +3624,7 @@ public class SvmEndpoint /// Pattern: ^((fs|fc)i?-[0-9a-f]{8,}\..{4,253})$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(16)] - [System.ComponentModel.DataAnnotations.MaxLength(275)] + [System.ComponentModel.DataAnnotations.Length(16, 275)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^((fs|fc)i?-[0-9a-f]{8,}\..{4,253})$")] public string DNSName { get; set; } @@ -3741,8 +3686,7 @@ public class CreateStorageVirtualMachineRequest /// Pattern: [A-za-z0-9_.-]{0,63}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-za-z0-9_.-]{0,63}$")] public string ClientRequestToken { get; set; } @@ -3755,8 +3699,7 @@ public class CreateStorageVirtualMachineRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(11)] - [System.ComponentModel.DataAnnotations.MaxLength(21)] + [System.ComponentModel.DataAnnotations.Length(11, 21)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(fs-[0-9a-f]{8,})$")] public string FileSystemId { get; set; } @@ -3776,8 +3719,7 @@ public class CreateStorageVirtualMachineRequest /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public Tag[] Tags { get; set; } [System.Runtime.Serialization.DataMember()] @@ -3824,8 +3766,7 @@ public class CreateVolumeRequest /// Pattern: [A-za-z0-9_.-]{0,63}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-za-z0-9_.-]{0,63}$")] public string ClientRequestToken { get; set; } @@ -3852,8 +3793,7 @@ public class CreateVolumeRequest /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public Tag[] Tags { get; set; } [System.Runtime.Serialization.DataMember()] @@ -4008,8 +3948,7 @@ public class CreateOpenZFSOriginSnapshotConfiguration /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(8)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(8, 512)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:(?=[^:]+:fsx:[^:]+:\d{12}:)((|(?=[a-z0-9-.]{1,63})(?!\d{1,3}(\.\d{1,3}){3})(?![^:]*-{2})(?![^:]*-\.)(?![^:]*\.-)[a-z0-9].*(? [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(12, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(backup-[0-9a-f]{8,})$")] public string BackupId { get; set; } @@ -4064,8 +4002,7 @@ public class CreateVolumeFromBackupRequest /// Pattern: [A-za-z0-9_.-]{0,63}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-za-z0-9_.-]{0,63}$")] public string ClientRequestToken { get; set; } @@ -4085,8 +4022,7 @@ public class CreateVolumeFromBackupRequest /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public Tag[] Tags { get; set; } } @@ -4164,8 +4100,7 @@ public class DeleteDataRepositoryAssociationRequest /// Pattern: [A-za-z0-9_.-]{0,63}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-za-z0-9_.-]{0,63}$")] public string ClientRequestToken { get; set; } @@ -4207,8 +4142,7 @@ public class DeleteFileCacheRequest /// Pattern: [A-za-z0-9_.-]{0,63}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-za-z0-9_.-]{0,63}$")] public string ClientRequestToken { get; set; } } @@ -4289,8 +4223,7 @@ public class DeleteFileSystemOpenZFSResponse /// Pattern: ^(backup-[0-9a-f]{8,})$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(12, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(backup-[0-9a-f]{8,})$")] public string FinalBackupId { get; set; } @@ -4300,8 +4233,7 @@ public class DeleteFileSystemOpenZFSResponse /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public Tag[] FinalBackupTags { get; set; } } @@ -4413,8 +4345,7 @@ public class DeleteSnapshotRequest /// Pattern: [A-za-z0-9_.-]{0,63}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-za-z0-9_.-]{0,63}$")] public string ClientRequestToken { get; set; } @@ -4453,8 +4384,7 @@ public class DeleteStorageVirtualMachineRequest /// Pattern: [A-za-z0-9_.-]{0,63}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-za-z0-9_.-]{0,63}$")] public string ClientRequestToken { get; set; } @@ -4494,8 +4424,7 @@ public class DeleteVolumeOntapResponse /// Pattern: ^(backup-[0-9a-f]{8,})$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(12, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(backup-[0-9a-f]{8,})$")] public string FinalBackupId { get; set; } @@ -4505,8 +4434,7 @@ public class DeleteVolumeOntapResponse /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public Tag[] FinalBackupTags { get; set; } } @@ -4521,8 +4449,7 @@ public class DeleteVolumeRequest /// Pattern: [A-za-z0-9_.-]{0,63}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-za-z0-9_.-]{0,63}$")] public string ClientRequestToken { get; set; } @@ -4556,8 +4483,7 @@ public class DeleteVolumeOntapConfiguration /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public Tag[] FinalBackupTags { get; set; } [System.Runtime.Serialization.DataMember()] @@ -4674,8 +4600,7 @@ public class DescribeDataRepositoryAssociationsResponse /// Pattern: ^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$")] public string NextToken { get; set; } } @@ -4705,8 +4630,7 @@ public class DescribeDataRepositoryAssociationsRequest /// Pattern: ^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$")] public string NextToken { get; set; } } @@ -4730,8 +4654,7 @@ public class DescribeDataRepositoryTasksResponse /// Pattern: ^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$")] public string NextToken { get; set; } } @@ -4762,8 +4685,7 @@ public class DescribeDataRepositoryTasksRequest /// Pattern: ^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$")] public string NextToken { get; set; } } @@ -4813,8 +4735,7 @@ public class DescribeFileCachesResponse /// Pattern: ^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$")] public string NextToken { get; set; } } @@ -4833,8 +4754,7 @@ public class FileCache /// Pattern: ^\d{12}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\d{12}$")] public string OwnerId { get; set; } @@ -4869,8 +4789,7 @@ public class FileCache /// Pattern: ^(vpc-[0-9a-f]{8,})$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(21)] + [System.ComponentModel.DataAnnotations.Length(12, 21)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(vpc-[0-9a-f]{8,})$")] public string VpcId { get; set; } @@ -4903,8 +4822,7 @@ public class FileCache /// Pattern: ^arn:(?=[^:]+:fsx:[^:]+:\d{12}:)((|(?=[a-z0-9-.]{1,63})(?!\d{1,3}(\.\d{1,3}){3})(?![^:]*-{2})(?![^:]*-\.)(?![^:]*\.-)[a-z0-9].*(? [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(8)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(8, 512)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:(?=[^:]+:fsx:[^:]+:\d{12}:)((|(?=[a-z0-9-.]{1,63})(?!\d{1,3}(\.\d{1,3}){3})(?![^:]*-{2})(?![^:]*-\.)(?![^:]*\.-)[a-z0-9].*(? [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$")] public string NextToken { get; set; } } @@ -4972,8 +4889,7 @@ public class DescribeFileSystemAliasesRequest /// Pattern: [A-za-z0-9_.-]{0,63}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-za-z0-9_.-]{0,63}$")] public string ClientRequestToken { get; set; } @@ -5036,8 +4952,7 @@ public class DescribeSnapshotsResponse /// Pattern: ^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$")] public string NextToken { get; set; } } @@ -5068,8 +4983,7 @@ public class DescribeSnapshotsRequest /// Pattern: ^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$")] public string NextToken { get; set; } } @@ -5113,8 +5027,7 @@ public class DescribeStorageVirtualMachinesResponse /// Pattern: ^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$")] public string NextToken { get; set; } } @@ -5145,8 +5058,7 @@ public class DescribeStorageVirtualMachinesRequest /// Pattern: ^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$")] public string NextToken { get; set; } } @@ -5187,8 +5099,7 @@ public class DescribeVolumesResponse /// Pattern: ^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$")] public string NextToken { get; set; } } @@ -5219,8 +5130,7 @@ public class DescribeVolumesRequest /// Pattern: ^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$")] public string NextToken { get; set; } } @@ -5275,8 +5185,7 @@ public class DisassociateFileSystemAliasesRequest /// Pattern: [A-za-z0-9_.-]{0,63}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-za-z0-9_.-]{0,63}$")] public string ClientRequestToken { get; set; } @@ -5369,8 +5278,7 @@ public class ReleaseFileSystemNfsV3LocksRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(11)] - [System.ComponentModel.DataAnnotations.MaxLength(21)] + [System.ComponentModel.DataAnnotations.Length(11, 21)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(fs-[0-9a-f]{8,})$")] public string FileSystemId { get; set; } @@ -5381,8 +5289,7 @@ public class ReleaseFileSystemNfsV3LocksRequest /// Pattern: [A-za-z0-9_.-]{0,63}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-za-z0-9_.-]{0,63}$")] public string ClientRequestToken { get; set; } } @@ -5412,8 +5319,7 @@ public class RestoreVolumeFromSnapshotRequest /// Pattern: [A-za-z0-9_.-]{0,63}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-za-z0-9_.-]{0,63}$")] public string ClientRequestToken { get; set; } @@ -5532,8 +5438,7 @@ public class UpdateDataRepositoryAssociationRequest /// Pattern: [A-za-z0-9_.-]{0,63}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-za-z0-9_.-]{0,63}$")] public string ClientRequestToken { get; set; } @@ -5570,8 +5475,7 @@ public class UpdateFileCacheRequest /// Pattern: [A-za-z0-9_.-]{0,63}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-za-z0-9_.-]{0,63}$")] public string ClientRequestToken { get; set; } @@ -5593,8 +5497,7 @@ public class UpdateFileCacheLustreConfiguration /// Pattern: ^[1-7]:([01]\d|2[0-3]):?([0-5]\d)$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(7)] + [System.ComponentModel.DataAnnotations.Length(7, 7)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[1-7]:([01]\d|2[0-3]):?([0-5]\d)$")] public string WeeklyMaintenanceStartTime { get; set; } } @@ -5718,8 +5621,7 @@ public class UpdateFileSystemLustreConfiguration /// Pattern: ^([01]\d|2[0-3]):?([0-5]\d)$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(5, 5)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^([01]\d|2[0-3]):?([0-5]\d)$")] public string DailyAutomaticBackupStartTime { get; set; } @@ -5762,8 +5664,7 @@ public class UpdateFileSystemOntapConfiguration /// Pattern: ^([01]\d|2[0-3]):?([0-5]\d)$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(5, 5)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^([01]\d|2[0-3]):?([0-5]\d)$")] public string DailyAutomaticBackupStartTime { get; set; } @@ -5777,8 +5678,7 @@ public class UpdateFileSystemOntapConfiguration /// Pattern: ^[1-7]:([01]\d|2[0-3]):?([0-5]\d)$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(7)] + [System.ComponentModel.DataAnnotations.Length(7, 7)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[1-7]:([01]\d|2[0-3]):?([0-5]\d)$")] public string WeeklyMaintenanceStartTime { get; set; } @@ -5824,8 +5724,7 @@ public class UpdateFileSystemOpenZFSConfiguration /// Pattern: ^([01]\d|2[0-3]):?([0-5]\d)$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(5, 5)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^([01]\d|2[0-3]):?([0-5]\d)$")] public string DailyAutomaticBackupStartTime { get; set; } @@ -5839,8 +5738,7 @@ public class UpdateFileSystemOpenZFSConfiguration /// Pattern: ^[1-7]:([01]\d|2[0-3]):?([0-5]\d)$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(7)] + [System.ComponentModel.DataAnnotations.Length(7, 7)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[1-7]:([01]\d|2[0-3]):?([0-5]\d)$")] public string WeeklyMaintenanceStartTime { get; set; } @@ -5870,8 +5768,7 @@ public class UpdateSnapshotRequest /// Pattern: [A-za-z0-9_.-]{0,63}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-za-z0-9_.-]{0,63}$")] public string ClientRequestToken { get; set; } @@ -5915,8 +5812,7 @@ public class UpdateStorageVirtualMachineRequest /// Pattern: [A-za-z0-9_.-]{0,63}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-za-z0-9_.-]{0,63}$")] public string ClientRequestToken { get; set; } @@ -5967,8 +5863,7 @@ public class UpdateVolumeRequest /// Pattern: [A-za-z0-9_.-]{0,63}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-za-z0-9_.-]{0,63}$")] public string ClientRequestToken { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_gamesparks_2021_08_17_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_gamesparks_2021_08_17_.cs index 3ec578ad..35d1bf44 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_gamesparks_2021_08_17_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_gamesparks_2021_08_17_.cs @@ -2306,8 +2306,7 @@ public class CreateGamePostBody /// Max length: 126 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(33)] - [System.ComponentModel.DataAnnotations.MaxLength(126)] + [System.ComponentModel.DataAnnotations.Length(33, 126)] public string ClientToken { get; set; } /// @@ -2317,8 +2316,7 @@ public class CreateGamePostBody /// Pattern: ^\S(.*\S)?$|^$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(0, 250)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\S(.*\S)?$|^$")] public string Description { get; set; } @@ -2331,8 +2329,7 @@ public class CreateGamePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9_-]+$")] public string GameName { get; set; } @@ -2353,8 +2350,7 @@ public class CreateSnapshotPostBody /// Pattern: ^\S(.*\S)?$|^$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(0, 250)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\S(.*\S)?$|^$")] public string Description { get; set; } } @@ -2368,8 +2364,7 @@ public class CreateStagePostBody /// Max length: 126 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(33)] - [System.ComponentModel.DataAnnotations.MaxLength(126)] + [System.ComponentModel.DataAnnotations.Length(33, 126)] public string ClientToken { get; set; } /// @@ -2379,8 +2374,7 @@ public class CreateStagePostBody /// Pattern: ^\S(.*\S)?$|^$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(0, 250)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\S(.*\S)?$|^$")] public string Description { get; set; } @@ -2393,8 +2387,7 @@ public class CreateStagePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:(aws[a-zA-Z-]*)?:iam::\d{12}:role/.+$")] public string Role { get; set; } @@ -2407,8 +2400,7 @@ public class CreateStagePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9_-]+$")] public string StageName { get; set; } @@ -2429,8 +2421,7 @@ public class UpdateGamePatchBody /// Pattern: ^\S(.*\S)?$|^$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(0, 250)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\S(.*\S)?$|^$")] public string Description { get; set; } } @@ -2445,8 +2436,7 @@ public class UpdateStagePatchBody /// Pattern: ^\S(.*\S)?$|^$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(0, 250)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\S(.*\S)?$|^$")] public string Description { get; set; } @@ -2457,8 +2447,7 @@ public class UpdateStagePatchBody /// Pattern: ^arn:(aws[a-zA-Z-]*)?:iam::\d{12}:role/.+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:(aws[a-zA-Z-]*)?:iam::\d{12}:role/.+$")] public string Role { get; set; } } @@ -2493,8 +2482,7 @@ public class UpdateGameConfigurationPatchBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public SectionModification[] Modifications { get; set; } } @@ -2508,8 +2496,7 @@ public class UpdateSnapshotPatchBody /// Pattern: ^\S(.*\S)?$|^$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(0, 250)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\S(.*\S)?$|^$")] public string Description { get; set; } } @@ -2523,8 +2510,7 @@ public class StartStageDeploymentPostBody /// Max length: 126 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(33)] - [System.ComponentModel.DataAnnotations.MaxLength(126)] + [System.ComponentModel.DataAnnotations.Length(33, 126)] public string ClientToken { get; set; } /// @@ -2536,8 +2522,7 @@ public class StartStageDeploymentPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(33)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(33, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^Snapshot_\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3,6}Z$")] public string SnapshotId { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_grafana_2020_08_18_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_grafana_2020_08_18_.cs index 6efe0a6e..e0b7e77f 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_grafana_2020_08_18_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_grafana_2020_08_18_.cs @@ -1801,8 +1801,7 @@ public class CreateWorkspacePostBody /// Max length: 65536 /// [System.Runtime.Serialization.DataMember(Name="configuration")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(65536)] + [System.ComponentModel.DataAnnotations.Length(2, 65536)] public string Configuration { get; set; } /// @@ -1811,8 +1810,7 @@ public class CreateWorkspacePostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="grafanaVersion")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string GrafanaVersion { get; set; } /// @@ -1827,8 +1825,7 @@ public class CreateWorkspacePostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="organizationRoleName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string OrganizationRoleName { get; set; } /// @@ -1869,8 +1866,7 @@ public class CreateWorkspacePostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="workspaceDescription")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] public string WorkspaceDescription { get; set; } /// @@ -1899,8 +1895,7 @@ public class CreateWorkspacePostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="workspaceRoleArn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string WorkspaceRoleArn { get; set; } } @@ -1935,8 +1930,7 @@ public class CreateWorkspaceApiKeyPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="keyName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string KeyName { get; set; } /// @@ -1980,8 +1974,7 @@ public class UpdateWorkspacePutBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="organizationRoleName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string OrganizationRoleName { get; set; } /// @@ -2026,8 +2019,7 @@ public class UpdateWorkspacePutBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="workspaceDescription")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] public string WorkspaceDescription { get; set; } /// @@ -2056,8 +2048,7 @@ public class UpdateWorkspacePutBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="workspaceRoleArn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string WorkspaceRoleArn { get; set; } } @@ -2129,8 +2120,7 @@ public class UpdateWorkspaceConfigurationPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="configuration")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(65536)] + [System.ComponentModel.DataAnnotations.Length(2, 65536)] public string Configuration { get; set; } /// @@ -2139,8 +2129,7 @@ public class UpdateWorkspaceConfigurationPutBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="grafanaVersion")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string GrafanaVersion { get; set; } } @@ -2155,8 +2144,7 @@ public class UpdatePermissionsPatchBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="updateInstructionBatch")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(0, 20)] public UpdateInstruction[] UpdateInstructionBatch { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_greengrassv2_2020_11_30_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_greengrassv2_2020_11_30_.cs index 3b425ec8..569dab66 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_greengrassv2_2020_11_30_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_greengrassv2_2020_11_30_.cs @@ -2699,8 +2699,7 @@ public class BatchAssociateClientDeviceWithCoreDevicePostBody /// Maximum items: 100 /// [System.Runtime.Serialization.DataMember(Name="entries")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public AssociateClientDeviceWithCoreDeviceEntry[] Entries { get; set; } } @@ -2713,8 +2712,7 @@ public class BatchDisassociateClientDeviceFromCoreDevicePostBody /// Maximum items: 100 /// [System.Runtime.Serialization.DataMember(Name="entries")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public DisassociateClientDeviceFromCoreDeviceEntry[] Entries { get; set; } } @@ -2746,8 +2744,7 @@ public class CreateComponentVersionPostBody /// Pattern: ^[a-zA-Z0-9-]+$ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-]+$")] public string ClientToken { get; set; } } @@ -2793,8 +2790,7 @@ public class CreateDeploymentPostBody /// Max length: 256 /// [System.Runtime.Serialization.DataMember(Name="deploymentName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string DeploymentName { get; set; } /// @@ -2836,8 +2832,7 @@ public class CreateDeploymentPostBody /// Pattern: ^[a-zA-Z0-9-]+$ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-]+$")] public string ClientToken { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_groundstation_2019_05_23_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_groundstation_2019_05_23_.cs index 6ebd9b7f..428e0910 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_groundstation_2019_05_23_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_groundstation_2019_05_23_.cs @@ -3605,8 +3605,7 @@ public class CreateConfigPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[ a-zA-Z0-9_:-]{1,256}$")] public string Name { get; set; } @@ -3671,8 +3670,7 @@ public class CreateDataflowEndpointGroupPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="endpointDetails")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] public EndpointDetails[] EndpointDetails { get; set; } /// @@ -3718,8 +3716,7 @@ public class CreateEphemerisPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[ a-zA-Z0-9_:-]{1,256}$")] public string Name { get; set; } @@ -3741,8 +3738,7 @@ public class CreateEphemerisPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="satelliteId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$")] public string SatelliteId { get; set; } @@ -3798,8 +3794,7 @@ public class CreateMissionProfilePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="dataflowEdges")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] public string[][] DataflowEdges { get; set; } /// @@ -3822,8 +3817,7 @@ public class CreateMissionProfilePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[ a-zA-Z0-9_:-]{1,256}$")] public string Name { get; set; } @@ -3959,8 +3953,7 @@ public class UpdateConfigPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[ a-zA-Z0-9_:-]{1,256}$")] public string Name { get; set; } } @@ -4008,8 +4001,7 @@ public class UpdateEphemerisPutBody /// Pattern: ^[ a-zA-Z0-9_:-]{1,256}$ /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[ a-zA-Z0-9_:-]{1,256}$")] public string Name { get; set; } @@ -4050,8 +4042,7 @@ public class UpdateMissionProfilePutBody /// Maximum items: 500 /// [System.Runtime.Serialization.DataMember(Name="dataflowEdges")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] public string[][] DataflowEdges { get; set; } /// @@ -4070,8 +4061,7 @@ public class UpdateMissionProfilePutBody /// Pattern: ^[ a-zA-Z0-9_:-]{1,256}$ /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[ a-zA-Z0-9_:-]{1,256}$")] public string Name { get; set; } @@ -4148,8 +4138,7 @@ public class ListContactsPostBody /// Pattern: ^[ a-zA-Z0-9-._:=]{4,256}$ /// [System.Runtime.Serialization.DataMember(Name="groundStation")] - [System.ComponentModel.DataAnnotations.MinLength(4)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(4, 500)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[ a-zA-Z0-9-._:=]{4,256}$")] public string GroundStation { get; set; } @@ -4175,8 +4164,7 @@ public class ListContactsPostBody /// Pattern: ^[A-Za-z0-9-/+_.=]+$ /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(3, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Za-z0-9-/+_.=]+$")] public string NextToken { get; set; } @@ -4202,8 +4190,7 @@ public class ListContactsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="statusList")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] public ContactStatus[] StatusList { get; set; } } @@ -4227,8 +4214,7 @@ public class ListEphemeridesPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="satelliteId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$")] public string SatelliteId { get; set; } @@ -4246,8 +4232,7 @@ public class ListEphemeridesPostBody /// Maximum items: 500 /// [System.Runtime.Serialization.DataMember(Name="statusList")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] public EphemerisStatus[] StatusList { get; set; } } @@ -4338,8 +4323,7 @@ public class ReserveContactPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="groundStation")] - [System.ComponentModel.DataAnnotations.MinLength(4)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(4, 500)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[ a-zA-Z0-9-._:=]{4,256}$")] public string GroundStation { get; set; } @@ -4393,8 +4377,7 @@ public class UpdateAgentStatusPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="componentStatuses")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(0, 20)] public ComponentStatusData[] ComponentStatuses { get; set; } /// @@ -4406,8 +4389,7 @@ public class UpdateAgentStatusPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="taskId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$")] public string TaskId { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_guardduty_2017_11_28_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_guardduty_2017_11_28_.cs index 67097161..af2751ff 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_guardduty_2017_11_28_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_guardduty_2017_11_28_.cs @@ -7714,8 +7714,7 @@ public class ArchiveFindingsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="findingIds")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public string[] FindingIds { get; set; } } @@ -7736,8 +7735,7 @@ public class CreateDetectorPostBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(0, 64)] public string ClientToken { get; set; } /// @@ -7789,8 +7787,7 @@ public class CreateFilterPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(3, 64)] public string Name { get; set; } /// @@ -7799,8 +7796,7 @@ public class CreateFilterPostBody /// Max length: 512 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(0, 512)] public string Description { get; set; } /// @@ -7809,8 +7805,7 @@ public class CreateFilterPostBody /// Max length: 300 /// [System.Runtime.Serialization.DataMember(Name="action")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(300)] + [System.ComponentModel.DataAnnotations.Length(1, 300)] public FilterAction Action { get; set; } /// @@ -7836,8 +7831,7 @@ public class CreateFilterPostBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(0, 64)] public string ClientToken { get; set; } /// @@ -7865,8 +7859,7 @@ public class CreateIPSetPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(300)] + [System.ComponentModel.DataAnnotations.Length(1, 300)] public string Name { get; set; } /// @@ -7877,8 +7870,7 @@ public class CreateIPSetPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="format")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(300)] + [System.ComponentModel.DataAnnotations.Length(1, 300)] public IpSetFormat Format { get; set; } /// @@ -7889,8 +7881,7 @@ public class CreateIPSetPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="location")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(300)] + [System.ComponentModel.DataAnnotations.Length(1, 300)] public string Location { get; set; } /// @@ -7907,8 +7898,7 @@ public class CreateIPSetPostBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(0, 64)] public string ClientToken { get; set; } /// @@ -7929,8 +7919,7 @@ public class CreateMembersPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="accountDetails")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public AccountDetail[] AccountDetails { get; set; } } @@ -7945,8 +7934,7 @@ public class CreatePublishingDestinationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="destinationType")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(300)] + [System.ComponentModel.DataAnnotations.Length(1, 300)] public DestinationType DestinationType { get; set; } /// @@ -7963,8 +7951,7 @@ public class CreatePublishingDestinationPostBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(0, 64)] public string ClientToken { get; set; } } @@ -7987,8 +7974,7 @@ public class CreateSampleFindingsPostBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember(Name="findingTypes")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public string[] FindingTypes { get; set; } } @@ -8003,8 +7989,7 @@ public class CreateThreatIntelSetPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(300)] + [System.ComponentModel.DataAnnotations.Length(1, 300)] public string Name { get; set; } /// @@ -8015,8 +8000,7 @@ public class CreateThreatIntelSetPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="format")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(300)] + [System.ComponentModel.DataAnnotations.Length(1, 300)] public IpSetFormat Format { get; set; } /// @@ -8027,8 +8011,7 @@ public class CreateThreatIntelSetPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="location")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(300)] + [System.ComponentModel.DataAnnotations.Length(1, 300)] public string Location { get; set; } /// @@ -8045,8 +8028,7 @@ public class CreateThreatIntelSetPostBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(0, 64)] public string ClientToken { get; set; } /// @@ -8067,8 +8049,7 @@ public class DeclineInvitationsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="accountIds")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string[] AccountIds { get; set; } } @@ -8122,8 +8103,7 @@ public class UpdateFilterPostBody /// Max length: 512 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(0, 512)] public string Description { get; set; } /// @@ -8132,8 +8112,7 @@ public class UpdateFilterPostBody /// Max length: 300 /// [System.Runtime.Serialization.DataMember(Name="action")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(300)] + [System.ComponentModel.DataAnnotations.Length(1, 300)] public FilterAction Action { get; set; } /// @@ -8168,8 +8147,7 @@ public class UpdateIPSetPostBody /// Max length: 300 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(300)] + [System.ComponentModel.DataAnnotations.Length(1, 300)] public string Name { get; set; } /// @@ -8178,8 +8156,7 @@ public class UpdateIPSetPostBody /// Max length: 300 /// [System.Runtime.Serialization.DataMember(Name="location")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(300)] + [System.ComponentModel.DataAnnotations.Length(1, 300)] public string Location { get; set; } /// @@ -8200,8 +8177,7 @@ public class DeleteInvitationsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="accountIds")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string[] AccountIds { get; set; } } @@ -8216,8 +8192,7 @@ public class DeleteMembersPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="accountIds")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string[] AccountIds { get; set; } } @@ -8250,8 +8225,7 @@ public class UpdateThreatIntelSetPostBody /// Max length: 300 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(300)] + [System.ComponentModel.DataAnnotations.Length(1, 300)] public string Name { get; set; } /// @@ -8260,8 +8234,7 @@ public class UpdateThreatIntelSetPostBody /// Max length: 300 /// [System.Runtime.Serialization.DataMember(Name="location")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(300)] + [System.ComponentModel.DataAnnotations.Length(1, 300)] public string Location { get; set; } /// @@ -8383,8 +8356,7 @@ public class DisassociateMembersPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="accountIds")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string[] AccountIds { get; set; } } @@ -8436,8 +8408,7 @@ public class GetFindingsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="findingIds")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public string[] FindingIds { get; set; } /// @@ -8468,8 +8439,7 @@ public class GetFindingsStatisticsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="findingStatisticTypes")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(0, 10)] public FindingStatisticType[] FindingStatisticTypes { get; set; } /// @@ -8523,8 +8493,7 @@ public class GetMemberDetectorsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="accountIds")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string[] AccountIds { get; set; } } @@ -8539,8 +8508,7 @@ public class GetMembersPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="accountIds")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string[] AccountIds { get; set; } } @@ -8553,8 +8521,7 @@ public class GetRemainingFreeTrialDaysPostBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember(Name="accountIds")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string[] AccountIds { get; set; } } @@ -8626,8 +8593,7 @@ public class InviteMembersPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="accountIds")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string[] AccountIds { get; set; } /// @@ -8776,8 +8742,7 @@ public class StartMonitoringMembersPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="accountIds")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string[] AccountIds { get; set; } } @@ -8792,8 +8757,7 @@ public class StopMonitoringMembersPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="accountIds")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string[] AccountIds { get; set; } } @@ -8808,8 +8772,7 @@ public class UnarchiveFindingsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="findingIds")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public string[] FindingIds { get; set; } } @@ -8824,8 +8787,7 @@ public class UpdateFindingsFeedbackPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="findingIds")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public string[] FindingIds { get; set; } /// @@ -8854,8 +8816,7 @@ public class UpdateMemberDetectorsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="accountIds")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string[] AccountIds { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_honeycode_2020_03_01_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_honeycode_2020_03_01_.cs index f64a4140..67578d96 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_honeycode_2020_03_01_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_honeycode_2020_03_01_.cs @@ -1773,8 +1773,7 @@ public class BatchCreateTableRowsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="rowsToCreate")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public CreateRowData[] RowsToCreate { get; set; } /// @@ -1784,8 +1783,7 @@ public class BatchCreateTableRowsPostBody /// Pattern: ^(?!\s*$).+ /// [System.Runtime.Serialization.DataMember(Name="clientRequestToken")] - [System.ComponentModel.DataAnnotations.MinLength(32)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(32, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?!\s*$).+")] public string ClientRequestToken { get; set; } } @@ -1801,8 +1799,7 @@ public class BatchDeleteTableRowsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="rowIds")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] RowIds { get; set; } /// @@ -1812,8 +1809,7 @@ public class BatchDeleteTableRowsPostBody /// Pattern: ^(?!\s*$).+ /// [System.Runtime.Serialization.DataMember(Name="clientRequestToken")] - [System.ComponentModel.DataAnnotations.MinLength(32)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(32, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?!\s*$).+")] public string ClientRequestToken { get; set; } } @@ -1829,8 +1825,7 @@ public class BatchUpdateTableRowsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="rowsToUpdate")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public UpdateRowData[] RowsToUpdate { get; set; } /// @@ -1840,8 +1835,7 @@ public class BatchUpdateTableRowsPostBody /// Pattern: ^(?!\s*$).+ /// [System.Runtime.Serialization.DataMember(Name="clientRequestToken")] - [System.ComponentModel.DataAnnotations.MinLength(32)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(32, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?!\s*$).+")] public string ClientRequestToken { get; set; } } @@ -1864,8 +1858,7 @@ public class BatchUpsertTableRowsPostBody /// Pattern: ^(?!\s*$).+ /// [System.Runtime.Serialization.DataMember(Name="clientRequestToken")] - [System.ComponentModel.DataAnnotations.MinLength(32)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(32, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?!\s*$).+")] public string ClientRequestToken { get; set; } } @@ -1882,8 +1875,7 @@ public class GetScreenDataPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="workbookId")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}")] public string WorkbookId { get; set; } @@ -1896,8 +1888,7 @@ public class GetScreenDataPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="appId")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}")] public string AppId { get; set; } @@ -1910,8 +1901,7 @@ public class GetScreenDataPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="screenId")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}")] public string ScreenId { get; set; } @@ -1937,8 +1927,7 @@ public class GetScreenDataPostBody /// Pattern: ^(?!\s*$).+ /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?!\s*$).+")] public string NextToken { get; set; } } @@ -1959,8 +1948,7 @@ public class InvokeScreenAutomationPostBody /// Pattern: row:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\/[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12} /// [System.Runtime.Serialization.DataMember(Name="rowId")] - [System.ComponentModel.DataAnnotations.MinLength(77)] - [System.ComponentModel.DataAnnotations.MaxLength(77)] + [System.ComponentModel.DataAnnotations.Length(77, 77)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"row:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\/[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}")] public string RowId { get; set; } @@ -1971,8 +1959,7 @@ public class InvokeScreenAutomationPostBody /// Pattern: ^(?!\s*$).+ /// [System.Runtime.Serialization.DataMember(Name="clientRequestToken")] - [System.ComponentModel.DataAnnotations.MinLength(32)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(32, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?!\s*$).+")] public string ClientRequestToken { get; set; } } @@ -1986,8 +1973,7 @@ public class ListTableRowsPostBody /// Maximum items: 100 /// [System.Runtime.Serialization.DataMember(Name="rowIds")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] RowIds { get; set; } /// @@ -2006,8 +1992,7 @@ public class ListTableRowsPostBody /// Pattern: ^(?!\s*$).+ /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?!\s*$).+")] public string NextToken { get; set; } } @@ -2051,8 +2036,7 @@ public class QueryTableRowsPostBody /// Pattern: ^(?!\s*$).+ /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?!\s*$).+")] public string NextToken { get; set; } } @@ -2103,8 +2087,7 @@ public class StartTableDataImportJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientRequestToken")] - [System.ComponentModel.DataAnnotations.MinLength(32)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(32, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?!\s*$).+")] public string ClientRequestToken { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_iam_2010_05_08_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_iam_2010_05_08_.cs index a0650262..d08c5f8d 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_iam_2010_05_08_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_iam_2010_05_08_.cs @@ -467,8 +467,7 @@ public class Policy /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string Arn { get; set; } [System.Runtime.Serialization.DataMember()] @@ -912,8 +911,7 @@ public class UserDetail /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string Arn { get; set; } [System.Runtime.Serialization.DataMember()] @@ -965,8 +963,7 @@ public class AttachedPolicy /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string PolicyArn { get; set; } } @@ -992,8 +989,7 @@ public class GroupDetail /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string Arn { get; set; } [System.Runtime.Serialization.DataMember()] @@ -1028,8 +1024,7 @@ public class RoleDetail /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string Arn { get; set; } [System.Runtime.Serialization.DataMember()] @@ -1076,8 +1071,7 @@ public class ManagedPolicyDetail /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string Arn { get; set; } [System.Runtime.Serialization.DataMember()] @@ -1839,8 +1833,7 @@ public class TrackedActionLastAccessed /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string LastAccessedEntity { get; set; } [System.Runtime.Serialization.DataMember()] @@ -1925,8 +1918,7 @@ public class EntityInfo /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string Arn { get; set; } /// @@ -2483,8 +2475,7 @@ public class OpenIDConnectProviderListEntry /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string Arn { get; set; } } @@ -2564,8 +2555,7 @@ public class PolicyGrantingServiceAccess /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string PolicyArn { get; set; } [System.Runtime.Serialization.DataMember()] diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_imagebuilder_2019_12_02_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_imagebuilder_2019_12_02_.cs index 51dfc9f6..47916d11 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_imagebuilder_2019_12_02_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_imagebuilder_2019_12_02_.cs @@ -5751,8 +5751,7 @@ public class CancelImageCreationPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] public string ClientToken { get; set; } } @@ -5785,8 +5784,7 @@ public class CreateComponentPutBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string Description { get; set; } /// @@ -5795,8 +5793,7 @@ public class CreateComponentPutBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="changeDescription")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string ChangeDescription { get; set; } /// @@ -5813,8 +5810,7 @@ public class CreateComponentPutBody /// Maximum items: 25 /// [System.Runtime.Serialization.DataMember(Name="supportedOsVersions")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(1, 25)] public string[] SupportedOsVersions { get; set; } /// @@ -5824,8 +5820,7 @@ public class CreateComponentPutBody /// Pattern: [^\x00]+ /// [System.Runtime.Serialization.DataMember(Name="data")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(16000)] + [System.ComponentModel.DataAnnotations.Length(1, 16000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^\x00]+")] public string Data { get; set; } @@ -5841,8 +5836,7 @@ public class CreateComponentPutBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="kmsKeyId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string KmsKeyId { get; set; } /// @@ -5859,8 +5853,7 @@ public class CreateComponentPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] public string ClientToken { get; set; } } @@ -5891,8 +5884,7 @@ public class CreateContainerRecipePutBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string Description { get; set; } /// @@ -5928,8 +5920,7 @@ public class CreateContainerRecipePutBody /// Pattern: [^\x00]+ /// [System.Runtime.Serialization.DataMember(Name="dockerfileTemplateData")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(16000)] + [System.ComponentModel.DataAnnotations.Length(1, 16000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^\x00]+")] public string DockerfileTemplateData { get; set; } @@ -5951,8 +5942,7 @@ public class CreateContainerRecipePutBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="imageOsVersionOverride")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string ImageOsVersionOverride { get; set; } /// @@ -5963,8 +5953,7 @@ public class CreateContainerRecipePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="parentImage")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string ParentImage { get; set; } /// @@ -5979,8 +5968,7 @@ public class CreateContainerRecipePutBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="workingDirectory")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string WorkingDirectory { get; set; } /// @@ -5997,8 +5985,7 @@ public class CreateContainerRecipePutBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="kmsKeyId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string KmsKeyId { get; set; } /// @@ -6009,8 +5996,7 @@ public class CreateContainerRecipePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] public string ClientToken { get; set; } } @@ -6053,8 +6039,7 @@ public class CreateDistributionConfigurationPutBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string Description { get; set; } /// @@ -6079,8 +6064,7 @@ public class CreateDistributionConfigurationPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] public string ClientToken { get; set; } } @@ -6147,8 +6131,7 @@ public class CreateImagePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] public string ClientToken { get; set; } /// @@ -6197,8 +6180,7 @@ public class CreateImagePipelinePutBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string Description { get; set; } /// @@ -6273,8 +6255,7 @@ public class CreateImagePipelinePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] public string ClientToken { get; set; } /// @@ -6336,8 +6317,7 @@ public class CreateImageRecipePutBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string Description { get; set; } /// @@ -6368,8 +6348,7 @@ public class CreateImageRecipePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="parentImage")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string ParentImage { get; set; } /// @@ -6390,8 +6369,7 @@ public class CreateImageRecipePutBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="workingDirectory")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string WorkingDirectory { get; set; } /// @@ -6408,8 +6386,7 @@ public class CreateImageRecipePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] public string ClientToken { get; set; } } @@ -6442,8 +6419,7 @@ public class CreateInfrastructureConfigurationPutBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string Description { get; set; } /// @@ -6461,8 +6437,7 @@ public class CreateInfrastructureConfigurationPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="instanceProfileName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\w+=,.@-]+$")] public string InstanceProfileName { get; set; } @@ -6478,8 +6453,7 @@ public class CreateInfrastructureConfigurationPutBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="subnetId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string SubnetId { get; set; } /// @@ -6494,8 +6468,7 @@ public class CreateInfrastructureConfigurationPutBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="keyPair")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string KeyPair { get; set; } /// @@ -6538,8 +6511,7 @@ public class CreateInfrastructureConfigurationPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] public string ClientToken { get; set; } } @@ -6589,8 +6561,7 @@ public class ImportComponentPutBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string Description { get; set; } /// @@ -6599,8 +6570,7 @@ public class ImportComponentPutBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="changeDescription")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string ChangeDescription { get; set; } /// @@ -6633,8 +6603,7 @@ public class ImportComponentPutBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="data")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string Data { get; set; } /// @@ -6649,8 +6618,7 @@ public class ImportComponentPutBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="kmsKeyId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string KmsKeyId { get; set; } /// @@ -6667,8 +6635,7 @@ public class ImportComponentPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] public string ClientToken { get; set; } } @@ -6683,8 +6650,7 @@ public class ImportVmImagePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string Name { get; set; } /// @@ -6703,8 +6669,7 @@ public class ImportVmImagePutBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string Description { get; set; } /// @@ -6731,8 +6696,7 @@ public class ImportVmImagePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="vmImportTaskId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string VmImportTaskId { get; set; } /// @@ -6749,8 +6713,7 @@ public class ImportVmImagePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] public string ClientToken { get; set; } } @@ -6782,8 +6745,7 @@ public class ListComponentBuildVersionsPostBody /// Max length: 65535 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65535)] + [System.ComponentModel.DataAnnotations.Length(1, 65535)] public string NextToken { get; set; } } @@ -6802,8 +6764,7 @@ public class ListComponentsPostBody /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="filters")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public Filter[] Filters { get; set; } /// @@ -6827,8 +6788,7 @@ public class ListComponentsPostBody /// Max length: 65535 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65535)] + [System.ComponentModel.DataAnnotations.Length(1, 65535)] public string NextToken { get; set; } } @@ -6847,8 +6807,7 @@ public class ListContainerRecipesPostBody /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="filters")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public Filter[] Filters { get; set; } /// @@ -6866,8 +6825,7 @@ public class ListContainerRecipesPostBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string NextToken { get; set; } } @@ -6880,8 +6838,7 @@ public class ListDistributionConfigurationsPostBody /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="filters")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public Filter[] Filters { get; set; } /// @@ -6899,8 +6856,7 @@ public class ListDistributionConfigurationsPostBody /// Max length: 65535 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65535)] + [System.ComponentModel.DataAnnotations.Length(1, 65535)] public string NextToken { get; set; } } @@ -6923,8 +6879,7 @@ public class ListImageBuildVersionsPostBody /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="filters")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public Filter[] Filters { get; set; } /// @@ -6942,8 +6897,7 @@ public class ListImageBuildVersionsPostBody /// Max length: 65535 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65535)] + [System.ComponentModel.DataAnnotations.Length(1, 65535)] public string NextToken { get; set; } } @@ -6975,8 +6929,7 @@ public class ListImagePackagesPostBody /// Max length: 65535 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65535)] + [System.ComponentModel.DataAnnotations.Length(1, 65535)] public string NextToken { get; set; } } @@ -6999,8 +6952,7 @@ public class ListImagePipelineImagesPostBody /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="filters")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public Filter[] Filters { get; set; } /// @@ -7018,8 +6970,7 @@ public class ListImagePipelineImagesPostBody /// Max length: 65535 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65535)] + [System.ComponentModel.DataAnnotations.Length(1, 65535)] public string NextToken { get; set; } } @@ -7032,8 +6983,7 @@ public class ListImagePipelinesPostBody /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="filters")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public Filter[] Filters { get; set; } /// @@ -7051,8 +7001,7 @@ public class ListImagePipelinesPostBody /// Max length: 65535 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65535)] + [System.ComponentModel.DataAnnotations.Length(1, 65535)] public string NextToken { get; set; } } @@ -7071,8 +7020,7 @@ public class ListImageRecipesPostBody /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="filters")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public Filter[] Filters { get; set; } /// @@ -7090,8 +7038,7 @@ public class ListImageRecipesPostBody /// Max length: 65535 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65535)] + [System.ComponentModel.DataAnnotations.Length(1, 65535)] public string NextToken { get; set; } } @@ -7110,8 +7057,7 @@ public class ListImageScanFindingAggregationsPostBody /// Max length: 65535 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65535)] + [System.ComponentModel.DataAnnotations.Length(1, 65535)] public string NextToken { get; set; } } @@ -7134,8 +7080,7 @@ public class ListImageScanFindingsPostBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember(Name="filters")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public ImageScanFindingsFilter[] Filters { get; set; } /// @@ -7153,8 +7098,7 @@ public class ListImageScanFindingsPostBody /// Max length: 65535 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65535)] + [System.ComponentModel.DataAnnotations.Length(1, 65535)] public string NextToken { get; set; } } @@ -7173,8 +7117,7 @@ public class ListImagesPostBody /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="filters")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public Filter[] Filters { get; set; } /// @@ -7198,8 +7141,7 @@ public class ListImagesPostBody /// Max length: 65535 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65535)] + [System.ComponentModel.DataAnnotations.Length(1, 65535)] public string NextToken { get; set; } /// @@ -7218,8 +7160,7 @@ public class ListInfrastructureConfigurationsPostBody /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="filters")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public Filter[] Filters { get; set; } /// @@ -7237,8 +7178,7 @@ public class ListInfrastructureConfigurationsPostBody /// Max length: 65535 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65535)] + [System.ComponentModel.DataAnnotations.Length(1, 65535)] public string NextToken { get; set; } } @@ -7272,8 +7212,7 @@ public class ListWorkflowExecutionsPostBody /// Max length: 65535 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65535)] + [System.ComponentModel.DataAnnotations.Length(1, 65535)] public string NextToken { get; set; } /// @@ -7305,8 +7244,7 @@ public class ListWorkflowStepExecutionsPostBody /// Max length: 65535 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65535)] + [System.ComponentModel.DataAnnotations.Length(1, 65535)] public string NextToken { get; set; } /// @@ -7341,8 +7279,7 @@ public class PutComponentPolicyPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="policy")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(30000)] + [System.ComponentModel.DataAnnotations.Length(1, 30000)] public string Policy { get; set; } } @@ -7367,8 +7304,7 @@ public class PutContainerRecipePolicyPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="policy")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(30000)] + [System.ComponentModel.DataAnnotations.Length(1, 30000)] public string Policy { get; set; } } @@ -7393,8 +7329,7 @@ public class PutImagePolicyPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="policy")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(30000)] + [System.ComponentModel.DataAnnotations.Length(1, 30000)] public string Policy { get; set; } } @@ -7419,8 +7354,7 @@ public class PutImageRecipePolicyPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="policy")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(30000)] + [System.ComponentModel.DataAnnotations.Length(1, 30000)] public string Policy { get; set; } } @@ -7445,8 +7379,7 @@ public class StartImagePipelineExecutionPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] public string ClientToken { get; set; } } @@ -7469,8 +7402,7 @@ public class UpdateDistributionConfigurationPutBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string Description { get; set; } /// @@ -7489,8 +7421,7 @@ public class UpdateDistributionConfigurationPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] public string ClientToken { get; set; } } @@ -7513,8 +7444,7 @@ public class UpdateImagePipelinePutBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string Description { get; set; } /// @@ -7583,8 +7513,7 @@ public class UpdateImagePipelinePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] public string ClientToken { get; set; } /// @@ -7646,8 +7575,7 @@ public class UpdateInfrastructureConfigurationPutBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string Description { get; set; } /// @@ -7665,8 +7593,7 @@ public class UpdateInfrastructureConfigurationPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="instanceProfileName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\w+=,.@-]+$")] public string InstanceProfileName { get; set; } @@ -7682,8 +7609,7 @@ public class UpdateInfrastructureConfigurationPutBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="subnetId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string SubnetId { get; set; } /// @@ -7698,8 +7624,7 @@ public class UpdateInfrastructureConfigurationPutBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="keyPair")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string KeyPair { get; set; } /// @@ -7724,8 +7649,7 @@ public class UpdateInfrastructureConfigurationPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] public string ClientToken { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_inspector2_2020_06_08_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_inspector2_2020_06_08_.cs index 549d9173..89df4d15 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_inspector2_2020_06_08_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_inspector2_2020_06_08_.cs @@ -6706,8 +6706,7 @@ public class AssociateMemberPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="accountId")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\d{12}$")] public string AccountId { get; set; } } @@ -6721,8 +6720,7 @@ public class BatchGetAccountStatusPostBody /// Maximum items: 100 /// [System.Runtime.Serialization.DataMember(Name="accountIds")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string[] AccountIds { get; set; } } @@ -6737,8 +6735,7 @@ public class BatchGetCodeSnippetPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="findingArns")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public string[] FindingArns { get; set; } } @@ -6753,8 +6750,7 @@ public class BatchGetFindingDetailsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="findingArns")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public string[] FindingArns { get; set; } } @@ -6769,8 +6765,7 @@ public class BatchGetFreeTrialInfoPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="accountIds")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] AccountIds { get; set; } } @@ -6783,8 +6778,7 @@ public class BatchGetMemberEc2DeepInspectionStatusPostBody /// Maximum items: 100 /// [System.Runtime.Serialization.DataMember(Name="accountIds")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string[] AccountIds { get; set; } } @@ -6799,8 +6793,7 @@ public class BatchUpdateMemberEc2DeepInspectionStatusPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="accountIds")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public MemberAccountEc2DeepInspectionStatus[] AccountIds { get; set; } } @@ -6849,8 +6842,7 @@ public class CreateFilterPostBody /// Max length: 512 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] public string Description { get; set; } /// @@ -6869,8 +6861,7 @@ public class CreateFilterPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Name { get; set; } /// @@ -6879,8 +6870,7 @@ public class CreateFilterPostBody /// Max length: 512 /// [System.Runtime.Serialization.DataMember(Name="reason")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] public string Reason { get; set; } /// @@ -7267,8 +7257,7 @@ public class DeleteFilterPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="arn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Arn { get; set; } } @@ -7281,8 +7270,7 @@ public class DisablePostBody /// Maximum items: 100 /// [System.Runtime.Serialization.DataMember(Name="accountIds")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string[] AccountIds { get; set; } /// @@ -7291,8 +7279,7 @@ public class DisablePostBody /// Maximum items: 3 /// [System.Runtime.Serialization.DataMember(Name="resourceTypes")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(0, 3)] public ResourceScanType[] ResourceTypes { get; set; } } @@ -7308,8 +7295,7 @@ public class DisableDelegatedAdminAccountPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="delegatedAdminAccountId")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\d{12}$")] public string DelegatedAdminAccountId { get; set; } } @@ -7326,8 +7312,7 @@ public class DisassociateMemberPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="accountId")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\d{12}$")] public string AccountId { get; set; } } @@ -7341,8 +7326,7 @@ public class EnablePostBody /// Maximum items: 100 /// [System.Runtime.Serialization.DataMember(Name="accountIds")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string[] AccountIds { get; set; } /// @@ -7351,8 +7335,7 @@ public class EnablePostBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string ClientToken { get; set; } /// @@ -7363,8 +7346,7 @@ public class EnablePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="resourceTypes")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(1, 3)] public ResourceScanType[] ResourceTypes { get; set; } } @@ -7377,8 +7359,7 @@ public class EnableDelegatedAdminAccountPostBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string ClientToken { get; set; } /// @@ -7390,8 +7371,7 @@ public class EnableDelegatedAdminAccountPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="delegatedAdminAccountId")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\d{12}$")] public string DelegatedAdminAccountId { get; set; } } @@ -7420,8 +7400,7 @@ public class GetMemberPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="accountId")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\d{12}$")] public string AccountId { get; set; } } @@ -7458,8 +7437,7 @@ public class ListAccountPermissionsPostBody /// Max length: 1000000 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000000)] public string NextToken { get; set; } /// @@ -7493,8 +7471,7 @@ public class ListCoveragePostBody /// Max length: 1000000 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000000)] public string NextToken { get; set; } } @@ -7562,8 +7539,7 @@ public class ListCoverageStatisticsPostBody /// Max length: 1000000 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000000)] public string NextToken { get; set; } } @@ -7628,8 +7604,7 @@ public class ListDelegatedAdminAccountsPostBody /// Max length: 1000000 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000000)] public string NextToken { get; set; } } @@ -7663,8 +7638,7 @@ public class ListFiltersPostBody /// Max length: 1000000 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000000)] public string NextToken { get; set; } } @@ -7677,8 +7651,7 @@ public class ListFindingAggregationsPostBody /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="accountIds")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public StringFilter[] AccountIds { get; set; } /// @@ -7710,8 +7683,7 @@ public class ListFindingAggregationsPostBody /// Max length: 1000000 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000000)] public string NextToken { get; set; } } @@ -7776,8 +7748,7 @@ public class ListFindingsPostBody /// Max length: 1000000 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000000)] public string NextToken { get; set; } /// @@ -7945,8 +7916,7 @@ public class ListMembersPostBody /// Max length: 1000000 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000000)] public string NextToken { get; set; } /// @@ -7977,8 +7947,7 @@ public class ListUsageTotalsPostBody /// Maximum items: 7000 /// [System.Runtime.Serialization.DataMember(Name="accountIds")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(7000)] + [System.ComponentModel.DataAnnotations.Length(1, 7000)] public string[] AccountIds { get; set; } /// @@ -8036,8 +8005,7 @@ public class SearchVulnerabilitiesPostBody /// Max length: 1000000 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000000)] public string NextToken { get; set; } } @@ -8082,8 +8050,7 @@ public class UpdateEc2DeepInspectionConfigurationPostBody /// Maximum items: 5 /// [System.Runtime.Serialization.DataMember(Name="packagePaths")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(0, 5)] public string[] PackagePaths { get; set; } } @@ -8132,8 +8099,7 @@ public class UpdateFilterPostBody /// Max length: 512 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] public string Description { get; set; } /// @@ -8144,8 +8110,7 @@ public class UpdateFilterPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="filterArn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string FilterArn { get; set; } /// @@ -8160,8 +8125,7 @@ public class UpdateFilterPostBody /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Name { get; set; } /// @@ -8170,8 +8134,7 @@ public class UpdateFilterPostBody /// Max length: 512 /// [System.Runtime.Serialization.DataMember(Name="reason")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] public string Reason { get; set; } } @@ -8316,8 +8279,7 @@ public class UpdateOrgEc2DeepInspectionConfigurationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="orgPackagePaths")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(0, 5)] public string[] OrgPackagePaths { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_inspector_2016_02_16_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_inspector_2016_02_16_.cs index 472f6483..db2edccd 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_inspector_2016_02_16_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_inspector_2016_02_16_.cs @@ -743,8 +743,7 @@ public class DescribeAssessmentTemplatesRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="assessmentTemplateArns")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public string[] AssessmentTemplateArns { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_internetmonitor_2021_06_03_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_internetmonitor_2021_06_03_.cs index 9cd7b856..92d01f56 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_internetmonitor_2021_06_03_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_internetmonitor_2021_06_03_.cs @@ -1220,8 +1220,7 @@ public class CreateMonitorPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.-]+")] public string MonitorName { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_iot1click_projects_2018_05_14_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_iot1click_projects_2018_05_14_.cs index 8059b03e..1517dc4f 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_iot1click_projects_2018_05_14_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_iot1click_projects_2018_05_14_.cs @@ -1083,8 +1083,7 @@ public class AssociateDeviceWithPlacementPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="deviceId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] public string DeviceId { get; set; } } @@ -1100,8 +1099,7 @@ public class CreatePlacementPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="placementName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9_-]+$")] public string PlacementName { get; set; } @@ -1124,8 +1122,7 @@ public class CreateProjectPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="projectName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9A-Za-z_-]+$")] public string ProjectName { get; set; } @@ -1135,8 +1132,7 @@ public class CreateProjectPostBody /// Max length: 500 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] public string Description { get; set; } /// @@ -1181,8 +1177,7 @@ public class UpdateProjectPutBody /// Max length: 500 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] public string Description { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_iot_2015_05_28_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_iot_2015_05_28_.cs index 0731feaf..e52c7f7f 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_iot_2015_05_28_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_iot_2015_05_28_.cs @@ -19602,8 +19602,7 @@ public class AddThingToBillingGroupPutBody /// Pattern: [a-zA-Z0-9:_-]+ /// [System.Runtime.Serialization.DataMember(Name="billingGroupName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9:_-]+")] public string BillingGroupName { get; set; } @@ -19620,8 +19619,7 @@ public class AddThingToBillingGroupPutBody /// Pattern: [a-zA-Z0-9:_-]+ /// [System.Runtime.Serialization.DataMember(Name="thingName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9:_-]+")] public string ThingName { get; set; } @@ -19642,8 +19640,7 @@ public class AddThingToThingGroupPutBody /// Pattern: [a-zA-Z0-9:_-]+ /// [System.Runtime.Serialization.DataMember(Name="thingGroupName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9:_-]+")] public string ThingGroupName { get; set; } @@ -19660,8 +19657,7 @@ public class AddThingToThingGroupPutBody /// Pattern: [a-zA-Z0-9:_-]+ /// [System.Runtime.Serialization.DataMember(Name="thingName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9:_-]+")] public string ThingName { get; set; } @@ -19778,8 +19774,7 @@ public class SetDefaultAuthorizerPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="authorizerName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\w=,@-]+")] public string AuthorizerName { get; set; } } @@ -19834,8 +19829,7 @@ public class CreateAuditSuppressionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientRequestToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_]+$")] public string ClientRequestToken { get; set; } } @@ -19896,8 +19890,7 @@ public class CreateAuthorizerPostBody /// Pattern: [a-zA-Z0-9_-]+ /// [System.Runtime.Serialization.DataMember(Name="tokenKeyName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_-]+")] public string TokenKeyName { get; set; } @@ -19952,8 +19945,7 @@ public class UpdateAuthorizerPutBody /// Pattern: [a-zA-Z0-9_-]+ /// [System.Runtime.Serialization.DataMember(Name="tokenKeyName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_-]+")] public string TokenKeyName { get; set; } @@ -20036,8 +20028,7 @@ public class CreateCertificateFromCsrPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="certificateSigningRequest")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4096)] + [System.ComponentModel.DataAnnotations.Length(1, 4096)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string CertificateSigningRequest { get; set; } } @@ -20078,8 +20069,7 @@ public class CreateCustomMetricPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientRequestToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_]+$")] public string ClientRequestToken { get; set; } } @@ -20136,8 +20126,7 @@ public class CreateDimensionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="stringValues")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] StringValues { get; set; } /// @@ -20155,8 +20144,7 @@ public class CreateDimensionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientRequestToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_]+$")] public string ClientRequestToken { get; set; } } @@ -20172,8 +20160,7 @@ public class UpdateDimensionPatchBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="stringValues")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] StringValues { get; set; } } @@ -20187,8 +20174,7 @@ public class CreateDomainConfigurationPostBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember(Name="domainName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(253)] + [System.ComponentModel.DataAnnotations.Length(1, 253)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string DomainName { get; set; } @@ -20198,8 +20184,7 @@ public class CreateDomainConfigurationPostBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember(Name="serverCertificateArns")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(0, 1)] public string[] ServerCertificateArns { get; set; } /// @@ -20209,8 +20194,7 @@ public class CreateDomainConfigurationPostBody /// Pattern: arn:aws(-cn|-us-gov|-iso-b|-iso)?:acm:[a-z]{2}-(gov-|iso-|isob-)?[a-z]{4,9}-\d{1}:\d{12}:certificate/[a-zA-Z0-9/-]+ /// [System.Runtime.Serialization.DataMember(Name="validationCertificateArn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws(-cn|-us-gov|-iso-b|-iso)?:acm:[a-z]{2}-(gov-|iso-|isob-)?[a-z]{4,9}-\d{1}:\d{12}:certificate/[a-zA-Z0-9/-]+")] public string ValidationCertificateArn { get; set; } @@ -20317,8 +20301,7 @@ public class CreateDynamicThingGroupPostBody /// Pattern: [a-zA-Z0-9:_-]+ /// [System.Runtime.Serialization.DataMember(Name="indexName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9:_-]+")] public string IndexName { get; set; } @@ -20379,8 +20362,7 @@ public class UpdateDynamicThingGroupPatchBody /// Pattern: [a-zA-Z0-9:_-]+ /// [System.Runtime.Serialization.DataMember(Name="indexName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9:_-]+")] public string IndexName { get; set; } @@ -20474,8 +20456,7 @@ public class CreateFleetMetricPutBody /// Pattern: [a-zA-Z0-9:_-]+ /// [System.Runtime.Serialization.DataMember(Name="indexName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9:_-]+")] public string IndexName { get; set; } @@ -20647,8 +20628,7 @@ public class UpdateFleetMetricPatchBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="indexName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9:_-]+")] public string IndexName { get; set; } @@ -20780,8 +20760,7 @@ public class CreateJobPutBody /// Max length: 1350 /// [System.Runtime.Serialization.DataMember(Name="documentSource")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1350)] + [System.ComponentModel.DataAnnotations.Length(1, 1350)] public string DocumentSource { get; set; } /// @@ -20853,8 +20832,7 @@ public class CreateJobPutBody /// Pattern: ^arn:[!-~]+$ /// [System.Runtime.Serialization.DataMember(Name="jobTemplateArn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(1, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:[!-~]+$")] public string JobTemplateArn { get; set; } @@ -21040,8 +21018,7 @@ public class CreateJobTemplatePutBody /// Max length: 1350 /// [System.Runtime.Serialization.DataMember(Name="documentSource")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1350)] + [System.ComponentModel.DataAnnotations.Length(1, 1350)] public string DocumentSource { get; set; } /// @@ -21165,8 +21142,7 @@ public class CreateMitigationActionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="roleArn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string RoleArn { get; set; } /// @@ -21215,8 +21191,7 @@ public class UpdateMitigationActionPatchBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="roleArn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string RoleArn { get; set; } /// @@ -21277,8 +21252,7 @@ public class CreateOTAUpdatePostBody /// Maximum items: 2 /// [System.Runtime.Serialization.DataMember(Name="protocols")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(1, 2)] public Protocol[] Protocols { get; set; } /// @@ -21329,8 +21303,7 @@ public class CreateOTAUpdatePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="roleArn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string RoleArn { get; set; } /// @@ -21387,8 +21360,7 @@ public class CreatePackagePutBody /// Pattern: [^\p{C}]+ /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^\p{C}]+")] public string Description { get; set; } @@ -21409,8 +21381,7 @@ public class UpdatePackagePatchBody /// Pattern: [^\p{C}]+ /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^\p{C}]+")] public string Description { get; set; } @@ -21421,8 +21392,7 @@ public class UpdatePackagePatchBody /// Pattern: [a-zA-Z0-9-_.]+ /// [System.Runtime.Serialization.DataMember(Name="defaultVersionName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9-_.]+")] public string DefaultVersionName { get; set; } @@ -21443,8 +21413,7 @@ public class CreatePackageVersionPutBody /// Pattern: [^\p{C}]+ /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^\p{C}]+")] public string Description { get; set; } @@ -21471,8 +21440,7 @@ public class UpdatePackageVersionPatchBody /// Pattern: [^\p{C}]+ /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^\p{C}]+")] public string Description { get; set; } @@ -21501,8 +21469,7 @@ public class CreatePolicyPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="policyDocument")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(404600)] + [System.ComponentModel.DataAnnotations.Length(0, 404600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string PolicyDocument { get; set; } @@ -21525,8 +21492,7 @@ public class CreatePolicyVersionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="policyDocument")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(404600)] + [System.ComponentModel.DataAnnotations.Length(0, 404600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string PolicyDocument { get; set; } } @@ -21543,8 +21509,7 @@ public class CreateProvisioningTemplatePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="templateName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9A-Za-z_-]+$")] public string TemplateName { get; set; } @@ -21555,8 +21520,7 @@ public class CreateProvisioningTemplatePostBody /// Pattern: [^\p{C}]* /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^\p{C}]*")] public string Description { get; set; } @@ -21569,8 +21533,7 @@ public class CreateProvisioningTemplatePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="templateBody")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10240)] + [System.ComponentModel.DataAnnotations.Length(0, 10240)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string TemplateBody { get; set; } @@ -21588,8 +21551,7 @@ public class CreateProvisioningTemplatePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="provisioningRoleArn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string ProvisioningRoleArn { get; set; } /// @@ -21633,8 +21595,7 @@ public class CreateProvisioningTemplateVersionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="templateBody")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10240)] + [System.ComponentModel.DataAnnotations.Length(0, 10240)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string TemplateBody { get; set; } } @@ -21650,8 +21611,7 @@ public class CreateRoleAliasPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="roleArn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string RoleArn { get; set; } /// @@ -21679,8 +21639,7 @@ public class UpdateRoleAliasPutBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="roleArn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string RoleArn { get; set; } /// @@ -21888,8 +21847,7 @@ public class CreateStreamPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="files")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public StreamFile[] Files { get; set; } /// @@ -21900,8 +21858,7 @@ public class CreateStreamPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="roleArn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string RoleArn { get; set; } /// @@ -21930,8 +21887,7 @@ public class UpdateStreamPutBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember(Name="files")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public StreamFile[] Files { get; set; } /// @@ -21940,8 +21896,7 @@ public class UpdateStreamPutBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="roleArn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string RoleArn { get; set; } } @@ -21955,8 +21910,7 @@ public class CreateThingPostBody /// Pattern: [a-zA-Z0-9:_-]+ /// [System.Runtime.Serialization.DataMember(Name="thingTypeName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9:_-]+")] public string ThingTypeName { get; set; } @@ -21973,8 +21927,7 @@ public class CreateThingPostBody /// Pattern: [a-zA-Z0-9:_-]+ /// [System.Runtime.Serialization.DataMember(Name="billingGroupName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9:_-]+")] public string BillingGroupName { get; set; } } @@ -21999,8 +21952,7 @@ public class UpdateThingPatchBody /// Pattern: [a-zA-Z0-9:_-]+ /// [System.Runtime.Serialization.DataMember(Name="thingTypeName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9:_-]+")] public string ThingTypeName { get; set; } @@ -22043,8 +21995,7 @@ public class CreateThingGroupPostBody /// Pattern: [a-zA-Z0-9:_-]+ /// [System.Runtime.Serialization.DataMember(Name="parentGroupName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9:_-]+")] public string ParentGroupName { get; set; } @@ -22244,8 +22195,7 @@ public class UpdateAccountAuditConfigurationPatchBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="roleArn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string RoleArn { get; set; } /// @@ -22354,8 +22304,7 @@ public class UpdateProvisioningTemplatePatchBody /// Pattern: [^\p{C}]* /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^\p{C}]*")] public string Description { get; set; } @@ -22377,8 +22326,7 @@ public class UpdateProvisioningTemplatePatchBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="provisioningRoleArn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string ProvisioningRoleArn { get; set; } /// @@ -22442,8 +22390,7 @@ public class StartAuditMitigationActionsTaskPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientRequestToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_]+$")] public string ClientRequestToken { get; set; } } @@ -22534,8 +22481,7 @@ public class StartDetectMitigationActionsTaskPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="actions")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(1, 5)] public string[] Actions { get; set; } /// @@ -22565,8 +22511,7 @@ public class StartDetectMitigationActionsTaskPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientRequestToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_]+$")] public string ClientRequestToken { get; set; } } @@ -22614,8 +22559,7 @@ public class GetBucketsAggregationPostBody /// Pattern: [a-zA-Z0-9:_-]+ /// [System.Runtime.Serialization.DataMember(Name="indexName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9:_-]+")] public string IndexName { get; set; } @@ -22671,8 +22615,7 @@ public class GetCardinalityPostBody /// Pattern: [a-zA-Z0-9:_-]+ /// [System.Runtime.Serialization.DataMember(Name="indexName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9:_-]+")] public string IndexName { get; set; } @@ -22823,8 +22766,7 @@ public class GetPercentilesPostBody /// Pattern: [a-zA-Z0-9:_-]+ /// [System.Runtime.Serialization.DataMember(Name="indexName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9:_-]+")] public string IndexName { get; set; } @@ -22869,8 +22811,7 @@ public class GetStatisticsPostBody /// Pattern: [a-zA-Z0-9:_-]+ /// [System.Runtime.Serialization.DataMember(Name="indexName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9:_-]+")] public string IndexName { get; set; } @@ -22931,8 +22872,7 @@ public class ListAuditFindingsPostBody /// Pattern: [a-zA-Z0-9\-]+ /// [System.Runtime.Serialization.DataMember(Name="taskId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9\-]+")] public string TaskId { get; set; } @@ -23099,8 +23039,7 @@ public class StartThingRegistrationTaskPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="templateBody")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10240)] + [System.ComponentModel.DataAnnotations.Length(0, 10240)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string TemplateBody { get; set; } @@ -23113,8 +23052,7 @@ public class StartThingRegistrationTaskPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="inputFileBucket")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(3, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9._-]+")] public string InputFileBucket { get; set; } @@ -23127,8 +23065,7 @@ public class StartThingRegistrationTaskPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="inputFileKey")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9!_.*'()-\/]+")] public string InputFileKey { get; set; } @@ -23140,8 +23077,7 @@ public class StartThingRegistrationTaskPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="roleArn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string RoleArn { get; set; } } @@ -23157,8 +23093,7 @@ public class RegisterThingPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="templateBody")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10240)] + [System.ComponentModel.DataAnnotations.Length(0, 10240)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string TemplateBody { get; set; } @@ -23233,8 +23168,7 @@ public class RegisterCACertificatePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caCertificate")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65536)] + [System.ComponentModel.DataAnnotations.Length(1, 65536)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string CaCertificate { get; set; } @@ -23245,8 +23179,7 @@ public class RegisterCACertificatePostBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember(Name="verificationCertificate")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65536)] + [System.ComponentModel.DataAnnotations.Length(1, 65536)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string VerificationCertificate { get; set; } @@ -23294,8 +23227,7 @@ public class RegisterCertificatePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="certificatePem")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65536)] + [System.ComponentModel.DataAnnotations.Length(1, 65536)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string CertificatePem { get; set; } @@ -23306,8 +23238,7 @@ public class RegisterCertificatePostBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember(Name="caCertificatePem")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65536)] + [System.ComponentModel.DataAnnotations.Length(1, 65536)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string CaCertificatePem { get; set; } @@ -23330,8 +23261,7 @@ public class RegisterCertificateWithoutCAPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="certificatePem")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65536)] + [System.ComponentModel.DataAnnotations.Length(1, 65536)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string CertificatePem { get; set; } @@ -23366,8 +23296,7 @@ public class RemoveThingFromBillingGroupPutBody /// Pattern: [a-zA-Z0-9:_-]+ /// [System.Runtime.Serialization.DataMember(Name="billingGroupName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9:_-]+")] public string BillingGroupName { get; set; } @@ -23384,8 +23313,7 @@ public class RemoveThingFromBillingGroupPutBody /// Pattern: [a-zA-Z0-9:_-]+ /// [System.Runtime.Serialization.DataMember(Name="thingName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9:_-]+")] public string ThingName { get; set; } @@ -23406,8 +23334,7 @@ public class RemoveThingFromThingGroupPutBody /// Pattern: [a-zA-Z0-9:_-]+ /// [System.Runtime.Serialization.DataMember(Name="thingGroupName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9:_-]+")] public string ThingGroupName { get; set; } @@ -23424,8 +23351,7 @@ public class RemoveThingFromThingGroupPutBody /// Pattern: [a-zA-Z0-9:_-]+ /// [System.Runtime.Serialization.DataMember(Name="thingName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9:_-]+")] public string ThingName { get; set; } @@ -23446,8 +23372,7 @@ public class SearchIndexPostBody /// Pattern: [a-zA-Z0-9:_-]+ /// [System.Runtime.Serialization.DataMember(Name="indexName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9:_-]+")] public string IndexName { get; set; } @@ -23538,8 +23463,7 @@ public class TestAuthorizationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="authInfos")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public AuthInfo[] AuthInfos { get; set; } /// @@ -23565,8 +23489,7 @@ public class TestInvokeAuthorizerPostBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember(Name="token")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(6144)] + [System.ComponentModel.DataAnnotations.Length(1, 6144)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string Token { get; set; } @@ -23577,8 +23500,7 @@ public class TestInvokeAuthorizerPostBody /// Pattern: [A-Za-z0-9+/]+={0,2} /// [System.Runtime.Serialization.DataMember(Name="tokenSignature")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2560)] + [System.ComponentModel.DataAnnotations.Length(1, 2560)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-Za-z0-9+/]+={0,2}")] public string TokenSignature { get; set; } @@ -23751,8 +23673,7 @@ public class UpdateThingGroupsForThingPutBody /// Pattern: [a-zA-Z0-9:_-]+ /// [System.Runtime.Serialization.DataMember(Name="thingName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9:_-]+")] public string ThingName { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_iot_roborunner_2018_05_10_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_iot_roborunner_2018_05_10_.cs index 29269c16..6db69b13 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_iot_roborunner_2018_05_10_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_iot_roborunner_2018_05_10_.cs @@ -31,8 +31,7 @@ public class CreateDestinationResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="arn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:destination/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$|^arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/destination/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Arn { get; set; } @@ -44,8 +43,7 @@ public class CreateDestinationResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Id { get; set; } /// @@ -135,8 +133,7 @@ public class CreateSiteResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="arn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Arn { get; set; } @@ -148,8 +145,7 @@ public class CreateSiteResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Id { get; set; } /// @@ -182,8 +178,7 @@ public class CreateWorkerResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="arn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/worker-fleet/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/worker/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Arn { get; set; } @@ -195,8 +190,7 @@ public class CreateWorkerResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Id { get; set; } /// @@ -224,8 +218,7 @@ public class CreateWorkerResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="site")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Site { get; set; } } @@ -268,8 +261,7 @@ public class CreateWorkerFleetResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="arn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/worker-fleet/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Arn { get; set; } @@ -281,8 +273,7 @@ public class CreateWorkerFleetResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Id { get; set; } /// @@ -335,8 +326,7 @@ public class GetDestinationResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="arn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:destination/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$|^arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/destination/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Arn { get; set; } @@ -348,8 +338,7 @@ public class GetDestinationResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Id { get; set; } /// @@ -360,8 +349,7 @@ public class GetDestinationResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -373,8 +361,7 @@ public class GetDestinationResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="site")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Site { get; set; } @@ -408,8 +395,7 @@ public class GetDestinationResponse /// Max length: 131072 /// [System.Runtime.Serialization.DataMember(Name="additionalFixedProperties")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(131072)] + [System.ComponentModel.DataAnnotations.Length(1, 131072)] public string AdditionalFixedProperties { get; set; } } @@ -426,8 +412,7 @@ public class GetSiteResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="arn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Arn { get; set; } @@ -439,8 +424,7 @@ public class GetSiteResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Id { get; set; } /// @@ -451,8 +435,7 @@ public class GetSiteResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -464,8 +447,7 @@ public class GetSiteResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="countryCode")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z]{2}")] public string CountryCode { get; set; } @@ -475,8 +457,7 @@ public class GetSiteResponse /// Max length: 140 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(0, 140)] public string Description { get; set; } /// @@ -509,8 +490,7 @@ public class GetWorkerResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="arn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/worker-fleet/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/worker/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Arn { get; set; } @@ -522,8 +502,7 @@ public class GetWorkerResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Id { get; set; } /// @@ -535,8 +514,7 @@ public class GetWorkerResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="fleet")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/worker-fleet/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Fleet { get; set; } @@ -549,8 +527,7 @@ public class GetWorkerResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="site")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Site { get; set; } @@ -578,8 +555,7 @@ public class GetWorkerResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -588,8 +564,7 @@ public class GetWorkerResponse /// Max length: 131072 /// [System.Runtime.Serialization.DataMember(Name="additionalTransientProperties")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(131072)] + [System.ComponentModel.DataAnnotations.Length(1, 131072)] public string AdditionalTransientProperties { get; set; } /// @@ -598,8 +573,7 @@ public class GetWorkerResponse /// Max length: 131072 /// [System.Runtime.Serialization.DataMember(Name="additionalFixedProperties")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(131072)] + [System.ComponentModel.DataAnnotations.Length(1, 131072)] public string AdditionalFixedProperties { get; set; } /// @@ -636,8 +610,7 @@ public class VendorProperties /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="vendorWorkerId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string VendorWorkerId { get; set; } /// @@ -646,8 +619,7 @@ public class VendorProperties /// Max length: 45 /// [System.Runtime.Serialization.DataMember(Name="vendorWorkerIpAddress")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(45)] + [System.ComponentModel.DataAnnotations.Length(1, 45)] public string VendorWorkerIpAddress { get; set; } /// @@ -656,8 +628,7 @@ public class VendorProperties /// Max length: 131072 /// [System.Runtime.Serialization.DataMember(Name="vendorAdditionalTransientProperties")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(131072)] + [System.ComponentModel.DataAnnotations.Length(1, 131072)] public string VendorAdditionalTransientProperties { get; set; } /// @@ -666,8 +637,7 @@ public class VendorProperties /// Max length: 131072 /// [System.Runtime.Serialization.DataMember(Name="vendorAdditionalFixedProperties")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(131072)] + [System.ComponentModel.DataAnnotations.Length(1, 131072)] public string VendorAdditionalFixedProperties { get; set; } } @@ -705,8 +675,7 @@ public class GetWorkerFleetResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Id { get; set; } /// @@ -718,8 +687,7 @@ public class GetWorkerFleetResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="arn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/worker-fleet/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Arn { get; set; } @@ -731,8 +699,7 @@ public class GetWorkerFleetResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -744,8 +711,7 @@ public class GetWorkerFleetResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="site")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Site { get; set; } @@ -771,8 +737,7 @@ public class GetWorkerFleetResponse /// Max length: 131072 /// [System.Runtime.Serialization.DataMember(Name="additionalFixedProperties")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(131072)] + [System.ComponentModel.DataAnnotations.Length(1, 131072)] public string AdditionalFixedProperties { get; set; } } @@ -787,8 +752,7 @@ public class ListDestinationsResponse /// Pattern: .*[a-zA-Z0-9_.-/+=]*.* /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*[a-zA-Z0-9_.-/+=]*.*")] public string NextToken { get; set; } @@ -815,8 +779,7 @@ public class Destination /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="arn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:destination/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$|^arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/destination/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Arn { get; set; } @@ -828,8 +791,7 @@ public class Destination /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Id { get; set; } /// @@ -840,8 +802,7 @@ public class Destination /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -853,8 +814,7 @@ public class Destination /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="site")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Site { get; set; } @@ -888,8 +848,7 @@ public class Destination /// Max length: 131072 /// [System.Runtime.Serialization.DataMember(Name="additionalFixedProperties")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(131072)] + [System.ComponentModel.DataAnnotations.Length(1, 131072)] public string AdditionalFixedProperties { get; set; } } @@ -904,8 +863,7 @@ public class ListSitesResponse /// Pattern: .*[a-zA-Z0-9_.-/+=]*.* /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*[a-zA-Z0-9_.-/+=]*.*")] public string NextToken { get; set; } @@ -932,8 +890,7 @@ public class Site /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="arn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Arn { get; set; } @@ -953,8 +910,7 @@ public class Site /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="countryCode")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z]{2}")] public string CountryCode { get; set; } @@ -978,8 +934,7 @@ public class ListWorkerFleetsResponse /// Pattern: .*[a-zA-Z0-9_.-/+=]*.* /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*[a-zA-Z0-9_.-/+=]*.*")] public string NextToken { get; set; } @@ -1006,8 +961,7 @@ public class WorkerFleet /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="arn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/worker-fleet/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Arn { get; set; } @@ -1019,8 +973,7 @@ public class WorkerFleet /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Id { get; set; } /// @@ -1031,8 +984,7 @@ public class WorkerFleet /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -1044,8 +996,7 @@ public class WorkerFleet /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="site")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Site { get; set; } @@ -1071,8 +1022,7 @@ public class WorkerFleet /// Max length: 131072 /// [System.Runtime.Serialization.DataMember(Name="additionalFixedProperties")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(131072)] + [System.ComponentModel.DataAnnotations.Length(1, 131072)] public string AdditionalFixedProperties { get; set; } } @@ -1087,8 +1037,7 @@ public class ListWorkersResponse /// Pattern: .*[a-zA-Z0-9_.-/+=]*.* /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*[a-zA-Z0-9_.-/+=]*.*")] public string NextToken { get; set; } @@ -1115,8 +1064,7 @@ public class Worker /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="arn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/worker-fleet/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/worker/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Arn { get; set; } @@ -1128,8 +1076,7 @@ public class Worker /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Id { get; set; } /// @@ -1141,8 +1088,7 @@ public class Worker /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="fleet")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/worker-fleet/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Fleet { get; set; } @@ -1170,8 +1116,7 @@ public class Worker /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -1183,8 +1128,7 @@ public class Worker /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="site")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Site { get; set; } @@ -1194,8 +1138,7 @@ public class Worker /// Max length: 131072 /// [System.Runtime.Serialization.DataMember(Name="additionalTransientProperties")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(131072)] + [System.ComponentModel.DataAnnotations.Length(1, 131072)] public string AdditionalTransientProperties { get; set; } /// @@ -1204,8 +1147,7 @@ public class Worker /// Max length: 131072 /// [System.Runtime.Serialization.DataMember(Name="additionalFixedProperties")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(131072)] + [System.ComponentModel.DataAnnotations.Length(1, 131072)] public string AdditionalFixedProperties { get; set; } /// @@ -1240,8 +1182,7 @@ public class UpdateDestinationResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="arn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:destination/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$|^arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/destination/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Arn { get; set; } @@ -1253,8 +1194,7 @@ public class UpdateDestinationResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Id { get; set; } /// @@ -1265,8 +1205,7 @@ public class UpdateDestinationResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -1291,8 +1230,7 @@ public class UpdateDestinationResponse /// Max length: 131072 /// [System.Runtime.Serialization.DataMember(Name="additionalFixedProperties")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(131072)] + [System.ComponentModel.DataAnnotations.Length(1, 131072)] public string AdditionalFixedProperties { get; set; } } @@ -1309,8 +1247,7 @@ public class UpdateSiteResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="arn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Arn { get; set; } @@ -1322,8 +1259,7 @@ public class UpdateSiteResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Id { get; set; } /// @@ -1334,8 +1270,7 @@ public class UpdateSiteResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -1345,8 +1280,7 @@ public class UpdateSiteResponse /// Pattern: [a-zA-Z]{2} /// [System.Runtime.Serialization.DataMember(Name="countryCode")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z]{2}")] public string CountryCode { get; set; } @@ -1356,8 +1290,7 @@ public class UpdateSiteResponse /// Max length: 140 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(0, 140)] public string Description { get; set; } /// @@ -1382,8 +1315,7 @@ public class UpdateWorkerResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="arn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/worker-fleet/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/worker/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Arn { get; set; } @@ -1395,8 +1327,7 @@ public class UpdateWorkerResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Id { get; set; } /// @@ -1408,8 +1339,7 @@ public class UpdateWorkerResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="fleet")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/worker-fleet/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Fleet { get; set; } @@ -1429,8 +1359,7 @@ public class UpdateWorkerResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -1439,8 +1368,7 @@ public class UpdateWorkerResponse /// Max length: 131072 /// [System.Runtime.Serialization.DataMember(Name="additionalTransientProperties")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(131072)] + [System.ComponentModel.DataAnnotations.Length(1, 131072)] public string AdditionalTransientProperties { get; set; } /// @@ -1449,8 +1377,7 @@ public class UpdateWorkerResponse /// Max length: 131072 /// [System.Runtime.Serialization.DataMember(Name="additionalFixedProperties")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(131072)] + [System.ComponentModel.DataAnnotations.Length(1, 131072)] public string AdditionalFixedProperties { get; set; } /// @@ -1485,8 +1412,7 @@ public class UpdateWorkerFleetResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="arn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/worker-fleet/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Arn { get; set; } @@ -1498,8 +1424,7 @@ public class UpdateWorkerFleetResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Id { get; set; } /// @@ -1510,8 +1435,7 @@ public class UpdateWorkerFleetResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -1528,8 +1452,7 @@ public class UpdateWorkerFleetResponse /// Max length: 131072 /// [System.Runtime.Serialization.DataMember(Name="additionalFixedProperties")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(131072)] + [System.ComponentModel.DataAnnotations.Length(1, 131072)] public string AdditionalFixedProperties { get; set; } } @@ -1561,8 +1484,7 @@ public class CreateDestinationRequest /// Pattern: [!-~]* /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[!-~]*")] public string ClientToken { get; set; } @@ -1574,8 +1496,7 @@ public class CreateDestinationRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -1587,8 +1508,7 @@ public class CreateDestinationRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="site")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Site { get; set; } @@ -1601,8 +1521,7 @@ public class CreateDestinationRequest /// Max length: 131072 /// [System.Runtime.Serialization.DataMember(Name="additionalFixedProperties")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(131072)] + [System.ComponentModel.DataAnnotations.Length(1, 131072)] public string AdditionalFixedProperties { get; set; } } @@ -1617,8 +1536,7 @@ public class CreateSiteRequest /// Pattern: [!-~]* /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[!-~]*")] public string ClientToken { get; set; } @@ -1630,8 +1548,7 @@ public class CreateSiteRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -1643,8 +1560,7 @@ public class CreateSiteRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="countryCode")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z]{2}")] public string CountryCode { get; set; } @@ -1654,8 +1570,7 @@ public class CreateSiteRequest /// Max length: 140 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(0, 140)] public string Description { get; set; } } @@ -1670,8 +1585,7 @@ public class CreateWorkerFleetRequest /// Pattern: [!-~]* /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[!-~]*")] public string ClientToken { get; set; } @@ -1683,8 +1597,7 @@ public class CreateWorkerFleetRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -1696,8 +1609,7 @@ public class CreateWorkerFleetRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="site")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Site { get; set; } @@ -1707,8 +1619,7 @@ public class CreateWorkerFleetRequest /// Max length: 131072 /// [System.Runtime.Serialization.DataMember(Name="additionalFixedProperties")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(131072)] + [System.ComponentModel.DataAnnotations.Length(1, 131072)] public string AdditionalFixedProperties { get; set; } } @@ -1723,8 +1634,7 @@ public class CreateWorkerRequest /// Pattern: [!-~]* /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[!-~]*")] public string ClientToken { get; set; } @@ -1736,8 +1646,7 @@ public class CreateWorkerRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -1749,8 +1658,7 @@ public class CreateWorkerRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="fleet")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/worker-fleet/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Fleet { get; set; } @@ -1760,8 +1668,7 @@ public class CreateWorkerRequest /// Max length: 131072 /// [System.Runtime.Serialization.DataMember(Name="additionalTransientProperties")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(131072)] + [System.ComponentModel.DataAnnotations.Length(1, 131072)] public string AdditionalTransientProperties { get; set; } /// @@ -1770,8 +1677,7 @@ public class CreateWorkerRequest /// Max length: 131072 /// [System.Runtime.Serialization.DataMember(Name="additionalFixedProperties")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(131072)] + [System.ComponentModel.DataAnnotations.Length(1, 131072)] public string AdditionalFixedProperties { get; set; } /// @@ -1806,8 +1712,7 @@ public class DeleteDestinationRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:destination/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$|^arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/destination/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Id { get; set; } } @@ -1825,8 +1730,7 @@ public class DeleteSiteRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Id { get; set; } } @@ -1844,8 +1748,7 @@ public class DeleteWorkerFleetRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/worker-fleet/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Id { get; set; } } @@ -1863,8 +1766,7 @@ public class DeleteWorkerRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/worker-fleet/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/worker/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Id { get; set; } } @@ -1922,8 +1824,7 @@ public class UpdateDestinationRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:destination/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$|^arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/destination/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Id { get; set; } @@ -1933,8 +1834,7 @@ public class UpdateDestinationRequest /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -1949,8 +1849,7 @@ public class UpdateDestinationRequest /// Max length: 131072 /// [System.Runtime.Serialization.DataMember(Name="additionalFixedProperties")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(131072)] + [System.ComponentModel.DataAnnotations.Length(1, 131072)] public string AdditionalFixedProperties { get; set; } } @@ -1967,8 +1866,7 @@ public class UpdateSiteRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Id { get; set; } @@ -1978,8 +1876,7 @@ public class UpdateSiteRequest /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -1989,8 +1886,7 @@ public class UpdateSiteRequest /// Pattern: [a-zA-Z]{2} /// [System.Runtime.Serialization.DataMember(Name="countryCode")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z]{2}")] public string CountryCode { get; set; } @@ -2000,8 +1896,7 @@ public class UpdateSiteRequest /// Max length: 140 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(0, 140)] public string Description { get; set; } } @@ -2018,8 +1913,7 @@ public class UpdateWorkerFleetRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/worker-fleet/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Id { get; set; } @@ -2029,8 +1923,7 @@ public class UpdateWorkerFleetRequest /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -2039,8 +1932,7 @@ public class UpdateWorkerFleetRequest /// Max length: 131072 /// [System.Runtime.Serialization.DataMember(Name="additionalFixedProperties")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(131072)] + [System.ComponentModel.DataAnnotations.Length(1, 131072)] public string AdditionalFixedProperties { get; set; } } @@ -2057,8 +1949,7 @@ public class UpdateWorkerRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/worker-fleet/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/worker/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Id { get; set; } @@ -2068,8 +1959,7 @@ public class UpdateWorkerRequest /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -2078,8 +1968,7 @@ public class UpdateWorkerRequest /// Max length: 131072 /// [System.Runtime.Serialization.DataMember(Name="additionalTransientProperties")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(131072)] + [System.ComponentModel.DataAnnotations.Length(1, 131072)] public string AdditionalTransientProperties { get; set; } /// @@ -2088,8 +1977,7 @@ public class UpdateWorkerRequest /// Max length: 131072 /// [System.Runtime.Serialization.DataMember(Name="additionalFixedProperties")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(131072)] + [System.ComponentModel.DataAnnotations.Length(1, 131072)] public string AdditionalFixedProperties { get; set; } /// @@ -2753,8 +2641,7 @@ public class CreateDestinationPostBody /// Pattern: [!-~]* /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[!-~]*")] public string ClientToken { get; set; } @@ -2766,8 +2653,7 @@ public class CreateDestinationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -2779,8 +2665,7 @@ public class CreateDestinationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="site")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Site { get; set; } @@ -2796,8 +2681,7 @@ public class CreateDestinationPostBody /// Max length: 131072 /// [System.Runtime.Serialization.DataMember(Name="additionalFixedProperties")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(131072)] + [System.ComponentModel.DataAnnotations.Length(1, 131072)] public string AdditionalFixedProperties { get; set; } } @@ -2811,8 +2695,7 @@ public class CreateSitePostBody /// Pattern: [!-~]* /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[!-~]*")] public string ClientToken { get; set; } @@ -2824,8 +2707,7 @@ public class CreateSitePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -2837,8 +2719,7 @@ public class CreateSitePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="countryCode")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z]{2}")] public string CountryCode { get; set; } @@ -2848,8 +2729,7 @@ public class CreateSitePostBody /// Max length: 140 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(0, 140)] public string Description { get; set; } } @@ -2863,8 +2743,7 @@ public class CreateWorkerPostBody /// Pattern: [!-~]* /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[!-~]*")] public string ClientToken { get; set; } @@ -2876,8 +2755,7 @@ public class CreateWorkerPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -2889,8 +2767,7 @@ public class CreateWorkerPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="fleet")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/worker-fleet/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Fleet { get; set; } @@ -2900,8 +2777,7 @@ public class CreateWorkerPostBody /// Max length: 131072 /// [System.Runtime.Serialization.DataMember(Name="additionalTransientProperties")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(131072)] + [System.ComponentModel.DataAnnotations.Length(1, 131072)] public string AdditionalTransientProperties { get; set; } /// @@ -2910,8 +2786,7 @@ public class CreateWorkerPostBody /// Max length: 131072 /// [System.Runtime.Serialization.DataMember(Name="additionalFixedProperties")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(131072)] + [System.ComponentModel.DataAnnotations.Length(1, 131072)] public string AdditionalFixedProperties { get; set; } /// @@ -2942,8 +2817,7 @@ public class CreateWorkerPostBodyVendorProperties /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="vendorWorkerId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string VendorWorkerId { get; set; } /// @@ -2952,8 +2826,7 @@ public class CreateWorkerPostBodyVendorProperties /// Max length: 45 /// [System.Runtime.Serialization.DataMember(Name="vendorWorkerIpAddress")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(45)] + [System.ComponentModel.DataAnnotations.Length(1, 45)] public string VendorWorkerIpAddress { get; set; } /// @@ -2962,8 +2835,7 @@ public class CreateWorkerPostBodyVendorProperties /// Max length: 131072 /// [System.Runtime.Serialization.DataMember(Name="vendorAdditionalTransientProperties")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(131072)] + [System.ComponentModel.DataAnnotations.Length(1, 131072)] public string VendorAdditionalTransientProperties { get; set; } /// @@ -2972,8 +2844,7 @@ public class CreateWorkerPostBodyVendorProperties /// Max length: 131072 /// [System.Runtime.Serialization.DataMember(Name="vendorAdditionalFixedProperties")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(131072)] + [System.ComponentModel.DataAnnotations.Length(1, 131072)] public string VendorAdditionalFixedProperties { get; set; } } @@ -3001,8 +2872,7 @@ public class CreateWorkerFleetPostBody /// Pattern: [!-~]* /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[!-~]*")] public string ClientToken { get; set; } @@ -3014,8 +2884,7 @@ public class CreateWorkerFleetPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -3027,8 +2896,7 @@ public class CreateWorkerFleetPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="site")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Site { get; set; } @@ -3038,8 +2906,7 @@ public class CreateWorkerFleetPostBody /// Max length: 131072 /// [System.Runtime.Serialization.DataMember(Name="additionalFixedProperties")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(131072)] + [System.ComponentModel.DataAnnotations.Length(1, 131072)] public string AdditionalFixedProperties { get; set; } } @@ -3055,8 +2922,7 @@ public class DeleteDestinationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:destination/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$|^arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/destination/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Id { get; set; } } @@ -3073,8 +2939,7 @@ public class DeleteSitePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Id { get; set; } } @@ -3091,8 +2956,7 @@ public class DeleteWorkerPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/worker-fleet/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/worker/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Id { get; set; } } @@ -3109,8 +2973,7 @@ public class DeleteWorkerFleetPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/worker-fleet/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Id { get; set; } } @@ -3127,8 +2990,7 @@ public class UpdateDestinationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:destination/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$|^arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/destination/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Id { get; set; } @@ -3138,8 +3000,7 @@ public class UpdateDestinationPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -3154,8 +3015,7 @@ public class UpdateDestinationPostBody /// Max length: 131072 /// [System.Runtime.Serialization.DataMember(Name="additionalFixedProperties")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(131072)] + [System.ComponentModel.DataAnnotations.Length(1, 131072)] public string AdditionalFixedProperties { get; set; } } @@ -3171,8 +3031,7 @@ public class UpdateSitePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Id { get; set; } @@ -3182,8 +3041,7 @@ public class UpdateSitePostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -3193,8 +3051,7 @@ public class UpdateSitePostBody /// Pattern: [a-zA-Z]{2} /// [System.Runtime.Serialization.DataMember(Name="countryCode")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z]{2}")] public string CountryCode { get; set; } @@ -3204,8 +3061,7 @@ public class UpdateSitePostBody /// Max length: 140 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(0, 140)] public string Description { get; set; } } @@ -3221,8 +3077,7 @@ public class UpdateWorkerPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/worker-fleet/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/worker/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Id { get; set; } @@ -3232,8 +3087,7 @@ public class UpdateWorkerPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -3242,8 +3096,7 @@ public class UpdateWorkerPostBody /// Max length: 131072 /// [System.Runtime.Serialization.DataMember(Name="additionalTransientProperties")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(131072)] + [System.ComponentModel.DataAnnotations.Length(1, 131072)] public string AdditionalTransientProperties { get; set; } /// @@ -3252,8 +3105,7 @@ public class UpdateWorkerPostBody /// Max length: 131072 /// [System.Runtime.Serialization.DataMember(Name="additionalFixedProperties")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(131072)] + [System.ComponentModel.DataAnnotations.Length(1, 131072)] public string AdditionalFixedProperties { get; set; } /// @@ -3284,8 +3136,7 @@ public class UpdateWorkerPostBodyVendorProperties /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="vendorWorkerId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string VendorWorkerId { get; set; } /// @@ -3294,8 +3145,7 @@ public class UpdateWorkerPostBodyVendorProperties /// Max length: 45 /// [System.Runtime.Serialization.DataMember(Name="vendorWorkerIpAddress")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(45)] + [System.ComponentModel.DataAnnotations.Length(1, 45)] public string VendorWorkerIpAddress { get; set; } /// @@ -3304,8 +3154,7 @@ public class UpdateWorkerPostBodyVendorProperties /// Max length: 131072 /// [System.Runtime.Serialization.DataMember(Name="vendorAdditionalTransientProperties")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(131072)] + [System.ComponentModel.DataAnnotations.Length(1, 131072)] public string VendorAdditionalTransientProperties { get; set; } /// @@ -3314,8 +3163,7 @@ public class UpdateWorkerPostBodyVendorProperties /// Max length: 131072 /// [System.Runtime.Serialization.DataMember(Name="vendorAdditionalFixedProperties")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(131072)] + [System.ComponentModel.DataAnnotations.Length(1, 131072)] public string VendorAdditionalFixedProperties { get; set; } } @@ -3345,8 +3193,7 @@ public class UpdateWorkerFleetPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iotroborunner:[\w-]+:\w+:site/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/worker-fleet/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] public string Id { get; set; } @@ -3356,8 +3203,7 @@ public class UpdateWorkerFleetPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -3366,8 +3212,7 @@ public class UpdateWorkerFleetPostBody /// Max length: 131072 /// [System.Runtime.Serialization.DataMember(Name="additionalFixedProperties")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(131072)] + [System.ComponentModel.DataAnnotations.Length(1, 131072)] public string AdditionalFixedProperties { get; set; } } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_iotanalytics_2017_11_27_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_iotanalytics_2017_11_27_.cs index 4f9b5b90..c062017f 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_iotanalytics_2017_11_27_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_iotanalytics_2017_11_27_.cs @@ -3378,8 +3378,7 @@ public class BatchPutMessagePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="channelName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(^(?!_{2}))(^[a-zA-Z0-9_]+$)")] public string ChannelName { get; set; } @@ -3404,8 +3403,7 @@ public class CreateChannelPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="channelName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(^(?!_{2}))(^[a-zA-Z0-9_]+$)")] public string ChannelName { get; set; } @@ -3427,8 +3425,7 @@ public class CreateChannelPostBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public Tag[] Tags { get; set; } } @@ -3464,8 +3461,7 @@ public class CreateDatasetPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="datasetName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(^(?!_{2}))(^[a-zA-Z0-9_]+$)")] public string DatasetName { get; set; } @@ -3477,8 +3473,7 @@ public class CreateDatasetPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="actions")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public DatasetAction[] Actions { get; set; } /// @@ -3487,8 +3482,7 @@ public class CreateDatasetPostBody /// Maximum items: 5 /// [System.Runtime.Serialization.DataMember(Name="triggers")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(0, 5)] public DatasetTrigger[] Triggers { get; set; } /// @@ -3497,8 +3491,7 @@ public class CreateDatasetPostBody /// Maximum items: 20 /// [System.Runtime.Serialization.DataMember(Name="contentDeliveryRules")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(0, 20)] public DatasetContentDeliveryRule[] ContentDeliveryRules { get; set; } /// @@ -3519,8 +3512,7 @@ public class CreateDatasetPostBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public Tag[] Tags { get; set; } /// @@ -3529,8 +3521,7 @@ public class CreateDatasetPostBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember(Name="lateDataRules")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public LateDataRule[] LateDataRules { get; set; } } @@ -3563,8 +3554,7 @@ public class CreateDatasetContentPostBody /// Max length: 36 /// [System.Runtime.Serialization.DataMember(Name="versionId")] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(7, 36)] public string VersionId { get; set; } } @@ -3580,8 +3570,7 @@ public class CreateDatastorePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="datastoreName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(^(?!_{2}))(^[a-zA-Z0-9_]+$)")] public string DatastoreName { get; set; } @@ -3603,8 +3592,7 @@ public class CreateDatastorePostBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public Tag[] Tags { get; set; } /// @@ -3672,8 +3660,7 @@ public class CreatePipelinePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="pipelineName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(^(?!_{2}))(^[a-zA-Z0-9_]+$)")] public string PipelineName { get; set; } @@ -3685,8 +3672,7 @@ public class CreatePipelinePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="pipelineActivities")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(1, 25)] public PipelineActivity[] PipelineActivities { get; set; } /// @@ -3695,8 +3681,7 @@ public class CreatePipelinePostBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public Tag[] Tags { get; set; } } @@ -3747,8 +3732,7 @@ public class UpdateDatasetPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="actions")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public DatasetAction[] Actions { get; set; } /// @@ -3757,8 +3741,7 @@ public class UpdateDatasetPutBody /// Maximum items: 5 /// [System.Runtime.Serialization.DataMember(Name="triggers")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(0, 5)] public DatasetTrigger[] Triggers { get; set; } /// @@ -3767,8 +3750,7 @@ public class UpdateDatasetPutBody /// Maximum items: 20 /// [System.Runtime.Serialization.DataMember(Name="contentDeliveryRules")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(0, 20)] public DatasetContentDeliveryRule[] ContentDeliveryRules { get; set; } /// @@ -3789,8 +3771,7 @@ public class UpdateDatasetPutBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember(Name="lateDataRules")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public LateDataRule[] LateDataRules { get; set; } } @@ -3880,8 +3861,7 @@ public class UpdatePipelinePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="pipelineActivities")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(1, 25)] public PipelineActivity[] PipelineActivities { get; set; } } @@ -3921,8 +3901,7 @@ public class TagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public Tag[] Tags { get; set; } } @@ -3945,8 +3924,7 @@ public class RunPipelineActivityPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="payloads")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public string[] Payloads { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_iotdeviceadvisor_2020_09_18_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_iotdeviceadvisor_2020_09_18_.cs index a49a4830..6ac82dc4 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_iotdeviceadvisor_2020_09_18_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_iotdeviceadvisor_2020_09_18_.cs @@ -1307,8 +1307,7 @@ public class StartSuiteRunPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="suiteDefinitionVersion")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(2, 255)] public string SuiteDefinitionVersion { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_iotevents_2018_07_27_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_iotevents_2018_07_27_.cs index dc352454..53067abe 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_iotevents_2018_07_27_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_iotevents_2018_07_27_.cs @@ -2929,8 +2929,7 @@ public class CreateAlarmModelPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="alarmModelName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9_-]+$")] public string AlarmModelName { get; set; } @@ -2950,8 +2949,7 @@ public class CreateAlarmModelPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="roleArn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string RoleArn { get; set; } /// @@ -2967,8 +2965,7 @@ public class CreateAlarmModelPostBody /// Pattern: ^((`[\w\- ]+`)|([\w\-]+))(\.((`[\w- ]+`)|([\w\-]+)))*$ /// [System.Runtime.Serialization.DataMember(Name="key")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^((`[\w\- ]+`)|([\w\-]+))(\.((`[\w- ]+`)|([\w\-]+)))*$")] public string Key { get; set; } @@ -3051,8 +3048,7 @@ public class CreateDetectorModelPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="detectorModelName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9_-]+$")] public string DetectorModelName { get; set; } @@ -3079,8 +3075,7 @@ public class CreateDetectorModelPostBody /// Pattern: ^((`[\w\- ]+`)|([\w\-]+))(\.((`[\w- ]+`)|([\w\-]+)))*$ /// [System.Runtime.Serialization.DataMember(Name="key")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^((`[\w\- ]+`)|([\w\-]+))(\.((`[\w- ]+`)|([\w\-]+)))*$")] public string Key { get; set; } @@ -3092,8 +3087,7 @@ public class CreateDetectorModelPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="roleArn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string RoleArn { get; set; } /// @@ -3131,8 +3125,7 @@ public class CreateInputPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="inputName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z][a-zA-Z0-9_]*$")] public string InputName { get; set; } @@ -3185,8 +3178,7 @@ public class UpdateAlarmModelPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="roleArn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string RoleArn { get; set; } /// @@ -3283,8 +3275,7 @@ public class UpdateDetectorModelPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="roleArn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string RoleArn { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_iotfleethub_2020_11_03_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_iotfleethub_2020_11_03_.cs index b5be8473..607f983e 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_iotfleethub_2020_11_03_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_iotfleethub_2020_11_03_.cs @@ -593,8 +593,7 @@ public class CreateApplicationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="applicationName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[ -~]*$")] public string ApplicationName { get; set; } @@ -605,8 +604,7 @@ public class CreateApplicationPostBody /// Pattern: ^[ -~]*$ /// [System.Runtime.Serialization.DataMember(Name="applicationDescription")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[ -~]*$")] public string ApplicationDescription { get; set; } @@ -617,8 +615,7 @@ public class CreateApplicationPostBody /// Pattern: ^[a-zA-Z0-9-_]+$ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_]+$")] public string ClientToken { get; set; } @@ -631,8 +628,7 @@ public class CreateApplicationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="roleArn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(1, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:[!-~]+$")] public string RoleArn { get; set; } @@ -653,8 +649,7 @@ public class UpdateApplicationPatchBody /// Pattern: ^[ -~]*$ /// [System.Runtime.Serialization.DataMember(Name="applicationName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[ -~]*$")] public string ApplicationName { get; set; } @@ -665,8 +660,7 @@ public class UpdateApplicationPatchBody /// Pattern: ^[ -~]*$ /// [System.Runtime.Serialization.DataMember(Name="applicationDescription")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[ -~]*$")] public string ApplicationDescription { get; set; } @@ -677,8 +671,7 @@ public class UpdateApplicationPatchBody /// Pattern: ^[a-zA-Z0-9-_]+$ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_]+$")] public string ClientToken { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_iotsitewise_2019_12_02_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_iotsitewise_2019_12_02_.cs index cbcf4ba2..8cd1e558 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_iotsitewise_2019_12_02_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_iotsitewise_2019_12_02_.cs @@ -7939,8 +7939,7 @@ public class AssociateAssetsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="hierarchyId")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$")] public string HierarchyId { get; set; } @@ -7953,8 +7952,7 @@ public class AssociateAssetsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="childAssetId")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$")] public string ChildAssetId { get; set; } @@ -7965,8 +7963,7 @@ public class AssociateAssetsPostBody /// Pattern: \S{36,64} /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(36, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\S{36,64}")] public string ClientToken { get; set; } } @@ -7981,8 +7978,7 @@ public class AssociateTimeSeriesToAssetPropertyPostBody /// Pattern: \S{36,64} /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(36, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\S{36,64}")] public string ClientToken { get; set; } } @@ -7998,8 +7994,7 @@ public class BatchAssociateProjectAssetsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="assetIds")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] AssetIds { get; set; } /// @@ -8009,8 +8004,7 @@ public class BatchAssociateProjectAssetsPostBody /// Pattern: \S{36,64} /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(36, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\S{36,64}")] public string ClientToken { get; set; } } @@ -8026,8 +8020,7 @@ public class BatchDisassociateProjectAssetsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="assetIds")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] AssetIds { get; set; } /// @@ -8037,8 +8030,7 @@ public class BatchDisassociateProjectAssetsPostBody /// Pattern: \S{36,64} /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(36, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\S{36,64}")] public string ClientToken { get; set; } } @@ -8061,8 +8053,7 @@ public class BatchGetAssetPropertyAggregatesPostBody /// Pattern: [A-Za-z0-9+/=]+ /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4096)] + [System.ComponentModel.DataAnnotations.Length(1, 4096)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-Za-z0-9+/=]+")] public string NextToken { get; set; } @@ -8093,8 +8084,7 @@ public class BatchGetAssetPropertyValuePostBody /// Pattern: [A-Za-z0-9+/=]+ /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4096)] + [System.ComponentModel.DataAnnotations.Length(1, 4096)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-Za-z0-9+/=]+")] public string NextToken { get; set; } } @@ -8117,8 +8107,7 @@ public class BatchGetAssetPropertyValueHistoryPostBody /// Pattern: [A-Za-z0-9+/=]+ /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4096)] + [System.ComponentModel.DataAnnotations.Length(1, 4096)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-Za-z0-9+/=]+")] public string NextToken { get; set; } @@ -8177,8 +8166,7 @@ public class CreateAccessPolicyPostBody /// Pattern: \S{36,64} /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(36, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\S{36,64}")] public string ClientToken { get; set; } @@ -8227,8 +8215,7 @@ public class CreateAssetPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="assetName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^\u0000-\u001F\u007F]+")] public string AssetName { get; set; } @@ -8241,8 +8228,7 @@ public class CreateAssetPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="assetModelId")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$")] public string AssetModelId { get; set; } @@ -8253,8 +8239,7 @@ public class CreateAssetPostBody /// Pattern: \S{36,64} /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(36, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\S{36,64}")] public string ClientToken { get; set; } @@ -8271,8 +8256,7 @@ public class CreateAssetPostBody /// Pattern: [^\u0000-\u001F\u007F]+ /// [System.Runtime.Serialization.DataMember(Name="assetDescription")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^\u0000-\u001F\u007F]+")] public string AssetDescription { get; set; } } @@ -8289,8 +8273,7 @@ public class CreateAssetModelPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="assetModelName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^\u0000-\u001F\u007F]+")] public string AssetModelName { get; set; } @@ -8301,8 +8284,7 @@ public class CreateAssetModelPostBody /// Pattern: [^\u0000-\u001F\u007F]+ /// [System.Runtime.Serialization.DataMember(Name="assetModelDescription")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^\u0000-\u001F\u007F]+")] public string AssetModelDescription { get; set; } @@ -8331,8 +8313,7 @@ public class CreateAssetModelPostBody /// Pattern: \S{36,64} /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(36, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\S{36,64}")] public string ClientToken { get; set; } @@ -8355,8 +8336,7 @@ public class CreateBulkImportJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="jobName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^\u0000-\u001F\u007F]+")] public string JobName { get; set; } @@ -8369,8 +8349,7 @@ public class CreateBulkImportJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="jobRoleArn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(1, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string JobRoleArn { get; set; } @@ -8428,8 +8407,7 @@ public class CreateDashboardPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="projectId")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$")] public string ProjectId { get; set; } @@ -8442,8 +8420,7 @@ public class CreateDashboardPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="dashboardName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^\u0000-\u001F\u007F]+")] public string DashboardName { get; set; } @@ -8454,8 +8431,7 @@ public class CreateDashboardPostBody /// Pattern: [^\u0000-\u001F\u007F]+ /// [System.Runtime.Serialization.DataMember(Name="dashboardDescription")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^\u0000-\u001F\u007F]+")] public string DashboardDescription { get; set; } @@ -8468,8 +8444,7 @@ public class CreateDashboardPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="dashboardDefinition")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(204800)] + [System.ComponentModel.DataAnnotations.Length(0, 204800)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".+")] public string DashboardDefinition { get; set; } @@ -8480,8 +8455,7 @@ public class CreateDashboardPostBody /// Pattern: \S{36,64} /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(36, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\S{36,64}")] public string ClientToken { get; set; } @@ -8504,8 +8478,7 @@ public class CreateGatewayPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="gatewayName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^\u0000-\u001F\u007F]+")] public string GatewayName { get; set; } @@ -8546,8 +8519,7 @@ public class CreatePortalPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="portalName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^\u0000-\u001F\u007F]+")] public string PortalName { get; set; } @@ -8558,8 +8530,7 @@ public class CreatePortalPostBody /// Pattern: [^\u0000-\u001F\u007F]+ /// [System.Runtime.Serialization.DataMember(Name="portalDescription")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^\u0000-\u001F\u007F]+")] public string PortalDescription { get; set; } @@ -8572,8 +8543,7 @@ public class CreatePortalPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="portalContactEmail")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^@]+@[^@]+")] public string PortalContactEmail { get; set; } @@ -8584,8 +8554,7 @@ public class CreatePortalPostBody /// Pattern: \S{36,64} /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(36, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\S{36,64}")] public string ClientToken { get; set; } @@ -8604,8 +8573,7 @@ public class CreatePortalPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="roleArn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(1, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string RoleArn { get; set; } @@ -8628,8 +8596,7 @@ public class CreatePortalPostBody /// Pattern: [^@]+@[^@]+ /// [System.Runtime.Serialization.DataMember(Name="notificationSenderEmail")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^@]+@[^@]+")] public string NotificationSenderEmail { get; set; } @@ -8672,8 +8639,7 @@ public class CreateProjectPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="portalId")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$")] public string PortalId { get; set; } @@ -8686,8 +8652,7 @@ public class CreateProjectPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="projectName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^\u0000-\u001F\u007F]+")] public string ProjectName { get; set; } @@ -8698,8 +8663,7 @@ public class CreateProjectPostBody /// Pattern: [^\u0000-\u001F\u007F]+ /// [System.Runtime.Serialization.DataMember(Name="projectDescription")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^\u0000-\u001F\u007F]+")] public string ProjectDescription { get; set; } @@ -8710,8 +8674,7 @@ public class CreateProjectPostBody /// Pattern: \S{36,64} /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(36, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\S{36,64}")] public string ClientToken { get; set; } @@ -8756,8 +8719,7 @@ public class UpdateAccessPolicyPutBody /// Pattern: \S{36,64} /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(36, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\S{36,64}")] public string ClientToken { get; set; } } @@ -8800,8 +8762,7 @@ public class UpdateAssetPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="assetName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^\u0000-\u001F\u007F]+")] public string AssetName { get; set; } @@ -8812,8 +8773,7 @@ public class UpdateAssetPutBody /// Pattern: \S{36,64} /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(36, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\S{36,64}")] public string ClientToken { get; set; } @@ -8824,8 +8784,7 @@ public class UpdateAssetPutBody /// Pattern: [^\u0000-\u001F\u007F]+ /// [System.Runtime.Serialization.DataMember(Name="assetDescription")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^\u0000-\u001F\u007F]+")] public string AssetDescription { get; set; } } @@ -8842,8 +8801,7 @@ public class UpdateAssetModelPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="assetModelName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^\u0000-\u001F\u007F]+")] public string AssetModelName { get; set; } @@ -8854,8 +8812,7 @@ public class UpdateAssetModelPutBody /// Pattern: [^\u0000-\u001F\u007F]+ /// [System.Runtime.Serialization.DataMember(Name="assetModelDescription")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^\u0000-\u001F\u007F]+")] public string AssetModelDescription { get; set; } @@ -8884,8 +8841,7 @@ public class UpdateAssetModelPutBody /// Pattern: \S{36,64} /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(36, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\S{36,64}")] public string ClientToken { get; set; } } @@ -8902,8 +8858,7 @@ public class UpdateDashboardPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="dashboardName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^\u0000-\u001F\u007F]+")] public string DashboardName { get; set; } @@ -8914,8 +8869,7 @@ public class UpdateDashboardPutBody /// Pattern: [^\u0000-\u001F\u007F]+ /// [System.Runtime.Serialization.DataMember(Name="dashboardDescription")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^\u0000-\u001F\u007F]+")] public string DashboardDescription { get; set; } @@ -8928,8 +8882,7 @@ public class UpdateDashboardPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="dashboardDefinition")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(204800)] + [System.ComponentModel.DataAnnotations.Length(0, 204800)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".+")] public string DashboardDefinition { get; set; } @@ -8940,8 +8893,7 @@ public class UpdateDashboardPutBody /// Pattern: \S{36,64} /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(36, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\S{36,64}")] public string ClientToken { get; set; } } @@ -8958,8 +8910,7 @@ public class UpdateGatewayPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="gatewayName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^\u0000-\u001F\u007F]+")] public string GatewayName { get; set; } } @@ -8976,8 +8927,7 @@ public class UpdatePortalPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="portalName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^\u0000-\u001F\u007F]+")] public string PortalName { get; set; } @@ -8988,8 +8938,7 @@ public class UpdatePortalPutBody /// Pattern: [^\u0000-\u001F\u007F]+ /// [System.Runtime.Serialization.DataMember(Name="portalDescription")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^\u0000-\u001F\u007F]+")] public string PortalDescription { get; set; } @@ -9002,8 +8951,7 @@ public class UpdatePortalPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="portalContactEmail")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^@]+@[^@]+")] public string PortalContactEmail { get; set; } @@ -9022,8 +8970,7 @@ public class UpdatePortalPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="roleArn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(1, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string RoleArn { get; set; } @@ -9034,8 +8981,7 @@ public class UpdatePortalPutBody /// Pattern: \S{36,64} /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(36, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\S{36,64}")] public string ClientToken { get; set; } @@ -9046,8 +8992,7 @@ public class UpdatePortalPutBody /// Pattern: [^@]+@[^@]+ /// [System.Runtime.Serialization.DataMember(Name="notificationSenderEmail")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^@]+@[^@]+")] public string NotificationSenderEmail { get; set; } @@ -9093,8 +9038,7 @@ public class UpdateProjectPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="projectName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^\u0000-\u001F\u007F]+")] public string ProjectName { get; set; } @@ -9105,8 +9049,7 @@ public class UpdateProjectPutBody /// Pattern: [^\u0000-\u001F\u007F]+ /// [System.Runtime.Serialization.DataMember(Name="projectDescription")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^\u0000-\u001F\u007F]+")] public string ProjectDescription { get; set; } @@ -9117,8 +9060,7 @@ public class UpdateProjectPutBody /// Pattern: \S{36,64} /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(36, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\S{36,64}")] public string ClientToken { get; set; } } @@ -9133,8 +9075,7 @@ public class DeleteTimeSeriesPostBody /// Pattern: \S{36,64} /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(36, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\S{36,64}")] public string ClientToken { get; set; } } @@ -9165,8 +9106,7 @@ public class UpdateAssetPropertyPutBody /// Pattern: \S{36,64} /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(36, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\S{36,64}")] public string ClientToken { get; set; } @@ -9177,8 +9117,7 @@ public class UpdateAssetPropertyPutBody /// Pattern: [^\u0000-\u001F\u007F]+ /// [System.Runtime.Serialization.DataMember(Name="propertyUnit")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^\u0000-\u001F\u007F]+")] public string PropertyUnit { get; set; } } @@ -9200,8 +9139,7 @@ public class PutDefaultEncryptionConfigurationPostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="kmsKeyId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string KmsKeyId { get; set; } } @@ -9283,8 +9221,7 @@ public class DisassociateAssetsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="hierarchyId")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$")] public string HierarchyId { get; set; } @@ -9297,8 +9234,7 @@ public class DisassociateAssetsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="childAssetId")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$")] public string ChildAssetId { get; set; } @@ -9309,8 +9245,7 @@ public class DisassociateAssetsPostBody /// Pattern: \S{36,64} /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(36, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\S{36,64}")] public string ClientToken { get; set; } } @@ -9325,8 +9260,7 @@ public class DisassociateTimeSeriesFromAssetPropertyPostBody /// Pattern: \S{36,64} /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(36, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\S{36,64}")] public string ClientToken { get; set; } } @@ -9355,8 +9289,7 @@ public class UpdateGatewayCapabilityConfigurationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="capabilityNamespace")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z]+:[a-zA-Z]+:[0-9]+$")] public string CapabilityNamespace { get; set; } @@ -9368,8 +9301,7 @@ public class UpdateGatewayCapabilityConfigurationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="capabilityConfiguration")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(104857600)] + [System.ComponentModel.DataAnnotations.Length(1, 104857600)] public string CapabilityConfiguration { get; set; } } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_iottwinmaker_2021_11_29_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_iottwinmaker_2021_11_29_.cs index 6dc2ab24..3cf06e19 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_iottwinmaker_2021_11_29_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_iottwinmaker_2021_11_29_.cs @@ -4033,8 +4033,7 @@ public class BatchPutPropertyValuesPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="entries")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public PropertyValueEntry[] Entries { get; set; } } @@ -4054,8 +4053,7 @@ public class CreateComponentTypePostBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Description { get; set; } @@ -4096,8 +4094,7 @@ public class CreateComponentTypePostBody /// Pattern: .*[^\u0000-\u001F\u007F]*.* /// [System.Runtime.Serialization.DataMember(Name="componentTypeName")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*[^\u0000-\u001F\u007F]*.*")] public string ComponentTypeName { get; set; } } @@ -4118,8 +4115,7 @@ public class UpdateComponentTypePutBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Description { get; set; } @@ -4154,8 +4150,7 @@ public class UpdateComponentTypePutBody /// Pattern: .*[^\u0000-\u001F\u007F]*.* /// [System.Runtime.Serialization.DataMember(Name="componentTypeName")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*[^\u0000-\u001F\u007F]*.*")] public string ComponentTypeName { get; set; } } @@ -4170,8 +4165,7 @@ public class CreateEntityPostBody /// Pattern: [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|^[a-zA-Z0-9][a-zA-Z_\-0-9.:]*[a-zA-Z0-9]+ /// [System.Runtime.Serialization.DataMember(Name="entityId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|^[a-zA-Z0-9][a-zA-Z_\-0-9.:]*[a-zA-Z0-9]+")] public string EntityId { get; set; } @@ -4184,8 +4178,7 @@ public class CreateEntityPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="entityName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^\u0000-\u001F\u007F]+")] public string EntityName { get; set; } @@ -4196,8 +4189,7 @@ public class CreateEntityPostBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Description { get; set; } @@ -4214,8 +4206,7 @@ public class CreateEntityPostBody /// Pattern: \$ROOT|^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|^[a-zA-Z0-9][a-zA-Z_\-0-9.:]*[a-zA-Z0-9]+ /// [System.Runtime.Serialization.DataMember(Name="parentEntityId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\$ROOT|^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|^[a-zA-Z0-9][a-zA-Z_\-0-9.:]*[a-zA-Z0-9]+")] public string ParentEntityId { get; set; } @@ -4238,8 +4229,7 @@ public class CreateScenePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sceneId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z_0-9][a-zA-Z_\-0-9]*[a-zA-Z0-9]+")] public string SceneId { get; set; } @@ -4252,8 +4242,7 @@ public class CreateScenePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="contentLocation")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[sS]3://[A-Za-z0-9._/-]+")] public string ContentLocation { get; set; } @@ -4264,8 +4253,7 @@ public class CreateScenePostBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Description { get; set; } @@ -4275,8 +4263,7 @@ public class CreateScenePostBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember(Name="capabilities")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public string[] Capabilities { get; set; } /// @@ -4304,8 +4291,7 @@ public class CreateSyncJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="syncRole")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:((aws)|(aws-cn)|(aws-us-gov)):iam::[0-9]{12}:role/.*")] public string SyncRole { get; set; } @@ -4326,8 +4312,7 @@ public class CreateWorkspacePostBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Description { get; set; } @@ -4340,8 +4325,7 @@ public class CreateWorkspacePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="s3Location")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*(^arn:((aws)|(aws-cn)|(aws-us-gov)):s3:::)([a-zA-Z0-9_-]+$).*")] public string S3Location { get; set; } @@ -4354,8 +4338,7 @@ public class CreateWorkspacePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="role")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:((aws)|(aws-cn)|(aws-us-gov)):iam::[0-9]{12}:role/.*")] public string Role { get; set; } @@ -4376,8 +4359,7 @@ public class UpdateWorkspacePutBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Description { get; set; } @@ -4388,8 +4370,7 @@ public class UpdateWorkspacePutBody /// Pattern: arn:((aws)|(aws-cn)|(aws-us-gov)):iam::[0-9]{12}:role/.* /// [System.Runtime.Serialization.DataMember(Name="role")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:((aws)|(aws-cn)|(aws-us-gov)):iam::[0-9]{12}:role/.*")] public string Role { get; set; } } @@ -4404,8 +4385,7 @@ public class UpdateEntityPutBody /// Pattern: [^\u0000-\u001F\u007F]+ /// [System.Runtime.Serialization.DataMember(Name="entityName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[^\u0000-\u001F\u007F]+")] public string EntityName { get; set; } @@ -4416,8 +4396,7 @@ public class UpdateEntityPutBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Description { get; set; } @@ -4454,8 +4433,7 @@ public class UpdateScenePutBody /// Pattern: [sS]3://[A-Za-z0-9._/-]+ /// [System.Runtime.Serialization.DataMember(Name="contentLocation")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[sS]3://[A-Za-z0-9._/-]+")] public string ContentLocation { get; set; } @@ -4466,8 +4444,7 @@ public class UpdateScenePutBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Description { get; set; } @@ -4477,8 +4454,7 @@ public class UpdateScenePutBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember(Name="capabilities")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public string[] Capabilities { get; set; } /// @@ -4500,8 +4476,7 @@ public class ExecuteQueryPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="workspaceId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z_0-9][a-zA-Z_\-0-9]*[a-zA-Z0-9]+")] public string WorkspaceId { get; set; } @@ -4514,8 +4489,7 @@ public class ExecuteQueryPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="queryStatement")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]+")] public string QueryStatement { get; set; } @@ -4535,8 +4509,7 @@ public class ExecuteQueryPostBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(17880)] + [System.ComponentModel.DataAnnotations.Length(0, 17880)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string NextToken { get; set; } } @@ -4558,8 +4531,7 @@ public class UpdatePricingPlanPostBody /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="bundleNames")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public string[] BundleNames { get; set; } } @@ -4573,8 +4545,7 @@ public class GetPropertyValuePostBody /// Pattern: [a-zA-Z_\-0-9]+ /// [System.Runtime.Serialization.DataMember(Name="componentName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z_\-0-9]+")] public string ComponentName { get; set; } @@ -4585,8 +4556,7 @@ public class GetPropertyValuePostBody /// Pattern: [a-zA-Z_\.\-0-9:]+ /// [System.Runtime.Serialization.DataMember(Name="componentTypeId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z_\.\-0-9:]+")] public string ComponentTypeId { get; set; } @@ -4597,8 +4567,7 @@ public class GetPropertyValuePostBody /// Pattern: [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|^[a-zA-Z0-9][a-zA-Z_\-0-9.:]*[a-zA-Z0-9]+ /// [System.Runtime.Serialization.DataMember(Name="entityId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|^[a-zA-Z0-9][a-zA-Z_\-0-9.:]*[a-zA-Z0-9]+")] public string EntityId { get; set; } @@ -4610,8 +4579,7 @@ public class GetPropertyValuePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="selectedProperties")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public string[] SelectedProperties { get; set; } /// @@ -4630,8 +4598,7 @@ public class GetPropertyValuePostBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(17880)] + [System.ComponentModel.DataAnnotations.Length(0, 17880)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string NextToken { get; set; } @@ -4642,8 +4609,7 @@ public class GetPropertyValuePostBody /// Pattern: [a-zA-Z_\-0-9]+ /// [System.Runtime.Serialization.DataMember(Name="propertyGroupName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z_\-0-9]+")] public string PropertyGroupName { get; set; } @@ -4674,8 +4640,7 @@ public class GetPropertyValueHistoryPostBody /// Pattern: [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|^[a-zA-Z0-9][a-zA-Z_\-0-9.:]*[a-zA-Z0-9]+ /// [System.Runtime.Serialization.DataMember(Name="entityId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|^[a-zA-Z0-9][a-zA-Z_\-0-9.:]*[a-zA-Z0-9]+")] public string EntityId { get; set; } @@ -4686,8 +4651,7 @@ public class GetPropertyValueHistoryPostBody /// Pattern: [a-zA-Z_\-0-9]+ /// [System.Runtime.Serialization.DataMember(Name="componentName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z_\-0-9]+")] public string ComponentName { get; set; } @@ -4698,8 +4662,7 @@ public class GetPropertyValueHistoryPostBody /// Pattern: [a-zA-Z_\.\-0-9:]+ /// [System.Runtime.Serialization.DataMember(Name="componentTypeId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z_\.\-0-9:]+")] public string ComponentTypeId { get; set; } @@ -4711,8 +4674,7 @@ public class GetPropertyValueHistoryPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="selectedProperties")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public string[] SelectedProperties { get; set; } /// @@ -4721,8 +4683,7 @@ public class GetPropertyValueHistoryPostBody /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="propertyFilters")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public PropertyFilter[] PropertyFilters { get; set; } /// @@ -4750,8 +4711,7 @@ public class GetPropertyValueHistoryPostBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(17880)] + [System.ComponentModel.DataAnnotations.Length(0, 17880)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string NextToken { get; set; } @@ -4776,8 +4736,7 @@ public class GetPropertyValueHistoryPostBody /// Max length: 35 /// [System.Runtime.Serialization.DataMember(Name="startTime")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(20, 35)] public string StartTime { get; set; } /// @@ -4786,8 +4745,7 @@ public class GetPropertyValueHistoryPostBody /// Max length: 35 /// [System.Runtime.Serialization.DataMember(Name="endTime")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(20, 35)] public string EndTime { get; set; } } @@ -4817,8 +4775,7 @@ public class ListComponentTypesPostBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(17880)] + [System.ComponentModel.DataAnnotations.Length(0, 17880)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string NextToken { get; set; } @@ -4857,8 +4814,7 @@ public class ListEntitiesPostBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(17880)] + [System.ComponentModel.DataAnnotations.Length(0, 17880)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string NextToken { get; set; } } @@ -4882,8 +4838,7 @@ public class ListScenesPostBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(17880)] + [System.ComponentModel.DataAnnotations.Length(0, 17880)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string NextToken { get; set; } } @@ -4907,8 +4862,7 @@ public class ListSyncJobsPostBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(17880)] + [System.ComponentModel.DataAnnotations.Length(0, 17880)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string NextToken { get; set; } } @@ -4938,8 +4892,7 @@ public class ListSyncResourcesPostBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(17880)] + [System.ComponentModel.DataAnnotations.Length(0, 17880)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string NextToken { get; set; } } @@ -4956,8 +4909,7 @@ public class ListTagsForResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="resourceARN")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:((aws)|(aws-cn)|(aws-us-gov)):iottwinmaker:[a-z0-9-]+:[0-9]{12}:[\/a-zA-Z0-9_\-\.:]+")] public string ResourceARN { get; set; } @@ -4977,8 +4929,7 @@ public class ListTagsForResourcePostBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(17880)] + [System.ComponentModel.DataAnnotations.Length(0, 17880)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string NextToken { get; set; } } @@ -5002,8 +4953,7 @@ public class ListWorkspacesPostBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(17880)] + [System.ComponentModel.DataAnnotations.Length(0, 17880)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string NextToken { get; set; } } @@ -5020,8 +4970,7 @@ public class TagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="resourceARN")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:((aws)|(aws-cn)|(aws-us-gov)):iottwinmaker:[a-z0-9-]+:[0-9]{12}:[\/a-zA-Z0-9_\-\.:]+")] public string ResourceARN { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_iotwireless_2020_11_22_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_iotwireless_2020_11_22_.cs index b6148ede..6581f901 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_iotwireless_2020_11_22_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_iotwireless_2020_11_22_.cs @@ -272,8 +272,7 @@ public class CreateNetworkAnalyzerConfigurationResponse /// Pattern: [a-zA-Z0-9-_]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9-_]+")] public string Name { get; set; } } @@ -1100,8 +1099,7 @@ public class GetFuotaTaskResponse /// Max length: 4096 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4096)] + [System.ComponentModel.DataAnnotations.Length(1, 4096)] public string FirmwareUpdateImage { get; set; } /// @@ -1110,8 +1108,7 @@ public class GetFuotaTaskResponse /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string FirmwareUpdateRole { get; set; } /// @@ -1592,8 +1589,7 @@ public class GetNetworkAnalyzerConfigurationResponse /// Pattern: [a-zA-Z0-9-_]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9-_]+")] public string Name { get; set; } @@ -2997,8 +2993,7 @@ public class LoRaWANGateway /// Maximum items: 3 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(0, 3)] public string[][] JoinEuiFilters { get; set; } /// @@ -3007,8 +3002,7 @@ public class LoRaWANGateway /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(0, 10)] public string[] NetIdFilters { get; set; } /// @@ -3017,8 +3011,7 @@ public class LoRaWANGateway /// Maximum items: 8 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(8)] + [System.ComponentModel.DataAnnotations.Length(0, 8)] public int[] SubBands { get; set; } [System.Runtime.Serialization.DataMember()] @@ -3499,8 +3492,7 @@ public class NetworkAnalyzerConfigurations /// Pattern: [a-zA-Z0-9-_]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9-_]+")] public string Name { get; set; } } @@ -4554,8 +4546,7 @@ public class CreateFuotaTaskRequest /// Pattern: ^[a-zA-Z0-9-_]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_]+$")] public string ClientRequestToken { get; set; } @@ -4573,8 +4564,7 @@ public class CreateFuotaTaskRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4096)] + [System.ComponentModel.DataAnnotations.Length(1, 4096)] public string FirmwareUpdateImage { get; set; } /// @@ -4585,8 +4575,7 @@ public class CreateFuotaTaskRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string FirmwareUpdateRole { get; set; } /// @@ -4595,8 +4584,7 @@ public class CreateFuotaTaskRequest /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } /// @@ -4723,8 +4711,7 @@ public class CreateMulticastGroupRequest /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } } @@ -4741,8 +4728,7 @@ public class CreateNetworkAnalyzerConfigurationRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9-_]+")] public string Name { get; set; } @@ -4772,8 +4758,7 @@ public class CreateNetworkAnalyzerConfigurationRequest /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } /// @@ -4783,8 +4768,7 @@ public class CreateNetworkAnalyzerConfigurationRequest /// Pattern: ^[a-zA-Z0-9-_]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_]+$")] public string ClientRequestToken { get; set; } @@ -5735,8 +5719,7 @@ public class StartBulkAssociateWirelessDeviceWithMulticastGroupRequest /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } } @@ -5758,8 +5741,7 @@ public class StartBulkDisassociateWirelessDeviceFromMulticastGroupRequest /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } } @@ -5805,8 +5787,7 @@ public class StartSingleWirelessDeviceImportTaskRequest /// Pattern: ^[a-zA-Z0-9-_]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_]+$")] public string ClientRequestToken { get; set; } @@ -5819,8 +5800,7 @@ public class StartSingleWirelessDeviceImportTaskRequest /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } /// @@ -5849,8 +5829,7 @@ public class StartWirelessDeviceImportTaskRequest /// Pattern: ^[a-zA-Z0-9-_]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_]+$")] public string ClientRequestToken { get; set; } @@ -5860,8 +5839,7 @@ public class StartWirelessDeviceImportTaskRequest /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } /// @@ -5963,8 +5941,7 @@ public class UpdateFuotaTaskRequest /// Max length: 4096 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4096)] + [System.ComponentModel.DataAnnotations.Length(1, 4096)] public string FirmwareUpdateImage { get; set; } /// @@ -5973,8 +5950,7 @@ public class UpdateFuotaTaskRequest /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string FirmwareUpdateRole { get; set; } /// @@ -6193,8 +6169,7 @@ public class UpdateWirelessGatewayRequest /// Maximum items: 3 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(0, 3)] public string[][] JoinEuiFilters { get; set; } /// @@ -6203,8 +6178,7 @@ public class UpdateWirelessGatewayRequest /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(0, 10)] public string[] NetIdFilters { get; set; } [System.Runtime.Serialization.DataMember()] @@ -9486,8 +9460,7 @@ public class AssociateAwsAccountWithPartnerAccountPostBody /// Pattern: ^[a-zA-Z0-9-_]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_]+$")] public string ClientRequestToken { get; set; } @@ -9497,8 +9470,7 @@ public class AssociateAwsAccountWithPartnerAccountPostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } } @@ -9577,8 +9549,7 @@ public class AssociateWirelessGatewayWithCertificatePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4096)] + [System.ComponentModel.DataAnnotations.Length(1, 4096)] public string IotCertificateId { get; set; } } @@ -9695,8 +9666,7 @@ public class CreateDestinationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string RoleArn { get; set; } /// @@ -9705,8 +9675,7 @@ public class CreateDestinationPostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } /// @@ -9716,8 +9685,7 @@ public class CreateDestinationPostBody /// Pattern: ^[a-zA-Z0-9-_]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_]+$")] public string ClientRequestToken { get; set; } } @@ -9745,8 +9713,7 @@ public class CreateDeviceProfilePostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } /// @@ -9756,8 +9723,7 @@ public class CreateDeviceProfilePostBody /// Pattern: ^[a-zA-Z0-9-_]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_]+$")] public string ClientRequestToken { get; set; } @@ -9855,8 +9821,7 @@ public class CreateFuotaTaskPostBody /// Pattern: ^[a-zA-Z0-9-_]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_]+$")] public string ClientRequestToken { get; set; } @@ -9874,8 +9839,7 @@ public class CreateFuotaTaskPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4096)] + [System.ComponentModel.DataAnnotations.Length(1, 4096)] public string FirmwareUpdateImage { get; set; } /// @@ -9886,8 +9850,7 @@ public class CreateFuotaTaskPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string FirmwareUpdateRole { get; set; } /// @@ -9896,8 +9859,7 @@ public class CreateFuotaTaskPostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } /// @@ -10006,8 +9968,7 @@ public class CreateMulticastGroupPostBody /// Pattern: ^[a-zA-Z0-9-_]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_]+$")] public string ClientRequestToken { get; set; } @@ -10025,8 +9986,7 @@ public class CreateMulticastGroupPostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } } @@ -10104,8 +10064,7 @@ public class CreateNetworkAnalyzerConfigurationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9-_]+")] public string Name { get; set; } @@ -10121,8 +10080,7 @@ public class CreateNetworkAnalyzerConfigurationPostBody /// Maximum items: 250 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(0, 250)] public string[] WirelessDevices { get; set; } /// @@ -10145,8 +10103,7 @@ public class CreateNetworkAnalyzerConfigurationPostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } /// @@ -10156,8 +10113,7 @@ public class CreateNetworkAnalyzerConfigurationPostBody /// Pattern: ^[a-zA-Z0-9-_]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_]+$")] public string ClientRequestToken { get; set; } @@ -10167,8 +10123,7 @@ public class CreateNetworkAnalyzerConfigurationPostBody /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(0, 10)] public string[] MulticastGroups { get; set; } } @@ -10217,8 +10172,7 @@ public class CreateServiceProfilePostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } /// @@ -10228,8 +10182,7 @@ public class CreateServiceProfilePostBody /// Pattern: ^[a-zA-Z0-9-_]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_]+$")] public string ClientRequestToken { get; set; } } @@ -10299,8 +10252,7 @@ public class CreateWirelessDevicePostBody /// Pattern: ^[a-zA-Z0-9-_]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_]+$")] public string ClientRequestToken { get; set; } @@ -10316,8 +10268,7 @@ public class CreateWirelessDevicePostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } /// @@ -10404,8 +10355,7 @@ public class CreateWirelessGatewayPostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } /// @@ -10415,8 +10365,7 @@ public class CreateWirelessGatewayPostBody /// Pattern: ^[a-zA-Z0-9-_]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_]+$")] public string ClientRequestToken { get; set; } } @@ -10436,8 +10385,7 @@ public class CreateWirelessGatewayPostBodyLoRaWAN /// Maximum items: 3 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(0, 3)] public string[][] JoinEuiFilters { get; set; } /// @@ -10446,8 +10394,7 @@ public class CreateWirelessGatewayPostBodyLoRaWAN /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(0, 10)] public string[] NetIdFilters { get; set; } /// @@ -10456,8 +10403,7 @@ public class CreateWirelessGatewayPostBodyLoRaWAN /// Maximum items: 8 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(8)] + [System.ComponentModel.DataAnnotations.Length(0, 8)] public int[] SubBands { get; set; } [System.Runtime.Serialization.DataMember()] @@ -10500,8 +10446,7 @@ public class CreateWirelessGatewayTaskDefinitionPostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string Name { get; set; } /// @@ -10517,8 +10462,7 @@ public class CreateWirelessGatewayTaskDefinitionPostBody /// Pattern: ^[a-zA-Z0-9-_]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_]+$")] public string ClientRequestToken { get; set; } @@ -10528,8 +10472,7 @@ public class CreateWirelessGatewayTaskDefinitionPostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } } @@ -10577,8 +10520,7 @@ public class UpdateDestinationPatchBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string RoleArn { get; set; } } @@ -10633,8 +10575,7 @@ public class UpdateFuotaTaskPatchBody /// Max length: 4096 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4096)] + [System.ComponentModel.DataAnnotations.Length(1, 4096)] public string FirmwareUpdateImage { get; set; } /// @@ -10643,8 +10584,7 @@ public class UpdateFuotaTaskPatchBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string FirmwareUpdateRole { get; set; } /// @@ -10830,8 +10770,7 @@ public class UpdateNetworkAnalyzerConfigurationPatchBody /// Maximum items: 250 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(0, 250)] public string[] WirelessDevicesToAdd { get; set; } /// @@ -10840,8 +10779,7 @@ public class UpdateNetworkAnalyzerConfigurationPatchBody /// Maximum items: 250 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(0, 250)] public string[] WirelessDevicesToRemove { get; set; } /// @@ -10870,8 +10808,7 @@ public class UpdateNetworkAnalyzerConfigurationPatchBody /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(0, 10)] public string[] MulticastGroupsToAdd { get; set; } /// @@ -10880,8 +10817,7 @@ public class UpdateNetworkAnalyzerConfigurationPatchBody /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(0, 10)] public string[] MulticastGroupsToRemove { get; set; } } @@ -11012,8 +10948,7 @@ public class UpdateWirelessGatewayPatchBody /// Maximum items: 3 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(0, 3)] public string[][] JoinEuiFilters { get; set; } /// @@ -11022,8 +10957,7 @@ public class UpdateWirelessGatewayPatchBody /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(0, 10)] public string[] NetIdFilters { get; set; } /// @@ -11433,8 +11367,7 @@ public class TagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } } @@ -11489,8 +11422,7 @@ public class StartBulkAssociateWirelessDeviceWithMulticastGroupPatchBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } } @@ -11511,8 +11443,7 @@ public class StartBulkDisassociateWirelessDeviceFromMulticastGroupPostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } } @@ -11538,8 +11469,7 @@ public class StartSingleWirelessDeviceImportTaskPostBody /// Pattern: ^[a-zA-Z0-9-_]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_]+$")] public string ClientRequestToken { get; set; } @@ -11555,8 +11485,7 @@ public class StartSingleWirelessDeviceImportTaskPostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } /// @@ -11597,8 +11526,7 @@ public class StartWirelessDeviceImportTaskPostBody /// Pattern: ^[a-zA-Z0-9-_]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_]+$")] public string ClientRequestToken { get; set; } @@ -11608,8 +11536,7 @@ public class StartWirelessDeviceImportTaskPostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_ivs_2020_07_14_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_ivs_2020_07_14_.cs index 3000b2b4..20f5a99f 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_ivs_2020_07_14_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_ivs_2020_07_14_.cs @@ -2387,8 +2387,7 @@ public class BatchGetChannelPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="arns")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string[] Arns { get; set; } } @@ -2403,8 +2402,7 @@ public class BatchGetStreamKeyPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="arns")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string[] Arns { get; set; } } @@ -2419,8 +2417,7 @@ public class BatchStartViewerSessionRevocationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="viewerSessions")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(1, 20)] public BatchStartViewerSessionRevocationViewerSession[] ViewerSessions { get; set; } } @@ -2452,8 +2449,7 @@ public class CreateChannelPostBody /// Pattern: ^[a-zA-Z0-9-_]*$ /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_]*$")] public string Name { get; set; } @@ -2470,8 +2466,7 @@ public class CreateChannelPostBody /// Pattern: ^$|^arn:aws:ivs:[a-z0-9-]+:[0-9]+:recording-configuration/[a-zA-Z0-9-]+$ /// [System.Runtime.Serialization.DataMember(Name="recordingConfigurationArn")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^$|^arn:aws:ivs:[a-z0-9-]+:[0-9]+:recording-configuration/[a-zA-Z0-9-]+$")] public string RecordingConfigurationArn { get; set; } @@ -2506,8 +2501,7 @@ public class CreateRecordingConfigurationPostBody /// Pattern: ^[a-zA-Z0-9-_]*$ /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_]*$")] public string Name { get; set; } @@ -2584,8 +2578,7 @@ public class CreateStreamKeyPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="channelArn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:[is]vs:[a-z0-9-]+:[0-9]+:channel/[a-zA-Z0-9-]+$")] public string ChannelArn { get; set; } @@ -2608,8 +2601,7 @@ public class DeleteChannelPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="arn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:[is]vs:[a-z0-9-]+:[0-9]+:channel/[a-zA-Z0-9-]+$")] public string Arn { get; set; } } @@ -2626,8 +2618,7 @@ public class DeletePlaybackKeyPairPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="arn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:[is]vs:[a-z0-9-]+:[0-9]+:playback-key/[a-zA-Z0-9-]+$")] public string Arn { get; set; } } @@ -2644,8 +2635,7 @@ public class DeleteRecordingConfigurationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="arn")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:ivs:[a-z0-9-]+:[0-9]+:recording-configuration/[a-zA-Z0-9-]+$")] public string Arn { get; set; } } @@ -2662,8 +2652,7 @@ public class DeleteStreamKeyPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="arn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:[is]vs:[a-z0-9-]+:[0-9]+:stream-key/[a-zA-Z0-9-]+$")] public string Arn { get; set; } } @@ -2680,8 +2669,7 @@ public class GetChannelPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="arn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:[is]vs:[a-z0-9-]+:[0-9]+:channel/[a-zA-Z0-9-]+$")] public string Arn { get; set; } } @@ -2698,8 +2686,7 @@ public class GetPlaybackKeyPairPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="arn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:[is]vs:[a-z0-9-]+:[0-9]+:playback-key/[a-zA-Z0-9-]+$")] public string Arn { get; set; } } @@ -2716,8 +2703,7 @@ public class GetRecordingConfigurationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="arn")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:ivs:[a-z0-9-]+:[0-9]+:recording-configuration/[a-zA-Z0-9-]+$")] public string Arn { get; set; } } @@ -2734,8 +2720,7 @@ public class GetStreamPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="channelArn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:[is]vs:[a-z0-9-]+:[0-9]+:channel/[a-zA-Z0-9-]+$")] public string ChannelArn { get; set; } } @@ -2752,8 +2737,7 @@ public class GetStreamKeyPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="arn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:[is]vs:[a-z0-9-]+:[0-9]+:stream-key/[a-zA-Z0-9-]+$")] public string Arn { get; set; } } @@ -2770,8 +2754,7 @@ public class GetStreamSessionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="channelArn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:[is]vs:[a-z0-9-]+:[0-9]+:channel/[a-zA-Z0-9-]+$")] public string ChannelArn { get; set; } @@ -2782,8 +2765,7 @@ public class GetStreamSessionPostBody /// Pattern: ^st-[a-zA-Z0-9]+$ /// [System.Runtime.Serialization.DataMember(Name="streamId")] - [System.ComponentModel.DataAnnotations.MinLength(26)] - [System.ComponentModel.DataAnnotations.MaxLength(26)] + [System.ComponentModel.DataAnnotations.Length(26, 26)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^st-[a-zA-Z0-9]+$")] public string StreamId { get; set; } } @@ -2798,8 +2780,7 @@ public class ImportPlaybackKeyPairPostBody /// Pattern: ^[a-zA-Z0-9-_]*$ /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_]*$")] public string Name { get; set; } @@ -2828,8 +2809,7 @@ public class ListChannelsPostBody /// Pattern: ^[a-zA-Z0-9-_]*$ /// [System.Runtime.Serialization.DataMember(Name="filterByName")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_]*$")] public string FilterByName { get; set; } @@ -2840,8 +2820,7 @@ public class ListChannelsPostBody /// Pattern: ^$|^arn:aws:ivs:[a-z0-9-]+:[0-9]+:recording-configuration/[a-zA-Z0-9-]+$ /// [System.Runtime.Serialization.DataMember(Name="filterByRecordingConfigurationArn")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^$|^arn:aws:ivs:[a-z0-9-]+:[0-9]+:recording-configuration/[a-zA-Z0-9-]+$")] public string FilterByRecordingConfigurationArn { get; set; } @@ -2861,8 +2840,7 @@ public class ListChannelsPostBody /// Pattern: ^[a-zA-Z0-9+/=_-]*$ /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9+/=_-]*$")] public string NextToken { get; set; } } @@ -2886,8 +2864,7 @@ public class ListPlaybackKeyPairsPostBody /// Pattern: ^[a-zA-Z0-9+/=_-]*$ /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9+/=_-]*$")] public string NextToken { get; set; } } @@ -2911,8 +2888,7 @@ public class ListRecordingConfigurationsPostBody /// Pattern: ^[a-zA-Z0-9+/=_-]*$ /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9+/=_-]*$")] public string NextToken { get; set; } } @@ -2929,8 +2905,7 @@ public class ListStreamKeysPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="channelArn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:[is]vs:[a-z0-9-]+:[0-9]+:channel/[a-zA-Z0-9-]+$")] public string ChannelArn { get; set; } @@ -2950,8 +2925,7 @@ public class ListStreamKeysPostBody /// Pattern: ^[a-zA-Z0-9+/=_-]*$ /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9+/=_-]*$")] public string NextToken { get; set; } } @@ -2968,8 +2942,7 @@ public class ListStreamSessionsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="channelArn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:[is]vs:[a-z0-9-]+:[0-9]+:channel/[a-zA-Z0-9-]+$")] public string ChannelArn { get; set; } @@ -2989,8 +2962,7 @@ public class ListStreamSessionsPostBody /// Pattern: ^[a-zA-Z0-9+/=_-]*$ /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9+/=_-]*$")] public string NextToken { get; set; } } @@ -3020,8 +2992,7 @@ public class ListStreamsPostBody /// Pattern: ^[a-zA-Z0-9+/=_-]*$ /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9+/=_-]*$")] public string NextToken { get; set; } } @@ -3057,8 +3028,7 @@ public class PutMetadataPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="channelArn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:[is]vs:[a-z0-9-]+:[0-9]+:channel/[a-zA-Z0-9-]+$")] public string ChannelArn { get; set; } @@ -3085,8 +3055,7 @@ public class StartViewerSessionRevocationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="channelArn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:[is]vs:[a-z0-9-]+:[0-9]+:channel/[a-zA-Z0-9-]+$")] public string ChannelArn { get; set; } @@ -3098,8 +3067,7 @@ public class StartViewerSessionRevocationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="viewerId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string ViewerId { get; set; } /// @@ -3123,8 +3091,7 @@ public class StopStreamPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="channelArn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:[is]vs:[a-z0-9-]+:[0-9]+:channel/[a-zA-Z0-9-]+$")] public string ChannelArn { get; set; } } @@ -3141,8 +3108,7 @@ public class UpdateChannelPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="arn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:[is]vs:[a-z0-9-]+:[0-9]+:channel/[a-zA-Z0-9-]+$")] public string Arn { get; set; } @@ -3171,8 +3137,7 @@ public class UpdateChannelPostBody /// Pattern: ^[a-zA-Z0-9-_]*$ /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_]*$")] public string Name { get; set; } @@ -3189,8 +3154,7 @@ public class UpdateChannelPostBody /// Pattern: ^$|^arn:aws:ivs:[a-z0-9-]+:[0-9]+:recording-configuration/[a-zA-Z0-9-]+$ /// [System.Runtime.Serialization.DataMember(Name="recordingConfigurationArn")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^$|^arn:aws:ivs:[a-z0-9-]+:[0-9]+:recording-configuration/[a-zA-Z0-9-]+$")] public string RecordingConfigurationArn { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_ivs_realtime_2020_07_14_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_ivs_realtime_2020_07_14_.cs index 839e6c1c..00218ce7 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_ivs_realtime_2020_07_14_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_ivs_realtime_2020_07_14_.cs @@ -1233,8 +1233,7 @@ public class CreateParticipantTokenPostBody /// Maximum items: 2 /// [System.Runtime.Serialization.DataMember(Name="capabilities")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(0, 2)] public ParticipantTokenCapability[] Capabilities { get; set; } /// @@ -1255,8 +1254,7 @@ public class CreateParticipantTokenPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="stageArn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:ivs:[a-z0-9-]+:[0-9]+:stage/[a-zA-Z0-9-]+$")] public string StageArn { get; set; } @@ -1266,8 +1264,7 @@ public class CreateParticipantTokenPostBody /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="userId")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] public string UserId { get; set; } } @@ -1281,8 +1278,7 @@ public class CreateStagePostBody /// Pattern: ^[a-zA-Z0-9-_]*$ /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_]*$")] public string Name { get; set; } @@ -1292,8 +1288,7 @@ public class CreateStagePostBody /// Maximum items: 12 /// [System.Runtime.Serialization.DataMember(Name="participantTokenConfigurations")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(0, 12)] public ParticipantTokenConfiguration[] ParticipantTokenConfigurations { get; set; } /// @@ -1315,8 +1310,7 @@ public class DeleteStagePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="arn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:ivs:[a-z0-9-]+:[0-9]+:stage/[a-zA-Z0-9-]+$")] public string Arn { get; set; } } @@ -1338,8 +1332,7 @@ public class DisconnectParticipantPostBody /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="reason")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] public string Reason { get; set; } /// @@ -1351,8 +1344,7 @@ public class DisconnectParticipantPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="stageArn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:ivs:[a-z0-9-]+:[0-9]+:stage/[a-zA-Z0-9-]+$")] public string StageArn { get; set; } } @@ -1377,8 +1369,7 @@ public class GetParticipantPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sessionId")] - [System.ComponentModel.DataAnnotations.MinLength(16)] - [System.ComponentModel.DataAnnotations.MaxLength(16)] + [System.ComponentModel.DataAnnotations.Length(16, 16)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^st-[a-zA-Z0-9]+$")] public string SessionId { get; set; } @@ -1391,8 +1382,7 @@ public class GetParticipantPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="stageArn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:ivs:[a-z0-9-]+:[0-9]+:stage/[a-zA-Z0-9-]+$")] public string StageArn { get; set; } } @@ -1409,8 +1399,7 @@ public class GetStagePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="arn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:ivs:[a-z0-9-]+:[0-9]+:stage/[a-zA-Z0-9-]+$")] public string Arn { get; set; } } @@ -1427,8 +1416,7 @@ public class GetStageSessionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sessionId")] - [System.ComponentModel.DataAnnotations.MinLength(16)] - [System.ComponentModel.DataAnnotations.MaxLength(16)] + [System.ComponentModel.DataAnnotations.Length(16, 16)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^st-[a-zA-Z0-9]+$")] public string SessionId { get; set; } @@ -1441,8 +1429,7 @@ public class GetStageSessionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="stageArn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:ivs:[a-z0-9-]+:[0-9]+:stage/[a-zA-Z0-9-]+$")] public string StageArn { get; set; } } @@ -1466,8 +1453,7 @@ public class ListParticipantEventsPostBody /// Pattern: ^[a-zA-Z0-9+/=_-]*$ /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9+/=_-]*$")] public string NextToken { get; set; } @@ -1488,8 +1474,7 @@ public class ListParticipantEventsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sessionId")] - [System.ComponentModel.DataAnnotations.MinLength(16)] - [System.ComponentModel.DataAnnotations.MaxLength(16)] + [System.ComponentModel.DataAnnotations.Length(16, 16)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^st-[a-zA-Z0-9]+$")] public string SessionId { get; set; } @@ -1502,8 +1487,7 @@ public class ListParticipantEventsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="stageArn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:ivs:[a-z0-9-]+:[0-9]+:stage/[a-zA-Z0-9-]+$")] public string StageArn { get; set; } } @@ -1529,8 +1513,7 @@ public class ListParticipantsPostBody /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="filterByUserId")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] public string FilterByUserId { get; set; } /// @@ -1549,8 +1532,7 @@ public class ListParticipantsPostBody /// Pattern: ^[a-zA-Z0-9+/=_-]*$ /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9+/=_-]*$")] public string NextToken { get; set; } @@ -1563,8 +1545,7 @@ public class ListParticipantsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sessionId")] - [System.ComponentModel.DataAnnotations.MinLength(16)] - [System.ComponentModel.DataAnnotations.MaxLength(16)] + [System.ComponentModel.DataAnnotations.Length(16, 16)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^st-[a-zA-Z0-9]+$")] public string SessionId { get; set; } @@ -1577,8 +1558,7 @@ public class ListParticipantsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="stageArn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:ivs:[a-z0-9-]+:[0-9]+:stage/[a-zA-Z0-9-]+$")] public string StageArn { get; set; } } @@ -1602,8 +1582,7 @@ public class ListStageSessionsPostBody /// Pattern: ^[a-zA-Z0-9+/=_-]*$ /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9+/=_-]*$")] public string NextToken { get; set; } @@ -1616,8 +1595,7 @@ public class ListStageSessionsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="stageArn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:ivs:[a-z0-9-]+:[0-9]+:stage/[a-zA-Z0-9-]+$")] public string StageArn { get; set; } } @@ -1641,8 +1619,7 @@ public class ListStagesPostBody /// Pattern: ^[a-zA-Z0-9+/=_-]*$ /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9+/=_-]*$")] public string NextToken { get; set; } } @@ -1671,8 +1648,7 @@ public class UpdateStagePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="arn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:ivs:[a-z0-9-]+:[0-9]+:stage/[a-zA-Z0-9-]+$")] public string Arn { get; set; } @@ -1683,8 +1659,7 @@ public class UpdateStagePostBody /// Pattern: ^[a-zA-Z0-9-_]*$ /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_]*$")] public string Name { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_ivschat_2020_07_14_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_ivschat_2020_07_14_.cs index 2e979e89..70ad6c33 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_ivschat_2020_07_14_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_ivschat_2020_07_14_.cs @@ -1387,8 +1387,7 @@ public class CreateChatTokenPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="roomIdentifier")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:ivschat:[a-z0-9-]+:[0-9]+:room/[a-zA-Z0-9-]+$")] public string RoomIdentifier { get; set; } @@ -1409,8 +1408,7 @@ public class CreateChatTokenPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="userId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string UserId { get; set; } } @@ -1432,8 +1430,7 @@ public class CreateLoggingConfigurationPostBody /// Pattern: ^[a-zA-Z0-9-_]*$ /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_]*$")] public string Name { get; set; } @@ -1466,8 +1463,7 @@ public class CreateRoomPostBody /// Maximum items: 3 /// [System.Runtime.Serialization.DataMember(Name="loggingConfigurationIdentifiers")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(0, 3)] public string[] LoggingConfigurationIdentifiers { get; set; } /// @@ -1501,8 +1497,7 @@ public class CreateRoomPostBody /// Pattern: ^[a-zA-Z0-9-_]*$ /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_]*$")] public string Name { get; set; } @@ -1535,8 +1530,7 @@ public class DeleteLoggingConfigurationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="identifier")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:ivschat:[a-z0-9-]+:[0-9]+:logging-configuration/[a-zA-Z0-9-]+$")] public string Identifier { get; set; } } @@ -1553,8 +1547,7 @@ public class DeleteMessagePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9]+$")] public string Id { get; set; } @@ -1564,8 +1557,7 @@ public class DeleteMessagePostBody /// Max length: 256 /// [System.Runtime.Serialization.DataMember(Name="reason")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Reason { get; set; } /// @@ -1577,8 +1569,7 @@ public class DeleteMessagePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="roomIdentifier")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:ivschat:[a-z0-9-]+:[0-9]+:room/[a-zA-Z0-9-]+$")] public string RoomIdentifier { get; set; } } @@ -1595,8 +1586,7 @@ public class DeleteRoomPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="identifier")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:ivschat:[a-z0-9-]+:[0-9]+:room/[a-zA-Z0-9-]+$")] public string Identifier { get; set; } } @@ -1610,8 +1600,7 @@ public class DisconnectUserPostBody /// Max length: 256 /// [System.Runtime.Serialization.DataMember(Name="reason")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Reason { get; set; } /// @@ -1623,8 +1612,7 @@ public class DisconnectUserPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="roomIdentifier")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:ivschat:[a-z0-9-]+:[0-9]+:room/[a-zA-Z0-9-]+$")] public string RoomIdentifier { get; set; } @@ -1636,8 +1624,7 @@ public class DisconnectUserPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="userId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string UserId { get; set; } } @@ -1653,8 +1640,7 @@ public class GetLoggingConfigurationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="identifier")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:ivschat:[a-z0-9-]+:[0-9]+:logging-configuration/[a-zA-Z0-9-]+$")] public string Identifier { get; set; } } @@ -1671,8 +1657,7 @@ public class GetRoomPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="identifier")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:ivschat:[a-z0-9-]+:[0-9]+:room/[a-zA-Z0-9-]+$")] public string Identifier { get; set; } } @@ -1695,8 +1680,7 @@ public class ListLoggingConfigurationsPostBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] public string NextToken { get; set; } } @@ -1710,8 +1694,7 @@ public class ListRoomsPostBody /// Pattern: ^arn:aws:ivschat:[a-z0-9-]+:[0-9]+:logging-configuration/[a-zA-Z0-9-]+$ /// [System.Runtime.Serialization.DataMember(Name="loggingConfigurationIdentifier")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:ivschat:[a-z0-9-]+:[0-9]+:logging-configuration/[a-zA-Z0-9-]+$")] public string LoggingConfigurationIdentifier { get; set; } @@ -1731,8 +1714,7 @@ public class ListRoomsPostBody /// Pattern: ^$|^arn:aws:lambda:[a-z0-9-]+:[0-9]{12}:function:.+ /// [System.Runtime.Serialization.DataMember(Name="messageReviewHandlerUri")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(170)] + [System.ComponentModel.DataAnnotations.Length(0, 170)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^$|^arn:aws:lambda:[a-z0-9-]+:[0-9]{12}:function:.+")] public string MessageReviewHandlerUri { get; set; } @@ -1743,8 +1725,7 @@ public class ListRoomsPostBody /// Pattern: ^[a-zA-Z0-9-_]*$ /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_]*$")] public string Name { get; set; } @@ -1754,8 +1735,7 @@ public class ListRoomsPostBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] public string NextToken { get; set; } } @@ -1788,8 +1768,7 @@ public class SendEventPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="eventName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string EventName { get; set; } /// @@ -1801,8 +1780,7 @@ public class SendEventPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="roomIdentifier")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:ivschat:[a-z0-9-]+:[0-9]+:room/[a-zA-Z0-9-]+$")] public string RoomIdentifier { get; set; } } @@ -1825,8 +1803,7 @@ public class UpdateLoggingConfigurationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="identifier")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:ivschat:[a-z0-9-]+:[0-9]+:logging-configuration/[a-zA-Z0-9-]+$")] public string Identifier { get; set; } @@ -1837,8 +1814,7 @@ public class UpdateLoggingConfigurationPostBody /// Pattern: ^[a-zA-Z0-9-_]*$ /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_]*$")] public string Name { get; set; } } @@ -1868,8 +1844,7 @@ public class UpdateRoomPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="identifier")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:ivschat:[a-z0-9-]+:[0-9]+:room/[a-zA-Z0-9-]+$")] public string Identifier { get; set; } @@ -1879,8 +1854,7 @@ public class UpdateRoomPostBody /// Maximum items: 3 /// [System.Runtime.Serialization.DataMember(Name="loggingConfigurationIdentifiers")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(0, 3)] public string[] LoggingConfigurationIdentifiers { get; set; } /// @@ -1914,8 +1888,7 @@ public class UpdateRoomPostBody /// Pattern: ^[a-zA-Z0-9-_]*$ /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_]*$")] public string Name { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_kafka_2018_11_14_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_kafka_2018_11_14_.cs index f5f3f602..82a741d4 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_kafka_2018_11_14_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_kafka_2018_11_14_.cs @@ -4642,8 +4642,7 @@ public class CreateClusterPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clusterName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string ClusterName { get; set; } /// @@ -4688,8 +4687,7 @@ public class CreateClusterPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="kafkaVersion")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string KafkaVersion { get; set; } [System.Runtime.Serialization.DataMember(Name="loggingInfo")] @@ -4808,8 +4806,7 @@ public class CreateClusterV2PostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clusterName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string ClusterName { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_kafkaconnect_2021_09_14_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_kafkaconnect_2021_09_14_.cs index f43ae8fe..4a26403b 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_kafkaconnect_2021_09_14_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_kafkaconnect_2021_09_14_.cs @@ -1891,8 +1891,7 @@ public class CreateConnectorPostBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="connectorDescription")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] public string ConnectorDescription { get; set; } /// @@ -1903,8 +1902,7 @@ public class CreateConnectorPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="connectorName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string ConnectorName { get; set; } /// @@ -2033,8 +2031,7 @@ public class CreateCustomPluginPostBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] public string Description { get; set; } /// @@ -2053,8 +2050,7 @@ public class CreateCustomPluginPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Name { get; set; } } @@ -2074,8 +2070,7 @@ public class CreateWorkerConfigurationPostBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] public string Description { get; set; } /// @@ -2086,8 +2081,7 @@ public class CreateWorkerConfigurationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Name { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_kinesis_video_archived_media_2017_09_30_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_kinesis_video_archived_media_2017_09_30_.cs index 80b47bc7..7ea087a8 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_kinesis_video_archived_media_2017_09_30_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_kinesis_video_archived_media_2017_09_30_.cs @@ -859,8 +859,7 @@ public class GetClipPostBody /// Pattern: [a-zA-Z0-9_.-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.-]+")] public string StreamName { get; set; } @@ -871,8 +870,7 @@ public class GetClipPostBody /// Pattern: arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+")] public string StreamARN { get; set; } @@ -905,8 +903,7 @@ public class GetDASHStreamingSessionURLPostBody /// Pattern: [a-zA-Z0-9_.-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.-]+")] public string StreamName { get; set; } @@ -917,8 +914,7 @@ public class GetDASHStreamingSessionURLPostBody /// Pattern: arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+")] public string StreamARN { get; set; } @@ -985,8 +981,7 @@ public class GetHLSStreamingSessionURLPostBody /// Pattern: [a-zA-Z0-9_.-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.-]+")] public string StreamName { get; set; } @@ -997,8 +992,7 @@ public class GetHLSStreamingSessionURLPostBody /// Pattern: arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+")] public string StreamARN { get; set; } @@ -1071,8 +1065,7 @@ public class GetImagesPostBody /// Pattern: [a-zA-Z0-9_.-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.-]+")] public string StreamName { get; set; } @@ -1083,8 +1076,7 @@ public class GetImagesPostBody /// Pattern: arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+")] public string StreamARN { get; set; } @@ -1166,8 +1158,7 @@ public class GetImagesPostBody /// Pattern: [a-zA-Z0-9+/]+={0,2} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4096)] + [System.ComponentModel.DataAnnotations.Length(1, 4096)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9+/]+={0,2}")] public string NextToken { get; set; } } @@ -1182,8 +1173,7 @@ public class GetMediaForFragmentListPostBody /// Pattern: [a-zA-Z0-9_.-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.-]+")] public string StreamName { get; set; } @@ -1194,8 +1184,7 @@ public class GetMediaForFragmentListPostBody /// Pattern: arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+")] public string StreamARN { get; set; } @@ -1207,8 +1196,7 @@ public class GetMediaForFragmentListPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] public string[] Fragments { get; set; } } @@ -1222,8 +1210,7 @@ public class ListFragmentsPostBody /// Pattern: [a-zA-Z0-9_.-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.-]+")] public string StreamName { get; set; } @@ -1234,8 +1221,7 @@ public class ListFragmentsPostBody /// Pattern: arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+")] public string StreamARN { get; set; } @@ -1255,8 +1241,7 @@ public class ListFragmentsPostBody /// Pattern: [a-zA-Z0-9+/]+={0,2} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4096)] + [System.ComponentModel.DataAnnotations.Length(1, 4096)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9+/]+={0,2}")] public string NextToken { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_kinesis_video_media_2017_09_30_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_kinesis_video_media_2017_09_30_.cs index a41f8f51..7160bc4e 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_kinesis_video_media_2017_09_30_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_kinesis_video_media_2017_09_30_.cs @@ -180,8 +180,7 @@ public class GetMediaPostBody /// Pattern: [a-zA-Z0-9_.-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.-]+")] public string StreamName { get; set; } @@ -192,8 +191,7 @@ public class GetMediaPostBody /// Pattern: arn:aws:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+")] public string StreamARN { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_kinesis_video_signaling_2019_12_04_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_kinesis_video_signaling_2019_12_04_.cs index ef55f81f..a88589f9 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_kinesis_video_signaling_2019_12_04_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_kinesis_video_signaling_2019_12_04_.cs @@ -229,8 +229,7 @@ public class GetIceServerConfigPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+")] public string ChannelARN { get; set; } @@ -241,8 +240,7 @@ public class GetIceServerConfigPostBody /// Pattern: [a-zA-Z0-9_.-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.-]+")] public string ClientId { get; set; } @@ -259,8 +257,7 @@ public class GetIceServerConfigPostBody /// Pattern: [a-zA-Z0-9_.-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.-]+")] public string Username { get; set; } } @@ -277,8 +274,7 @@ public class SendAlexaOfferToMasterPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+")] public string ChannelARN { get; set; } @@ -291,8 +287,7 @@ public class SendAlexaOfferToMasterPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.-]+")] public string SenderClientId { get; set; } @@ -305,8 +300,7 @@ public class SendAlexaOfferToMasterPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10000)] + [System.ComponentModel.DataAnnotations.Length(1, 10000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9+/=]+")] public string MessagePayload { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_kinesisvideo_2017_09_30_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_kinesisvideo_2017_09_30_.cs index fd838473..f3fa9692 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_kinesisvideo_2017_09_30_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_kinesisvideo_2017_09_30_.cs @@ -2515,8 +2515,7 @@ public class CreateSignalingChannelPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.-]+")] public string ChannelName { get; set; } @@ -2538,8 +2537,7 @@ public class CreateSignalingChannelPostBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public Tag[] Tags { get; set; } } @@ -2560,8 +2558,7 @@ public class CreateStreamPostBody /// Pattern: [a-zA-Z0-9_.-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.-]+")] public string DeviceName { get; set; } @@ -2574,8 +2571,7 @@ public class CreateStreamPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.-]+")] public string StreamName { get; set; } @@ -2586,8 +2582,7 @@ public class CreateStreamPostBody /// Pattern: [\w\-\.\+]+/[\w\-\.\+]+(,[\w\-\.\+]+/[\w\-\.\+]+)* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\w\-\.\+]+/[\w\-\.\+]+(,[\w\-\.\+]+/[\w\-\.\+]+)*")] public string MediaType { get; set; } @@ -2598,8 +2593,7 @@ public class CreateStreamPostBody /// Pattern: .+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".+")] public string KmsKeyId { get; set; } @@ -2628,8 +2622,7 @@ public class DeleteEdgeConfigurationPostBody /// Pattern: [a-zA-Z0-9_.-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.-]+")] public string StreamName { get; set; } @@ -2640,8 +2633,7 @@ public class DeleteEdgeConfigurationPostBody /// Pattern: arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+")] public string StreamARN { get; set; } } @@ -2658,8 +2650,7 @@ public class DeleteSignalingChannelPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+")] public string ChannelARN { get; set; } @@ -2670,8 +2661,7 @@ public class DeleteSignalingChannelPostBody /// Pattern: [a-zA-Z0-9]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9]+")] public string CurrentVersion { get; set; } } @@ -2688,8 +2678,7 @@ public class DeleteStreamPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+")] public string StreamARN { get; set; } @@ -2700,8 +2689,7 @@ public class DeleteStreamPostBody /// Pattern: [a-zA-Z0-9]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9]+")] public string CurrentVersion { get; set; } } @@ -2716,8 +2704,7 @@ public class DescribeEdgeConfigurationPostBody /// Pattern: [a-zA-Z0-9_.-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.-]+")] public string StreamName { get; set; } @@ -2728,8 +2715,7 @@ public class DescribeEdgeConfigurationPostBody /// Pattern: arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+")] public string StreamARN { get; set; } } @@ -2744,8 +2730,7 @@ public class DescribeImageGenerationConfigurationPostBody /// Pattern: [a-zA-Z0-9_.-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.-]+")] public string StreamName { get; set; } @@ -2756,8 +2741,7 @@ public class DescribeImageGenerationConfigurationPostBody /// Pattern: arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+")] public string StreamARN { get; set; } } @@ -2772,8 +2756,7 @@ public class DescribeMappedResourceConfigurationPostBody /// Pattern: [a-zA-Z0-9_.-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.-]+")] public string StreamName { get; set; } @@ -2784,8 +2767,7 @@ public class DescribeMappedResourceConfigurationPostBody /// Pattern: arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+")] public string StreamARN { get; set; } @@ -2805,8 +2787,7 @@ public class DescribeMappedResourceConfigurationPostBody /// Pattern: [a-zA-Z0-9+/=]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(0, 512)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9+/=]*")] public string NextToken { get; set; } } @@ -2821,8 +2802,7 @@ public class DescribeMediaStorageConfigurationPostBody /// Pattern: [a-zA-Z0-9_.-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.-]+")] public string ChannelName { get; set; } @@ -2833,8 +2813,7 @@ public class DescribeMediaStorageConfigurationPostBody /// Pattern: arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+")] public string ChannelARN { get; set; } } @@ -2849,8 +2828,7 @@ public class DescribeNotificationConfigurationPostBody /// Pattern: [a-zA-Z0-9_.-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.-]+")] public string StreamName { get; set; } @@ -2861,8 +2839,7 @@ public class DescribeNotificationConfigurationPostBody /// Pattern: arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+")] public string StreamARN { get; set; } } @@ -2877,8 +2854,7 @@ public class DescribeSignalingChannelPostBody /// Pattern: [a-zA-Z0-9_.-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.-]+")] public string ChannelName { get; set; } @@ -2889,8 +2865,7 @@ public class DescribeSignalingChannelPostBody /// Pattern: arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+")] public string ChannelARN { get; set; } } @@ -2905,8 +2880,7 @@ public class DescribeStreamPostBody /// Pattern: [a-zA-Z0-9_.-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.-]+")] public string StreamName { get; set; } @@ -2917,8 +2891,7 @@ public class DescribeStreamPostBody /// Pattern: arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+")] public string StreamARN { get; set; } } @@ -2933,8 +2906,7 @@ public class GetDataEndpointPostBody /// Pattern: [a-zA-Z0-9_.-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.-]+")] public string StreamName { get; set; } @@ -2945,8 +2917,7 @@ public class GetDataEndpointPostBody /// Pattern: arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+")] public string StreamARN { get; set; } @@ -2971,8 +2942,7 @@ public class GetSignalingChannelEndpointPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+")] public string ChannelARN { get; set; } @@ -3005,8 +2975,7 @@ public class ListEdgeAgentConfigurationsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z\d-]+:iot:[a-z0-9-]+:[0-9]+:thing/[a-zA-Z0-9_.-]+")] public string HubDeviceArn { get; set; } @@ -3026,8 +2995,7 @@ public class ListEdgeAgentConfigurationsPostBody /// Pattern: [a-zA-Z0-9+/=]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(0, 512)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9+/=]*")] public string NextToken { get; set; } } @@ -3051,8 +3019,7 @@ public class ListSignalingChannelsPostBody /// Pattern: [a-zA-Z0-9+/=]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(0, 512)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9+/=]*")] public string NextToken { get; set; } @@ -3092,8 +3059,7 @@ public class ListStreamsPostBody /// Pattern: [a-zA-Z0-9+/=]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(0, 512)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9+/=]*")] public string NextToken { get; set; } @@ -3124,8 +3090,7 @@ public class ListTagsForResourcePostBody /// Pattern: [a-zA-Z0-9+/=]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(0, 512)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9+/=]*")] public string NextToken { get; set; } @@ -3138,8 +3103,7 @@ public class ListTagsForResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+")] public string ResourceARN { get; set; } } @@ -3154,8 +3118,7 @@ public class ListTagsForStreamPostBody /// Pattern: [a-zA-Z0-9+/=]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(0, 512)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9+/=]*")] public string NextToken { get; set; } @@ -3166,8 +3129,7 @@ public class ListTagsForStreamPostBody /// Pattern: arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+")] public string StreamARN { get; set; } @@ -3178,8 +3140,7 @@ public class ListTagsForStreamPostBody /// Pattern: [a-zA-Z0-9_.-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.-]+")] public string StreamName { get; set; } } @@ -3194,8 +3155,7 @@ public class StartEdgeConfigurationUpdatePostBody /// Pattern: [a-zA-Z0-9_.-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.-]+")] public string StreamName { get; set; } @@ -3206,8 +3166,7 @@ public class StartEdgeConfigurationUpdatePostBody /// Pattern: arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+")] public string StreamARN { get; set; } @@ -3248,8 +3207,7 @@ public class TagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+")] public string ResourceARN { get; set; } @@ -3261,8 +3219,7 @@ public class TagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public Tag[] Tags { get; set; } } @@ -3276,8 +3233,7 @@ public class TagStreamPostBody /// Pattern: arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+")] public string StreamARN { get; set; } @@ -3288,8 +3244,7 @@ public class TagStreamPostBody /// Pattern: [a-zA-Z0-9_.-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.-]+")] public string StreamName { get; set; } @@ -3314,8 +3269,7 @@ public class UntagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+")] public string ResourceARN { get; set; } @@ -3327,8 +3281,7 @@ public class UntagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string[] TagKeyList { get; set; } } @@ -3342,8 +3295,7 @@ public class UntagStreamPostBody /// Pattern: arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+")] public string StreamARN { get; set; } @@ -3354,8 +3306,7 @@ public class UntagStreamPostBody /// Pattern: [a-zA-Z0-9_.-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.-]+")] public string StreamName { get; set; } @@ -3367,8 +3318,7 @@ public class UntagStreamPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string[] TagKeyList { get; set; } } @@ -3382,8 +3332,7 @@ public class UpdateDataRetentionPostBody /// Pattern: [a-zA-Z0-9_.-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.-]+")] public string StreamName { get; set; } @@ -3394,8 +3343,7 @@ public class UpdateDataRetentionPostBody /// Pattern: arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+")] public string StreamARN { get; set; } @@ -3408,8 +3356,7 @@ public class UpdateDataRetentionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9]+")] public string CurrentVersion { get; set; } @@ -3442,8 +3389,7 @@ public class UpdateImageGenerationConfigurationPostBody /// Pattern: [a-zA-Z0-9_.-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.-]+")] public string StreamName { get; set; } @@ -3454,8 +3400,7 @@ public class UpdateImageGenerationConfigurationPostBody /// Pattern: arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+")] public string StreamARN { get; set; } @@ -3506,8 +3451,7 @@ public class UpdateMediaStorageConfigurationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+")] public string ChannelARN { get; set; } @@ -3540,8 +3484,7 @@ public class UpdateNotificationConfigurationPostBody /// Pattern: [a-zA-Z0-9_.-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.-]+")] public string StreamName { get; set; } @@ -3552,8 +3495,7 @@ public class UpdateNotificationConfigurationPostBody /// Pattern: arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+")] public string StreamARN { get; set; } @@ -3586,8 +3528,7 @@ public class UpdateSignalingChannelPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+")] public string ChannelARN { get; set; } @@ -3600,8 +3541,7 @@ public class UpdateSignalingChannelPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9]+")] public string CurrentVersion { get; set; } @@ -3629,8 +3569,7 @@ public class UpdateStreamPostBody /// Pattern: [a-zA-Z0-9_.-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.-]+")] public string StreamName { get; set; } @@ -3641,8 +3580,7 @@ public class UpdateStreamPostBody /// Pattern: arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+")] public string StreamARN { get; set; } @@ -3655,8 +3593,7 @@ public class UpdateStreamPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9]+")] public string CurrentVersion { get; set; } @@ -3667,8 +3604,7 @@ public class UpdateStreamPostBody /// Pattern: [a-zA-Z0-9_.-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.-]+")] public string DeviceName { get; set; } @@ -3679,8 +3615,7 @@ public class UpdateStreamPostBody /// Pattern: [\w\-\.\+]+/[\w\-\.\+]+(,[\w\-\.\+]+/[\w\-\.\+]+)* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\w\-\.\+]+/[\w\-\.\+]+(,[\w\-\.\+]+/[\w\-\.\+]+)*")] public string MediaType { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_lakeformation_2017_03_31_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_lakeformation_2017_03_31_.cs index 38edcd04..e56ce754 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_lakeformation_2017_03_31_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_lakeformation_2017_03_31_.cs @@ -4026,8 +4026,7 @@ public class AddLFTagsToResourcePostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string CatalogId { get; set; } /// @@ -4046,8 +4045,7 @@ public class AddLFTagsToResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public LFTagPair[] LFTags { get; set; } } @@ -4090,8 +4088,7 @@ public class AssumeDecoratedRoleWithSAMLPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(4)] - [System.ComponentModel.DataAnnotations.MaxLength(100000)] + [System.ComponentModel.DataAnnotations.Length(4, 100000)] public string SAMLAssertion { get; set; } /// @@ -4133,8 +4130,7 @@ public class BatchGrantPermissionsPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string CatalogId { get; set; } /// @@ -4155,8 +4151,7 @@ public class BatchRevokePermissionsPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string CatalogId { get; set; } /// @@ -4180,8 +4175,7 @@ public class CancelTransactionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\p{L}\p{N}\p{P}]*")] public string TransactionId { get; set; } } @@ -4198,8 +4192,7 @@ public class CommitTransactionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\p{L}\p{N}\p{P}]*")] public string TransactionId { get; set; } } @@ -4253,8 +4246,7 @@ public class CreateLFTagPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string CatalogId { get; set; } /// @@ -4266,8 +4258,7 @@ public class CreateLFTagPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^([\p{L}\p{Z}\p{N}_.:\/=+\-@%]*)$")] public string TagKey { get; set; } @@ -4279,8 +4270,7 @@ public class CreateLFTagPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string[] TagValues { get; set; } } @@ -4293,8 +4283,7 @@ public class DeleteDataCellsFilterPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string TableCatalogId { get; set; } /// @@ -4303,8 +4292,7 @@ public class DeleteDataCellsFilterPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string DatabaseName { get; set; } /// @@ -4313,8 +4301,7 @@ public class DeleteDataCellsFilterPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string TableName { get; set; } /// @@ -4323,8 +4310,7 @@ public class DeleteDataCellsFilterPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } } @@ -4337,8 +4323,7 @@ public class DeleteLFTagPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string CatalogId { get; set; } /// @@ -4350,8 +4335,7 @@ public class DeleteLFTagPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^([\p{L}\p{Z}\p{N}_.:\/=+\-@%]*)$")] public string TagKey { get; set; } } @@ -4365,8 +4349,7 @@ public class DeleteObjectsOnCancelPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string CatalogId { get; set; } /// @@ -4377,8 +4360,7 @@ public class DeleteObjectsOnCancelPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string DatabaseName { get; set; } /// @@ -4389,8 +4371,7 @@ public class DeleteObjectsOnCancelPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string TableName { get; set; } /// @@ -4402,8 +4383,7 @@ public class DeleteObjectsOnCancelPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\p{L}\p{N}\p{P}]*")] public string TransactionId { get; set; } @@ -4415,8 +4395,7 @@ public class DeleteObjectsOnCancelPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public VirtualObject[] Objects { get; set; } } @@ -4456,8 +4435,7 @@ public class DescribeTransactionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\p{L}\p{N}\p{P}]*")] public string TransactionId { get; set; } } @@ -4472,8 +4450,7 @@ public class ExtendTransactionPostBody /// Pattern: [\p{L}\p{N}\p{P}]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\p{L}\p{N}\p{P}]*")] public string TransactionId { get; set; } } @@ -4489,8 +4466,7 @@ public class GetDataCellsFilterPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string TableCatalogId { get; set; } /// @@ -4501,8 +4477,7 @@ public class GetDataCellsFilterPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string DatabaseName { get; set; } /// @@ -4513,8 +4488,7 @@ public class GetDataCellsFilterPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string TableName { get; set; } /// @@ -4525,8 +4499,7 @@ public class GetDataCellsFilterPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } } @@ -4539,8 +4512,7 @@ public class GetDataLakeSettingsPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string CatalogId { get; set; } } @@ -4553,8 +4525,7 @@ public class GetEffectivePermissionsForPathPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string CatalogId { get; set; } /// @@ -4590,8 +4561,7 @@ public class GetLFTagPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string CatalogId { get; set; } /// @@ -4603,8 +4573,7 @@ public class GetLFTagPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^([\p{L}\p{Z}\p{N}_.:\/=+\-@%]*)$")] public string TagKey { get; set; } } @@ -4620,8 +4589,7 @@ public class GetQueryStatePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] public string QueryId { get; set; } } @@ -4636,8 +4604,7 @@ public class GetQueryStatisticsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] public string QueryId { get; set; } } @@ -4650,8 +4617,7 @@ public class GetResourceLFTagsPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string CatalogId { get; set; } /// @@ -4706,8 +4672,7 @@ public class GetTableObjectsPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string CatalogId { get; set; } /// @@ -4718,8 +4683,7 @@ public class GetTableObjectsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string DatabaseName { get; set; } /// @@ -4730,8 +4694,7 @@ public class GetTableObjectsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string TableName { get; set; } /// @@ -4741,8 +4704,7 @@ public class GetTableObjectsPostBody /// Pattern: [\p{L}\p{N}\p{P}]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\p{L}\p{N}\p{P}]*")] public string TransactionId { get; set; } @@ -4758,8 +4720,7 @@ public class GetTableObjectsPostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] public string PartitionPredicate { get; set; } /// @@ -4826,8 +4787,7 @@ public class GetTemporaryGluePartitionCredentialsPostBody /// Maximum items: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public PermissionType[] SupportedPermissionTypes { get; set; } } @@ -4883,8 +4843,7 @@ public class GetTemporaryGlueTableCredentialsPostBody /// Maximum items: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public PermissionType[] SupportedPermissionTypes { get; set; } } @@ -4906,8 +4865,7 @@ public class GetWorkUnitResultsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] public string QueryId { get; set; } /// @@ -4954,8 +4912,7 @@ public class GetWorkUnitsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] public string QueryId { get; set; } } @@ -4968,8 +4925,7 @@ public class GrantPermissionsPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string CatalogId { get; set; } /// @@ -5088,8 +5044,7 @@ public class ListLFTagsPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string CatalogId { get; set; } /// @@ -5123,8 +5078,7 @@ public class ListPermissionsPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string CatalogId { get; set; } /// @@ -5166,8 +5120,7 @@ public class ListPermissionsPostBody /// Max length: 5 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(1, 5)] public string IncludeRelated { get; set; } } @@ -5215,8 +5168,7 @@ public class ListResourcesPostBody /// Maximum items: 20 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(1, 20)] public FilterCondition[] FilterConditionList { get; set; } /// @@ -5244,8 +5196,7 @@ public class ListTableStorageOptimizersPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string CatalogId { get; set; } /// @@ -5256,8 +5207,7 @@ public class ListTableStorageOptimizersPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string DatabaseName { get; set; } /// @@ -5268,8 +5218,7 @@ public class ListTableStorageOptimizersPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string TableName { get; set; } /// @@ -5303,8 +5252,7 @@ public class ListTransactionsPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string CatalogId { get; set; } /// @@ -5340,8 +5288,7 @@ public class PutDataLakeSettingsPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string CatalogId { get; set; } /// @@ -5428,8 +5375,7 @@ public class RemoveLFTagsFromResourcePostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string CatalogId { get; set; } /// @@ -5448,8 +5394,7 @@ public class RemoveLFTagsFromResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public LFTagPair[] LFTags { get; set; } } @@ -5490,8 +5435,7 @@ public class RevokePermissionsPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string CatalogId { get; set; } /// @@ -5584,8 +5528,7 @@ public class SearchDatabasesByLFTagsPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string CatalogId { get; set; } /// @@ -5621,8 +5564,7 @@ public class SearchTablesByLFTagsPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string CatalogId { get; set; } /// @@ -5734,8 +5676,7 @@ public class UpdateLFTagPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string CatalogId { get; set; } /// @@ -5747,8 +5688,7 @@ public class UpdateLFTagPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^([\p{L}\p{Z}\p{N}_.:\/=+\-@%]*)$")] public string TagKey { get; set; } @@ -5758,8 +5698,7 @@ public class UpdateLFTagPostBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string[] TagValuesToDelete { get; set; } /// @@ -5768,8 +5707,7 @@ public class UpdateLFTagPostBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string[] TagValuesToAdd { get; set; } } @@ -5810,8 +5748,7 @@ public class UpdateTableObjectsPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string CatalogId { get; set; } /// @@ -5822,8 +5759,7 @@ public class UpdateTableObjectsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string DatabaseName { get; set; } /// @@ -5834,8 +5770,7 @@ public class UpdateTableObjectsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string TableName { get; set; } /// @@ -5845,8 +5780,7 @@ public class UpdateTableObjectsPostBody /// Pattern: [\p{L}\p{N}\p{P}]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\p{L}\p{N}\p{P}]*")] public string TransactionId { get; set; } @@ -5858,8 +5792,7 @@ public class UpdateTableObjectsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public WriteOperation[] WriteOperations { get; set; } } @@ -5872,8 +5805,7 @@ public class UpdateTableStorageOptimizerPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string CatalogId { get; set; } /// @@ -5884,8 +5816,7 @@ public class UpdateTableStorageOptimizerPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string DatabaseName { get; set; } /// @@ -5896,8 +5827,7 @@ public class UpdateTableStorageOptimizerPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string TableName { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_lambda_2014_11_11_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_lambda_2014_11_11_.cs index 205f8c4b..9da86f3f 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_lambda_2014_11_11_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_lambda_2014_11_11_.cs @@ -740,8 +740,7 @@ public class AddEventSourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9-_]+")] public string FunctionName { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_lambda_2015_03_31_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_lambda_2015_03_31_.cs index 26791177..c4feea11 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_lambda_2015_03_31_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_lambda_2015_03_31_.cs @@ -5404,8 +5404,7 @@ public class AddLayerVersionPermissionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"([a-zA-Z0-9-_]+)")] public string StatementId { get; set; } @@ -5454,8 +5453,7 @@ public class AddPermissionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"([a-zA-Z0-9-_]+)")] public string StatementId { get; set; } @@ -5504,8 +5502,7 @@ public class AddPermissionPostBody /// Pattern: [a-zA-Z0-9._\-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9._\-]+")] public string EventSourceToken { get; set; } @@ -5522,8 +5519,7 @@ public class AddPermissionPostBody /// Pattern: ^o-[a-z0-9]{10,32}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(12, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^o-[a-z0-9]{10,32}$")] public string PrincipalOrgID { get; set; } @@ -5546,8 +5542,7 @@ public class CreateAliasPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(?!^[0-9]+$)([a-zA-Z0-9-_]+)")] public string Name { get; set; } @@ -5560,8 +5555,7 @@ public class CreateAliasPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(\$LATEST|[0-9]+)")] public string FunctionVersion { get; set; } @@ -5571,8 +5565,7 @@ public class CreateAliasPostBody /// Max length: 256 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string Description { get; set; } /// @@ -5598,8 +5591,7 @@ public class CreateCodeSigningConfigPostBody /// Max length: 256 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string Description { get; set; } /// @@ -5651,8 +5643,7 @@ public class CreateEventSourceMappingPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}(-gov)?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?")] public string FunctionName { get; set; } @@ -5752,8 +5743,7 @@ public class CreateEventSourceMappingPostBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public string[] Topics { get; set; } /// @@ -5762,8 +5752,7 @@ public class CreateEventSourceMappingPostBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public string[] Queues { get; set; } /// @@ -5772,8 +5761,7 @@ public class CreateEventSourceMappingPostBody /// Maximum items: 22 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(22)] + [System.ComponentModel.DataAnnotations.Length(0, 22)] public SourceAccessConfiguration[] SourceAccessConfigurations { get; set; } /// @@ -5788,8 +5776,7 @@ public class CreateEventSourceMappingPostBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(0, 1)] public FunctionResponseType[] FunctionResponseTypes { get; set; } /// @@ -5887,8 +5874,7 @@ public class CreateFunctionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}(-gov)?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?")] public string FunctionName { get; set; } @@ -5932,8 +5918,7 @@ public class CreateFunctionPostBody /// Max length: 256 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string Description { get; set; } /// @@ -6039,8 +6024,7 @@ public class CreateFunctionPostBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public Architecture[] Architectures { get; set; } /// @@ -6334,8 +6318,7 @@ public class UpdateAliasPutBody /// Pattern: (\$LATEST|[0-9]+) /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(\$LATEST|[0-9]+)")] public string FunctionVersion { get; set; } @@ -6345,8 +6328,7 @@ public class UpdateAliasPutBody /// Max length: 256 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string Description { get; set; } /// @@ -6378,8 +6360,7 @@ public class UpdateCodeSigningConfigPutBody /// Max length: 256 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string Description { get; set; } /// @@ -6419,8 +6400,7 @@ public class UpdateEventSourceMappingPutBody /// Pattern: (arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}(-gov)?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))? /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}(-gov)?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?")] public string FunctionName { get; set; } @@ -6499,8 +6479,7 @@ public class UpdateEventSourceMappingPutBody /// Maximum items: 22 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(22)] + [System.ComponentModel.DataAnnotations.Length(0, 22)] public SourceAccessConfiguration[] SourceAccessConfigurations { get; set; } /// @@ -6518,8 +6497,7 @@ public class UpdateEventSourceMappingPutBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(0, 1)] public FunctionResponseType[] FunctionResponseTypes { get; set; } /// @@ -6719,8 +6697,7 @@ public class UpdateFunctionConfigurationPutBody /// Max length: 256 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string Description { get; set; } /// @@ -7001,8 +6978,7 @@ public class PutRuntimeManagementConfigPutBody /// Pattern: ^arn:(aws[a-zA-Z-]*):lambda:[a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\d{1}::runtime:.+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(26)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(26, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:(aws[a-zA-Z-]*):lambda:[a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\d{1}::runtime:.+$")] public string RuntimeVersionArn { get; set; } } @@ -7136,8 +7112,7 @@ public class PublishLayerVersionPostBody /// Max length: 256 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string Description { get; set; } /// @@ -7316,8 +7291,7 @@ public class PublishVersionPostBody /// Max length: 256 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string Description { get; set; } /// @@ -7343,8 +7317,7 @@ public class UpdateFunctionCodePutBody /// Pattern: ^[0-9A-Za-z\.\-_]*(? [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(3, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9A-Za-z\.\-_]*(? [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string S3Key { get; set; } /// @@ -7364,8 +7336,7 @@ public class UpdateFunctionCodePutBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string S3ObjectVersion { get; set; } /// @@ -7398,8 +7369,7 @@ public class UpdateFunctionCodePutBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public Architecture[] Architectures { get; set; } } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_lex_models_2017_04_19_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_lex_models_2017_04_19_.cs index 6a2b3d77..52fe4393 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_lex_models_2017_04_19_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_lex_models_2017_04_19_.cs @@ -3852,8 +3852,7 @@ public class PutBotAliasPutBody /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public string Description { get; set; } /// @@ -3865,8 +3864,7 @@ public class PutBotAliasPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="botVersion")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\$LATEST|[0-9]+")] public string BotVersion { get; set; } @@ -3888,8 +3886,7 @@ public class PutBotAliasPutBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } } @@ -4001,8 +3998,7 @@ public class StartMigrationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="v1BotName")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(2, 50)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^([A-Za-z]_?)+$")] public string V1BotName { get; set; } @@ -4015,8 +4011,7 @@ public class StartMigrationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="v1BotVersion")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\$LATEST|[0-9]+")] public string V1BotVersion { get; set; } @@ -4029,8 +4024,7 @@ public class StartMigrationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="v2BotName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^([0-9a-zA-Z][_-]?)+$")] public string V2BotName { get; set; } @@ -4043,8 +4037,7 @@ public class StartMigrationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="v2BotRole")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:[\w\-]+:iam::[\d]{12}:role/.+$")] public string V2BotRole { get; set; } @@ -4075,8 +4068,7 @@ public class TagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } } @@ -4089,8 +4081,7 @@ public class PutBotPutBody /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public string Description { get; set; } /// @@ -4187,8 +4178,7 @@ public class PutBotPutBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } } @@ -4268,8 +4258,7 @@ public class PutIntentPutBody /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public string Description { get; set; } /// @@ -4278,8 +4267,7 @@ public class PutIntentPutBody /// Maximum items: 100 /// [System.Runtime.Serialization.DataMember(Name="slots")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public Slot[] Slots { get; set; } /// @@ -4288,8 +4276,7 @@ public class PutIntentPutBody /// Maximum items: 1500 /// [System.Runtime.Serialization.DataMember(Name="sampleUtterances")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1500)] + [System.ComponentModel.DataAnnotations.Length(0, 1500)] public string[] SampleUtterances { get; set; } /// @@ -4358,8 +4345,7 @@ public class PutIntentPutBody /// Maximum items: 5 /// [System.Runtime.Serialization.DataMember(Name="inputContexts")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(0, 5)] public InputContext[] InputContexts { get; set; } /// @@ -4368,8 +4354,7 @@ public class PutIntentPutBody /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="outputContexts")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(0, 10)] public OutputContext[] OutputContexts { get; set; } } @@ -4458,8 +4443,7 @@ public class PutSlotTypePutBody /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public string Description { get; set; } /// @@ -4468,8 +4452,7 @@ public class PutSlotTypePutBody /// Maximum items: 10000 /// [System.Runtime.Serialization.DataMember(Name="enumerationValues")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10000)] + [System.ComponentModel.DataAnnotations.Length(0, 10000)] public EnumerationValue[] EnumerationValues { get; set; } /// @@ -4497,8 +4480,7 @@ public class PutSlotTypePutBody /// Pattern: ^((AMAZON\.)_?|[A-Za-z]_?)+ /// [System.Runtime.Serialization.DataMember(Name="parentSlotTypeSignature")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^((AMAZON\.)_?|[A-Za-z]_?)+")] public string ParentSlotTypeSignature { get; set; } @@ -4508,8 +4490,7 @@ public class PutSlotTypePutBody /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="slotTypeConfigurations")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(0, 10)] public SlotTypeConfiguration[] SlotTypeConfigurations { get; set; } } @@ -4546,8 +4527,7 @@ public class StartImportPostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_license_manager_linux_subscriptions_2018_05_10_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_license_manager_linux_subscriptions_2018_05_10_.cs index c1a62dcf..34849fce 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_license_manager_linux_subscriptions_2018_05_10_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_license_manager_linux_subscriptions_2018_05_10_.cs @@ -462,8 +462,7 @@ public class ListLinuxSubscriptionInstancesPostBody /// Max length: 16384 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(16384)] + [System.ComponentModel.DataAnnotations.Length(1, 16384)] public string NextToken { get; set; } } @@ -488,8 +487,7 @@ public class ListLinuxSubscriptionsPostBody /// Max length: 16384 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(16384)] + [System.ComponentModel.DataAnnotations.Length(1, 16384)] public string NextToken { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_location_2020_11_19_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_location_2020_11_19_.cs index ddcd0740..697393ee 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_location_2020_11_19_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_location_2020_11_19_.cs @@ -5458,8 +5458,7 @@ public class AssociateTrackerConsumerPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(0, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn(:[a-z0-9]+([.-][a-z0-9]+)*){2}(:([a-z0-9]+([.-][a-z0-9]+)*)?){2}:([^/].*)?$")] public string ConsumerArn { get; set; } } @@ -5475,8 +5474,7 @@ public class BatchDeleteDevicePositionHistoryPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] DeviceIds { get; set; } } @@ -5491,8 +5489,7 @@ public class BatchDeleteGeofencePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public string[] GeofenceIds { get; set; } } @@ -5507,8 +5504,7 @@ public class BatchEvaluateGeofencesPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public DevicePositionUpdate[] DevicePositionUpdates { get; set; } } @@ -5523,8 +5519,7 @@ public class BatchGetDevicePositionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public string[] DeviceIds { get; set; } } @@ -5539,8 +5534,7 @@ public class BatchPutGeofencePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public BatchPutGeofenceRequestEntry[] Entries { get; set; } } @@ -5555,8 +5549,7 @@ public class BatchUpdateDevicePositionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public DevicePositionUpdate[] Updates { get; set; } } @@ -5583,8 +5576,7 @@ public class CalculateRoutePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] public double[] DeparturePosition { get; set; } /// @@ -5601,8 +5593,7 @@ public class CalculateRoutePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] public double[] DestinationPosition { get; set; } /// @@ -5635,8 +5626,7 @@ public class CalculateRoutePostBody /// Maximum items: 23 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(23)] + [System.ComponentModel.DataAnnotations.Length(0, 23)] public double[][] WaypointPositions { get; set; } } @@ -5689,8 +5679,7 @@ public class CalculateRouteMatrixPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public double[][] DeparturePositions { get; set; } /// @@ -5707,8 +5696,7 @@ public class CalculateRouteMatrixPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public double[][] DestinationPositions { get; set; } /// @@ -5768,8 +5756,7 @@ public class CreateGeofenceCollectionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[-._\w]+$")] public string CollectionName { get; set; } @@ -5779,8 +5766,7 @@ public class CreateGeofenceCollectionPostBody /// Max length: 1000 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] public string Description { get; set; } /// @@ -5789,8 +5775,7 @@ public class CreateGeofenceCollectionPostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string KmsKeyId { get; set; } /// @@ -5821,8 +5806,7 @@ public class CreateKeyPostBody /// Max length: 1000 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] public string Description { get; set; } /// @@ -5840,8 +5824,7 @@ public class CreateKeyPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[-._\w]+$")] public string KeyName { get; set; } @@ -5896,8 +5879,7 @@ public class CreateMapPostBody /// Max length: 1000 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] public string Description { get; set; } /// @@ -5909,8 +5891,7 @@ public class CreateMapPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[-._\w]+$")] public string MapName { get; set; } @@ -5960,8 +5941,7 @@ public class CreatePlaceIndexPostBody /// Max length: 1000 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] public string Description { get; set; } /// @@ -5973,8 +5953,7 @@ public class CreatePlaceIndexPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[-._\w]+$")] public string IndexName { get; set; } @@ -6010,8 +5989,7 @@ public class CreateRouteCalculatorPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[-._\w]+$")] public string CalculatorName { get; set; } @@ -6029,8 +6007,7 @@ public class CreateRouteCalculatorPostBody /// Max length: 1000 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] public string Description { get; set; } /// @@ -6055,8 +6032,7 @@ public class CreateTrackerPostBody /// Max length: 1000 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] public string Description { get; set; } /// @@ -6071,8 +6047,7 @@ public class CreateTrackerPostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string KmsKeyId { get; set; } /// @@ -6108,8 +6083,7 @@ public class CreateTrackerPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[-._\w]+$")] public string TrackerName { get; set; } } @@ -6123,8 +6097,7 @@ public class UpdateGeofenceCollectionPatchBody /// Max length: 1000 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] public string Description { get; set; } /// @@ -6149,8 +6122,7 @@ public class UpdateKeyPatchBody /// Max length: 1000 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] public string Description { get; set; } /// @@ -6206,8 +6178,7 @@ public class UpdateMapPatchBody /// Max length: 1000 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] public string Description { get; set; } /// @@ -6239,8 +6210,7 @@ public class UpdatePlaceIndexPatchBody /// Max length: 1000 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] public string Description { get; set; } /// @@ -6266,8 +6236,7 @@ public class UpdateRouteCalculatorPatchBody /// Max length: 1000 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] public string Description { get; set; } /// @@ -6286,8 +6255,7 @@ public class UpdateTrackerPatchBody /// Max length: 1000 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] public string Description { get; set; } /// @@ -6339,8 +6307,7 @@ public class GetDevicePositionHistoryPostBody /// Max length: 2000 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2000)] + [System.ComponentModel.DataAnnotations.Length(1, 2000)] public string NextToken { get; set; } /// @@ -6396,8 +6363,7 @@ public class ListDevicePositionsPostBody /// Max length: 2000 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2000)] + [System.ComponentModel.DataAnnotations.Length(1, 2000)] public string NextToken { get; set; } } @@ -6419,8 +6385,7 @@ public class ListGeofenceCollectionsPostBody /// Max length: 2000 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2000)] + [System.ComponentModel.DataAnnotations.Length(1, 2000)] public string NextToken { get; set; } } @@ -6442,8 +6407,7 @@ public class ListGeofencesPostBody /// Max length: 2000 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2000)] + [System.ComponentModel.DataAnnotations.Length(1, 2000)] public string NextToken { get; set; } } @@ -6471,8 +6435,7 @@ public class ListKeysPostBody /// Max length: 2000 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2000)] + [System.ComponentModel.DataAnnotations.Length(1, 2000)] public string NextToken { get; set; } } @@ -6501,8 +6464,7 @@ public class ListMapsPostBody /// Max length: 2000 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2000)] + [System.ComponentModel.DataAnnotations.Length(1, 2000)] public string NextToken { get; set; } } @@ -6524,8 +6486,7 @@ public class ListPlaceIndexesPostBody /// Max length: 2000 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2000)] + [System.ComponentModel.DataAnnotations.Length(1, 2000)] public string NextToken { get; set; } } @@ -6547,8 +6508,7 @@ public class ListRouteCalculatorsPostBody /// Max length: 2000 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2000)] + [System.ComponentModel.DataAnnotations.Length(1, 2000)] public string NextToken { get; set; } } @@ -6582,8 +6542,7 @@ public class ListTrackerConsumersPostBody /// Max length: 2000 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2000)] + [System.ComponentModel.DataAnnotations.Length(1, 2000)] public string NextToken { get; set; } } @@ -6605,8 +6564,7 @@ public class ListTrackersPostBody /// Max length: 2000 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2000)] + [System.ComponentModel.DataAnnotations.Length(1, 2000)] public string NextToken { get; set; } } @@ -6619,8 +6577,7 @@ public class SearchPlaceIndexForPositionPostBody /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(2, 35)] public string Language { get; set; } /// @@ -6640,8 +6597,7 @@ public class SearchPlaceIndexForPositionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] public double[] Position { get; set; } } @@ -6654,8 +6610,7 @@ public class SearchPlaceIndexForSuggestionsPostBody /// Maximum items: 2 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] public double[] BiasPosition { get; set; } /// @@ -6664,8 +6619,7 @@ public class SearchPlaceIndexForSuggestionsPostBody /// Maximum items: 4 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(4)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(4, 4)] public double[] FilterBBox { get; set; } /// @@ -6674,8 +6628,7 @@ public class SearchPlaceIndexForSuggestionsPostBody /// Maximum items: 5 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(1, 5)] public string[] FilterCategories { get; set; } /// @@ -6684,8 +6637,7 @@ public class SearchPlaceIndexForSuggestionsPostBody /// Maximum items: 100 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] FilterCountries { get; set; } /// @@ -6694,8 +6646,7 @@ public class SearchPlaceIndexForSuggestionsPostBody /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(2, 35)] public string Language { get; set; } /// @@ -6715,8 +6666,7 @@ public class SearchPlaceIndexForSuggestionsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Text { get; set; } } @@ -6729,8 +6679,7 @@ public class SearchPlaceIndexForTextPostBody /// Maximum items: 2 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] public double[] BiasPosition { get; set; } /// @@ -6739,8 +6688,7 @@ public class SearchPlaceIndexForTextPostBody /// Maximum items: 4 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(4)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(4, 4)] public double[] FilterBBox { get; set; } /// @@ -6749,8 +6697,7 @@ public class SearchPlaceIndexForTextPostBody /// Maximum items: 5 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(1, 5)] public string[] FilterCategories { get; set; } /// @@ -6759,8 +6706,7 @@ public class SearchPlaceIndexForTextPostBody /// Maximum items: 100 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] FilterCountries { get; set; } /// @@ -6769,8 +6715,7 @@ public class SearchPlaceIndexForTextPostBody /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(2, 35)] public string Language { get; set; } /// @@ -6790,8 +6735,7 @@ public class SearchPlaceIndexForTextPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Text { get; set; } } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_logs_2014_03_28_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_logs_2014_03_28_.cs index da455a39..db4ea0f3 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_logs_2014_03_28_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_logs_2014_03_28_.cs @@ -789,8 +789,7 @@ public class MetricFilter /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="filterPattern")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] public string FilterPattern { get; set; } [System.Runtime.Serialization.DataMember(Name="metricTransformations")] @@ -1184,8 +1183,7 @@ public class SubscriptionFilter /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="filterPattern")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] public string FilterPattern { get; set; } [System.Runtime.Serialization.DataMember(Name="destinationArn")] @@ -2125,8 +2123,7 @@ public class TestMetricFilterRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="filterPattern")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] public string FilterPattern { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_lookoutmetrics_2017_07_25_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_lookoutmetrics_2017_07_25_.cs index 3ab97239..b23ccd62 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_lookoutmetrics_2017_07_25_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_lookoutmetrics_2017_07_25_.cs @@ -3232,8 +3232,7 @@ public class CreateAlertPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9][a-zA-Z0-9\-_]*")] public string AlertName { get; set; } @@ -3321,8 +3320,7 @@ public class CreateAnomalyDetectorPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9][a-zA-Z0-9\-_]*")] public string AnomalyDetectorName { get; set; } @@ -3333,8 +3331,7 @@ public class CreateAnomalyDetectorPostBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string AnomalyDetectorDescription { get; set; } @@ -3353,8 +3350,7 @@ public class CreateAnomalyDetectorPostBody /// Pattern: arn:aws.*:kms:.*:[0-9]{12}:key/[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws.*:kms:.*:[0-9]{12}:key/[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}")] public string KmsKeyArn { get; set; } @@ -3396,8 +3392,7 @@ public class CreateMetricSetPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9][a-zA-Z0-9\-_]*")] public string MetricSetName { get; set; } @@ -3408,8 +3403,7 @@ public class CreateMetricSetPostBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string MetricSetDescription { get; set; } @@ -3623,8 +3617,7 @@ public class DescribeAnomalyDetectionExecutionsPostBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(3000)] + [System.ComponentModel.DataAnnotations.Length(1, 3000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string NextToken { get; set; } } @@ -3785,8 +3778,7 @@ public class GetFeedbackPostBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(3000)] + [System.ComponentModel.DataAnnotations.Length(1, 3000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string NextToken { get; set; } } @@ -3850,8 +3842,7 @@ public class ListAlertsPostBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(3000)] + [System.ComponentModel.DataAnnotations.Length(1, 3000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string NextToken { get; set; } @@ -3884,8 +3875,7 @@ public class ListAnomalyDetectorsPostBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(3000)] + [System.ComponentModel.DataAnnotations.Length(1, 3000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string NextToken { get; set; } } @@ -3939,8 +3929,7 @@ public class ListAnomalyGroupRelatedMetricsPostBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(3000)] + [System.ComponentModel.DataAnnotations.Length(1, 3000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string NextToken { get; set; } } @@ -3987,8 +3976,7 @@ public class ListAnomalyGroupSummariesPostBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(3000)] + [System.ComponentModel.DataAnnotations.Length(1, 3000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string NextToken { get; set; } } @@ -4048,8 +4036,7 @@ public class ListAnomalyGroupTimeSeriesPostBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(3000)] + [System.ComponentModel.DataAnnotations.Length(1, 3000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string NextToken { get; set; } } @@ -4083,8 +4070,7 @@ public class ListMetricSetsPostBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(3000)] + [System.ComponentModel.DataAnnotations.Length(1, 3000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string NextToken { get; set; } } @@ -4227,8 +4213,7 @@ public class UpdateAnomalyDetectorPostBody /// Pattern: arn:aws.*:kms:.*:[0-9]{12}:key/[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws.*:kms:.*:[0-9]{12}:key/[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}")] public string KmsKeyArn { get; set; } @@ -4239,8 +4224,7 @@ public class UpdateAnomalyDetectorPostBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string AnomalyDetectorDescription { get; set; } @@ -4280,8 +4264,7 @@ public class UpdateMetricSetPostBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string MetricSetDescription { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_lookoutvision_2020_11_20_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_lookoutvision_2020_11_20_.cs index 21ef61d8..b3eb5faf 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_lookoutvision_2020_11_20_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_lookoutvision_2020_11_20_.cs @@ -1924,8 +1924,7 @@ public class CreateDatasetPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"train|test")] public string DatasetType { get; set; } @@ -1953,8 +1952,7 @@ public class CreateModelPostBody /// Pattern: [0-9A-Za-z\.\-_]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(1, 500)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9A-Za-z\.\-_]*")] public string Description { get; set; } @@ -1973,8 +1971,7 @@ public class CreateModelPostBody /// Pattern: ^[A-Za-z0-9][A-Za-z0-9:_/+=,@.-]{0,2048}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Za-z0-9][A-Za-z0-9:_/+=,@.-]{0,2048}$")] public string KmsKeyId { get; set; } @@ -1984,8 +1981,7 @@ public class CreateModelPostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } } @@ -2008,8 +2004,7 @@ public class CreateProjectPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9][a-zA-Z0-9_\-]*")] public string ProjectName { get; set; } } @@ -2037,8 +2032,7 @@ public class UpdateDatasetEntriesPatchBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10485760)] + [System.ComponentModel.DataAnnotations.Length(1, 10485760)] public string Changes { get; set; } } @@ -2054,8 +2048,7 @@ public class StartModelPackagingJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"([1-9][0-9]*|latest)")] public string ModelVersion { get; set; } @@ -2066,8 +2059,7 @@ public class StartModelPackagingJobPostBody /// Pattern: [a-zA-Z0-9-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9-]+")] public string JobName { get; set; } @@ -2086,8 +2078,7 @@ public class StartModelPackagingJobPostBody /// Pattern: [a-zA-Z0-9-_. ()':,;?]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9-_. ()':,;?]+")] public string Description { get; set; } } @@ -2110,8 +2101,7 @@ public class TagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_m2_2021_04_28_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_m2_2021_04_28_.cs index 4a2f790d..bb7371f7 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_m2_2021_04_28_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_m2_2021_04_28_.cs @@ -3340,8 +3340,7 @@ public class CreateApplicationPostBody /// Max length: 500 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] public string Description { get; set; } /// @@ -3466,8 +3465,7 @@ public class CreateEnvironmentPostBody /// Max length: 500 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] public string Description { get; set; } /// @@ -3589,8 +3587,7 @@ public class UpdateApplicationPatchBody /// Max length: 500 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] public string Description { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_machinelearning_2014_12_12_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_machinelearning_2014_12_12_.cs index 74143fb8..8e597ae3 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_machinelearning_2014_12_12_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_machinelearning_2014_12_12_.cs @@ -304,8 +304,7 @@ public class RDSDatabase /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string DatabaseName { get; set; } } @@ -324,8 +323,7 @@ public class RDSDatabaseCredentials /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Username { get; set; } /// @@ -336,8 +334,7 @@ public class RDSDatabaseCredentials /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(8)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(8, 128)] public string Password { get; set; } } @@ -445,8 +442,7 @@ public class RedshiftDatabase /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z0-9]+")] public string DatabaseName { get; set; } @@ -459,8 +455,7 @@ public class RedshiftDatabase /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z0-9-]+")] public string ClusterIdentifier { get; set; } } @@ -480,8 +475,7 @@ public class RedshiftDatabaseCredentials /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Username { get; set; } /// @@ -492,8 +486,7 @@ public class RedshiftDatabaseCredentials /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(8)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(8, 64)] public string Password { get; set; } } @@ -1150,8 +1143,7 @@ public class DataSource /// Max length: 110 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(110)] + [System.ComponentModel.DataAnnotations.Length(1, 110)] public string RoleARN { get; set; } [System.Runtime.Serialization.DataMember()] @@ -1195,8 +1187,7 @@ public class RedshiftMetadata /// Max length: 128 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string DatabaseUserName { get; set; } [System.Runtime.Serialization.DataMember()] @@ -1219,8 +1210,7 @@ public class RDSMetadata /// Max length: 128 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string DatabaseUserName { get; set; } [System.Runtime.Serialization.DataMember()] @@ -1770,8 +1760,7 @@ public class GetDataSourceOutput /// Max length: 110 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(110)] + [System.ComponentModel.DataAnnotations.Length(1, 110)] public string RoleARN { get; set; } [System.Runtime.Serialization.DataMember()] diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_macie2_2020_01_01_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_macie2_2020_01_01_.cs index ef301629..d9c8c3c6 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_macie2_2020_01_01_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_macie2_2020_01_01_.cs @@ -7769,8 +7769,7 @@ public class CreateAllowListPostBody /// Pattern: ^[\s\S]+$ /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\s\S]+$")] public string Description { get; set; } @@ -7783,8 +7782,7 @@ public class CreateAllowListPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^.+$")] public string Name { get; set; } @@ -8134,8 +8132,7 @@ public class UpdateAllowListPutBody /// Pattern: ^[\s\S]+$ /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\s\S]+$")] public string Description { get; set; } @@ -8148,8 +8145,7 @@ public class UpdateAllowListPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^.+$")] public string Name { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_managedblockchain_2018_09_24_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_managedblockchain_2018_09_24_.cs index 0e1bc7b1..2c2109da 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_managedblockchain_2018_09_24_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_managedblockchain_2018_09_24_.cs @@ -2541,8 +2541,7 @@ public class CreateAccessorPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string ClientRequestToken { get; set; } /// @@ -2571,8 +2570,7 @@ public class CreateMemberPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string ClientRequestToken { get; set; } /// @@ -2583,8 +2581,7 @@ public class CreateMemberPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] public string InvitationId { get; set; } /// @@ -2629,8 +2626,7 @@ public class CreateNetworkPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string ClientRequestToken { get; set; } /// @@ -2642,8 +2638,7 @@ public class CreateNetworkPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string Name { get; set; } @@ -2671,8 +2666,7 @@ public class CreateNetworkPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(8)] + [System.ComponentModel.DataAnnotations.Length(1, 8)] public string FrameworkVersion { get; set; } /// @@ -2751,8 +2745,7 @@ public class CreateNodePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string ClientRequestToken { get; set; } /// @@ -2761,8 +2754,7 @@ public class CreateNodePostBody /// Max length: 32 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] public string MemberId { get; set; } /// @@ -2807,8 +2799,7 @@ public class CreateProposalPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string ClientRequestToken { get; set; } /// @@ -2819,8 +2810,7 @@ public class CreateProposalPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] public string MemberId { get; set; } /// @@ -2882,8 +2872,7 @@ public class UpdateNodePatchBody /// Max length: 32 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] public string MemberId { get; set; } /// @@ -2911,8 +2900,7 @@ public class VoteOnProposalPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] public string VoterMemberId { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_managedblockchain_query_2023_05_04_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_managedblockchain_query_2023_05_04_.cs index b73ed906..8b9e497e 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_managedblockchain_query_2023_05_04_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_managedblockchain_query_2023_05_04_.cs @@ -1014,8 +1014,7 @@ public class BatchGetTokenBalancePostBody /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="getTokenBalanceInputs")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public BatchGetTokenBalanceInputItem[] GetTokenBalanceInputs { get; set; } } @@ -1117,8 +1116,7 @@ public class ListTokenBalancesPostBody /// Max length: 131070 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(131070)] + [System.ComponentModel.DataAnnotations.Length(0, 131070)] public string NextToken { get; set; } /// @@ -1178,8 +1176,7 @@ public class ListTransactionEventsPostBody /// Max length: 131070 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(131070)] + [System.ComponentModel.DataAnnotations.Length(0, 131070)] public string NextToken { get; set; } /// @@ -1237,8 +1234,7 @@ public class ListTransactionsPostBody /// Max length: 131070 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(131070)] + [System.ComponentModel.DataAnnotations.Length(0, 131070)] public string NextToken { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_marketplace_catalog_2018_09_17_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_marketplace_catalog_2018_09_17_.cs index 1a5365cd..0f227b7b 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_marketplace_catalog_2018_09_17_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_marketplace_catalog_2018_09_17_.cs @@ -1025,8 +1025,7 @@ public class ListChangeSetsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z]+$")] public string Catalog { get; set; } @@ -1036,8 +1035,7 @@ public class ListChangeSetsPostBody /// Maximum items: 8 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(8)] + [System.ComponentModel.DataAnnotations.Length(1, 8)] public Filter[] FilterList { get; set; } /// @@ -1062,8 +1060,7 @@ public class ListChangeSetsPostBody /// Pattern: ^[\w+=.:@\-\/]$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\w+=.:@\-\/]$")] public string NextToken { get; set; } } @@ -1090,8 +1087,7 @@ public class ListEntitiesPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z]+$")] public string Catalog { get; set; } @@ -1104,8 +1100,7 @@ public class ListEntitiesPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z]+$")] public string EntityType { get; set; } @@ -1115,8 +1110,7 @@ public class ListEntitiesPostBody /// Maximum items: 8 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(8)] + [System.ComponentModel.DataAnnotations.Length(1, 8)] public Filter[] FilterList { get; set; } /// @@ -1132,8 +1126,7 @@ public class ListEntitiesPostBody /// Pattern: ^[\w+=.:@\-\/]$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\w+=.:@\-\/]$")] public string NextToken { get; set; } @@ -1172,8 +1165,7 @@ public class ListTagsForResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:[\w+=/,.@-]+:aws-marketplace:[\w+=/,.@-]*:[0-9]+:[\w+=,.@-]+(/[\w+=,.@-]+)*$")] public string ResourceArn { get; set; } } @@ -1190,8 +1182,7 @@ public class PutResourcePolicyPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:[\w+=/,.@-]+:aws-marketplace:[\w+=/,.@-]*:[0-9]+:[\w+=,.@-]+(/[\w+=,.@-]+)*$")] public string ResourceArn { get; set; } @@ -1204,8 +1195,7 @@ public class PutResourcePolicyPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10240)] + [System.ComponentModel.DataAnnotations.Length(1, 10240)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\u0009\u000A\u000D\u0020-\u00FF]+$")] public string Policy { get; set; } } @@ -1222,8 +1212,7 @@ public class StartChangeSetPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z]+$")] public string Catalog { get; set; } @@ -1235,8 +1224,7 @@ public class StartChangeSetPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(1, 20)] public Change[] ChangeSet { get; set; } /// @@ -1246,8 +1234,7 @@ public class StartChangeSetPostBody /// Pattern: ^[\w\s+=.:@-]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\w\s+=.:@-]+$")] public string ChangeSetName { get; set; } @@ -1258,8 +1245,7 @@ public class StartChangeSetPostBody /// Pattern: ^[!-~]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[!-~]+$")] public string ClientRequestToken { get; set; } @@ -1269,8 +1255,7 @@ public class StartChangeSetPostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public Tag[] ChangeSetTags { get; set; } } @@ -1286,8 +1271,7 @@ public class TagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:[\w+=/,.@-]+:aws-marketplace:[\w+=/,.@-]*:[0-9]+:[\w+=,.@-]+(/[\w+=,.@-]+)*$")] public string ResourceArn { get; set; } @@ -1299,8 +1283,7 @@ public class TagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public Tag[] Tags { get; set; } } @@ -1316,8 +1299,7 @@ public class UntagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:[\w+=/,.@-]+:aws-marketplace:[\w+=/,.@-]*:[0-9]+:[\w+=,.@-]+(/[\w+=,.@-]+)*$")] public string ResourceArn { get; set; } @@ -1329,8 +1311,7 @@ public class UntagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string[] TagKeys { get; set; } } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_mediapackagev2_2022_12_25_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_mediapackagev2_2022_12_25_.cs index ebe0dc2d..257c6fe4 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_mediapackagev2_2022_12_25_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_mediapackagev2_2022_12_25_.cs @@ -2455,8 +2455,7 @@ public class CreateChannelPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_-]+")] public string ChannelName { get; set; } @@ -2466,8 +2465,7 @@ public class CreateChannelPostBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] public string Description { get; set; } /// @@ -2489,8 +2487,7 @@ public class CreateChannelGroupPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_-]+")] public string ChannelGroupName { get; set; } @@ -2500,8 +2497,7 @@ public class CreateChannelGroupPostBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] public string Description { get; set; } /// @@ -2523,8 +2519,7 @@ public class CreateOriginEndpointPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_-]+")] public string OriginEndpointName { get; set; } @@ -2548,8 +2543,7 @@ public class CreateOriginEndpointPostBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] public string Description { get; set; } /// @@ -2617,8 +2611,7 @@ public class UpdateChannelPutBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] public string Description { get; set; } } @@ -2631,8 +2624,7 @@ public class UpdateChannelGroupPutBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] public string Description { get; set; } } @@ -2647,8 +2639,7 @@ public class PutChannelPolicyPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(6144)] + [System.ComponentModel.DataAnnotations.Length(0, 6144)] public string Policy { get; set; } } @@ -2675,8 +2666,7 @@ public class UpdateOriginEndpointPutBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] public string Description { get; set; } /// @@ -2740,8 +2730,7 @@ public class PutOriginEndpointPolicyPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(6144)] + [System.ComponentModel.DataAnnotations.Length(0, 6144)] public string Policy { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_medical_imaging_2023_07_19_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_medical_imaging_2023_07_19_.cs index 28f1e011..950f399d 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_medical_imaging_2023_07_19_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_medical_imaging_2023_07_19_.cs @@ -1829,8 +1829,7 @@ public class CreateDatastorePostBody /// Pattern: [A-Za-z0-9._/#-]+ /// [System.Runtime.Serialization.DataMember(Name="datastoreName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-Za-z0-9._/#-]+")] public string DatastoreName { get; set; } @@ -1843,8 +1842,7 @@ public class CreateDatastorePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-Za-z0-9._-]+")] public string ClientToken { get; set; } @@ -1861,8 +1859,7 @@ public class CreateDatastorePostBody /// Pattern: arn:aws[a-zA-Z-]{0,16}:kms:[a-z]{2}(-[a-z]{1,16}){1,3}-\d{1}:\d{12}:((key/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12})|(alias/[a-zA-Z0-9:/_-]{1,256})) /// [System.Runtime.Serialization.DataMember(Name="kmsKeyArn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws[a-zA-Z-]{0,16}:kms:[a-z]{2}(-[a-z]{1,16}){1,3}-\d{1}:\d{12}:((key/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12})|(alias/[a-zA-Z0-9:/_-]{1,256}))")] public string KmsKeyArn { get; set; } } @@ -1925,8 +1922,7 @@ public class StartDICOMImportJobPostBody /// Pattern: [A-Za-z0-9._/#-]+ /// [System.Runtime.Serialization.DataMember(Name="jobName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-Za-z0-9._/#-]+")] public string JobName { get; set; } @@ -1939,8 +1935,7 @@ public class StartDICOMImportJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="dataAccessRoleArn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+")] public string DataAccessRoleArn { get; set; } @@ -1953,8 +1948,7 @@ public class StartDICOMImportJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-Za-z0-9._-]+")] public string ClientToken { get; set; } @@ -1967,8 +1961,7 @@ public class StartDICOMImportJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="inputS3Uri")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?")] public string InputS3Uri { get; set; } @@ -1981,8 +1974,7 @@ public class StartDICOMImportJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="outputS3Uri")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?")] public string OutputS3Uri { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_mgn_2020_02_26_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_mgn_2020_02_26_.cs index d2661b61..cfd3e7cb 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_mgn_2020_02_26_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_mgn_2020_02_26_.cs @@ -5858,8 +5858,7 @@ public class ArchiveApplicationPostBody /// Pattern: [0-9]{12,} /// [System.Runtime.Serialization.DataMember(Name="accountID")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12,}")] public string AccountID { get; set; } @@ -5872,8 +5871,7 @@ public class ArchiveApplicationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="applicationID")] - [System.ComponentModel.DataAnnotations.MinLength(21)] - [System.ComponentModel.DataAnnotations.MaxLength(21)] + [System.ComponentModel.DataAnnotations.Length(21, 21)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^app-[0-9a-zA-Z]{17}$")] public string ApplicationID { get; set; } } @@ -5888,8 +5886,7 @@ public class ArchiveWavePostBody /// Pattern: [0-9]{12,} /// [System.Runtime.Serialization.DataMember(Name="accountID")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12,}")] public string AccountID { get; set; } @@ -5902,8 +5899,7 @@ public class ArchiveWavePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="waveID")] - [System.ComponentModel.DataAnnotations.MinLength(22)] - [System.ComponentModel.DataAnnotations.MaxLength(22)] + [System.ComponentModel.DataAnnotations.Length(22, 22)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^wave-[0-9a-zA-Z]{17}$")] public string WaveID { get; set; } } @@ -5918,8 +5914,7 @@ public class AssociateApplicationsPostBody /// Pattern: [0-9]{12,} /// [System.Runtime.Serialization.DataMember(Name="accountID")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12,}")] public string AccountID { get; set; } @@ -5931,8 +5926,7 @@ public class AssociateApplicationsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="applicationIDs")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string[] ApplicationIDs { get; set; } /// @@ -5944,8 +5938,7 @@ public class AssociateApplicationsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="waveID")] - [System.ComponentModel.DataAnnotations.MinLength(22)] - [System.ComponentModel.DataAnnotations.MaxLength(22)] + [System.ComponentModel.DataAnnotations.Length(22, 22)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^wave-[0-9a-zA-Z]{17}$")] public string WaveID { get; set; } } @@ -5960,8 +5953,7 @@ public class AssociateSourceServersPostBody /// Pattern: [0-9]{12,} /// [System.Runtime.Serialization.DataMember(Name="accountID")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12,}")] public string AccountID { get; set; } @@ -5974,8 +5966,7 @@ public class AssociateSourceServersPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="applicationID")] - [System.ComponentModel.DataAnnotations.MinLength(21)] - [System.ComponentModel.DataAnnotations.MaxLength(21)] + [System.ComponentModel.DataAnnotations.Length(21, 21)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^app-[0-9a-zA-Z]{17}$")] public string ApplicationID { get; set; } @@ -5987,8 +5978,7 @@ public class AssociateSourceServersPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceServerIDs")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string[] SourceServerIDs { get; set; } } @@ -6002,8 +5992,7 @@ public class ChangeServerLifeCycleStatePostBody /// Pattern: [0-9]{12,} /// [System.Runtime.Serialization.DataMember(Name="accountID")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12,}")] public string AccountID { get; set; } @@ -6024,8 +6013,7 @@ public class ChangeServerLifeCycleStatePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceServerID")] - [System.ComponentModel.DataAnnotations.MinLength(19)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(19, 19)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^s-[0-9a-zA-Z]{17}$")] public string SourceServerID { get; set; } } @@ -6047,8 +6035,7 @@ public class CreateApplicationPostBody /// Pattern: [0-9]{12,} /// [System.Runtime.Serialization.DataMember(Name="accountID")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12,}")] public string AccountID { get; set; } @@ -6059,8 +6046,7 @@ public class CreateApplicationPostBody /// Pattern: ^[^\x00]*$ /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(600)] + [System.ComponentModel.DataAnnotations.Length(0, 600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[^\x00]*$")] public string Description { get; set; } @@ -6073,8 +6059,7 @@ public class CreateApplicationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[^\s\x00]( *[^\s\x00])*$")] public string Name { get; set; } @@ -6142,8 +6127,7 @@ public class CreateLaunchConfigurationTemplatePostBody /// Max length: 256 /// [System.Runtime.Serialization.DataMember(Name="mapAutoTaggingMpeID")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string MapAutoTaggingMpeID { get; set; } /// @@ -6291,8 +6275,7 @@ public class CreateReplicationConfigurationTemplatePostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="ebsEncryptionKeyArn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string EbsEncryptionKeyArn { get; set; } /// @@ -6303,8 +6286,7 @@ public class CreateReplicationConfigurationTemplatePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="replicationServerInstanceType")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string ReplicationServerInstanceType { get; set; } /// @@ -6315,8 +6297,7 @@ public class CreateReplicationConfigurationTemplatePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="replicationServersSecurityGroupsIDs")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(0, 32)] public string[] ReplicationServersSecurityGroupsIDs { get; set; } /// @@ -6328,8 +6309,7 @@ public class CreateReplicationConfigurationTemplatePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="stagingAreaSubnetId")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^subnet-[0-9a-fA-F]{8,}$")] public string StagingAreaSubnetId { get; set; } @@ -6372,8 +6352,7 @@ public class CreateWavePostBody /// Pattern: [0-9]{12,} /// [System.Runtime.Serialization.DataMember(Name="accountID")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12,}")] public string AccountID { get; set; } @@ -6384,8 +6363,7 @@ public class CreateWavePostBody /// Pattern: ^[^\x00]*$ /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(600)] + [System.ComponentModel.DataAnnotations.Length(0, 600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[^\x00]*$")] public string Description { get; set; } @@ -6398,8 +6376,7 @@ public class CreateWavePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[^\s\x00]( *[^\s\x00])*$")] public string Name { get; set; } @@ -6420,8 +6397,7 @@ public class DeleteApplicationPostBody /// Pattern: [0-9]{12,} /// [System.Runtime.Serialization.DataMember(Name="accountID")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12,}")] public string AccountID { get; set; } @@ -6434,8 +6410,7 @@ public class DeleteApplicationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="applicationID")] - [System.ComponentModel.DataAnnotations.MinLength(21)] - [System.ComponentModel.DataAnnotations.MaxLength(21)] + [System.ComponentModel.DataAnnotations.Length(21, 21)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^app-[0-9a-zA-Z]{17}$")] public string ApplicationID { get; set; } } @@ -6450,8 +6425,7 @@ public class DeleteJobPostBody /// Pattern: [0-9]{12,} /// [System.Runtime.Serialization.DataMember(Name="accountID")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12,}")] public string AccountID { get; set; } @@ -6464,8 +6438,7 @@ public class DeleteJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="jobID")] - [System.ComponentModel.DataAnnotations.MinLength(24)] - [System.ComponentModel.DataAnnotations.MaxLength(24)] + [System.ComponentModel.DataAnnotations.Length(24, 24)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^mgnjob-[0-9a-zA-Z]{17}$")] public string JobID { get; set; } } @@ -6482,8 +6455,7 @@ public class DeleteLaunchConfigurationTemplatePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="launchConfigurationTemplateID")] - [System.ComponentModel.DataAnnotations.MinLength(21)] - [System.ComponentModel.DataAnnotations.MaxLength(21)] + [System.ComponentModel.DataAnnotations.Length(21, 21)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^lct-[0-9a-zA-Z]{17}$")] public string LaunchConfigurationTemplateID { get; set; } } @@ -6500,8 +6472,7 @@ public class DeleteReplicationConfigurationTemplatePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="replicationConfigurationTemplateID")] - [System.ComponentModel.DataAnnotations.MinLength(21)] - [System.ComponentModel.DataAnnotations.MaxLength(21)] + [System.ComponentModel.DataAnnotations.Length(21, 21)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^rct-[0-9a-zA-Z]{17}$")] public string ReplicationConfigurationTemplateID { get; set; } } @@ -6516,8 +6487,7 @@ public class DeleteSourceServerPostBody /// Pattern: [0-9]{12,} /// [System.Runtime.Serialization.DataMember(Name="accountID")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12,}")] public string AccountID { get; set; } @@ -6530,8 +6500,7 @@ public class DeleteSourceServerPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceServerID")] - [System.ComponentModel.DataAnnotations.MinLength(19)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(19, 19)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^s-[0-9a-zA-Z]{17}$")] public string SourceServerID { get; set; } } @@ -6548,8 +6517,7 @@ public class DeleteVcenterClientPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="vcenterClientID")] - [System.ComponentModel.DataAnnotations.MinLength(21)] - [System.ComponentModel.DataAnnotations.MaxLength(21)] + [System.ComponentModel.DataAnnotations.Length(21, 21)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^vcc-[0-9a-zA-Z]{17}$")] public string VcenterClientID { get; set; } } @@ -6564,8 +6532,7 @@ public class DeleteWavePostBody /// Pattern: [0-9]{12,} /// [System.Runtime.Serialization.DataMember(Name="accountID")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12,}")] public string AccountID { get; set; } @@ -6578,8 +6545,7 @@ public class DeleteWavePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="waveID")] - [System.ComponentModel.DataAnnotations.MinLength(22)] - [System.ComponentModel.DataAnnotations.MaxLength(22)] + [System.ComponentModel.DataAnnotations.Length(22, 22)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^wave-[0-9a-zA-Z]{17}$")] public string WaveID { get; set; } } @@ -6594,8 +6560,7 @@ public class DescribeJobLogItemsPostBody /// Pattern: [0-9]{12,} /// [System.Runtime.Serialization.DataMember(Name="accountID")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12,}")] public string AccountID { get; set; } @@ -6608,8 +6573,7 @@ public class DescribeJobLogItemsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="jobID")] - [System.ComponentModel.DataAnnotations.MinLength(24)] - [System.ComponentModel.DataAnnotations.MaxLength(24)] + [System.ComponentModel.DataAnnotations.Length(24, 24)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^mgnjob-[0-9a-zA-Z]{17}$")] public string JobID { get; set; } @@ -6628,8 +6592,7 @@ public class DescribeJobLogItemsPostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] public string NextToken { get; set; } } @@ -6643,8 +6606,7 @@ public class DescribeJobsPostBody /// Pattern: [0-9]{12,} /// [System.Runtime.Serialization.DataMember(Name="accountID")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12,}")] public string AccountID { get; set; } @@ -6669,8 +6631,7 @@ public class DescribeJobsPostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] public string NextToken { get; set; } } @@ -6696,8 +6657,7 @@ public class DescribeLaunchConfigurationTemplatesPostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember(Name="launchConfigurationTemplateIDs")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public string[] LaunchConfigurationTemplateIDs { get; set; } /// @@ -6715,8 +6675,7 @@ public class DescribeLaunchConfigurationTemplatesPostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] public string NextToken { get; set; } } @@ -6738,8 +6697,7 @@ public class DescribeReplicationConfigurationTemplatesPostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] public string NextToken { get; set; } /// @@ -6748,8 +6706,7 @@ public class DescribeReplicationConfigurationTemplatesPostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember(Name="replicationConfigurationTemplateIDs")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public string[] ReplicationConfigurationTemplateIDs { get; set; } } @@ -6763,8 +6720,7 @@ public class DescribeSourceServersPostBody /// Pattern: [0-9]{12,} /// [System.Runtime.Serialization.DataMember(Name="accountID")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12,}")] public string AccountID { get; set; } @@ -6789,8 +6745,7 @@ public class DescribeSourceServersPostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] public string NextToken { get; set; } } @@ -6823,8 +6778,7 @@ public class DisassociateApplicationsPostBody /// Pattern: [0-9]{12,} /// [System.Runtime.Serialization.DataMember(Name="accountID")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12,}")] public string AccountID { get; set; } @@ -6836,8 +6790,7 @@ public class DisassociateApplicationsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="applicationIDs")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string[] ApplicationIDs { get; set; } /// @@ -6849,8 +6802,7 @@ public class DisassociateApplicationsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="waveID")] - [System.ComponentModel.DataAnnotations.MinLength(22)] - [System.ComponentModel.DataAnnotations.MaxLength(22)] + [System.ComponentModel.DataAnnotations.Length(22, 22)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^wave-[0-9a-zA-Z]{17}$")] public string WaveID { get; set; } } @@ -6865,8 +6817,7 @@ public class DisassociateSourceServersPostBody /// Pattern: [0-9]{12,} /// [System.Runtime.Serialization.DataMember(Name="accountID")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12,}")] public string AccountID { get; set; } @@ -6879,8 +6830,7 @@ public class DisassociateSourceServersPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="applicationID")] - [System.ComponentModel.DataAnnotations.MinLength(21)] - [System.ComponentModel.DataAnnotations.MaxLength(21)] + [System.ComponentModel.DataAnnotations.Length(21, 21)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^app-[0-9a-zA-Z]{17}$")] public string ApplicationID { get; set; } @@ -6892,8 +6842,7 @@ public class DisassociateSourceServersPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceServerIDs")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string[] SourceServerIDs { get; set; } } @@ -6907,8 +6856,7 @@ public class DisconnectFromServicePostBody /// Pattern: [0-9]{12,} /// [System.Runtime.Serialization.DataMember(Name="accountID")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12,}")] public string AccountID { get; set; } @@ -6921,8 +6869,7 @@ public class DisconnectFromServicePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceServerID")] - [System.ComponentModel.DataAnnotations.MinLength(19)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(19, 19)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^s-[0-9a-zA-Z]{17}$")] public string SourceServerID { get; set; } } @@ -6937,8 +6884,7 @@ public class FinalizeCutoverPostBody /// Pattern: [0-9]{12,} /// [System.Runtime.Serialization.DataMember(Name="accountID")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12,}")] public string AccountID { get; set; } @@ -6951,8 +6897,7 @@ public class FinalizeCutoverPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceServerID")] - [System.ComponentModel.DataAnnotations.MinLength(19)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(19, 19)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^s-[0-9a-zA-Z]{17}$")] public string SourceServerID { get; set; } } @@ -6967,8 +6912,7 @@ public class GetLaunchConfigurationPostBody /// Pattern: [0-9]{12,} /// [System.Runtime.Serialization.DataMember(Name="accountID")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12,}")] public string AccountID { get; set; } @@ -6981,8 +6925,7 @@ public class GetLaunchConfigurationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceServerID")] - [System.ComponentModel.DataAnnotations.MinLength(19)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(19, 19)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^s-[0-9a-zA-Z]{17}$")] public string SourceServerID { get; set; } } @@ -6997,8 +6940,7 @@ public class GetReplicationConfigurationPostBody /// Pattern: [0-9]{12,} /// [System.Runtime.Serialization.DataMember(Name="accountID")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12,}")] public string AccountID { get; set; } @@ -7011,8 +6953,7 @@ public class GetReplicationConfigurationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceServerID")] - [System.ComponentModel.DataAnnotations.MinLength(19)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(19, 19)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^s-[0-9a-zA-Z]{17}$")] public string SourceServerID { get; set; } } @@ -7027,8 +6968,7 @@ public class ListApplicationsPostBody /// Pattern: [0-9]{12,} /// [System.Runtime.Serialization.DataMember(Name="accountID")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12,}")] public string AccountID { get; set; } @@ -7053,8 +6993,7 @@ public class ListApplicationsPostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] public string NextToken { get; set; } } @@ -7083,8 +7022,7 @@ public class ListExportErrorsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="exportID")] - [System.ComponentModel.DataAnnotations.MinLength(24)] - [System.ComponentModel.DataAnnotations.MaxLength(24)] + [System.ComponentModel.DataAnnotations.Length(24, 24)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^export-[0-9a-zA-Z]{17}$")] public string ExportID { get; set; } @@ -7103,8 +7041,7 @@ public class ListExportErrorsPostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] public string NextToken { get; set; } } @@ -7132,8 +7069,7 @@ public class ListExportsPostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] public string NextToken { get; set; } } @@ -7156,8 +7092,7 @@ public class ListImportErrorsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="importID")] - [System.ComponentModel.DataAnnotations.MinLength(24)] - [System.ComponentModel.DataAnnotations.MaxLength(24)] + [System.ComponentModel.DataAnnotations.Length(24, 24)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^import-[0-9a-zA-Z]{17}$")] public string ImportID { get; set; } @@ -7176,8 +7111,7 @@ public class ListImportErrorsPostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] public string NextToken { get; set; } } @@ -7205,8 +7139,7 @@ public class ListImportsPostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] public string NextToken { get; set; } } @@ -7235,8 +7168,7 @@ public class ListManagedAccountsPostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] public string NextToken { get; set; } } @@ -7250,8 +7182,7 @@ public class ListSourceServerActionsPostBody /// Pattern: [0-9]{12,} /// [System.Runtime.Serialization.DataMember(Name="accountID")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12,}")] public string AccountID { get; set; } @@ -7276,8 +7207,7 @@ public class ListSourceServerActionsPostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] public string NextToken { get; set; } /// @@ -7289,8 +7219,7 @@ public class ListSourceServerActionsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceServerID")] - [System.ComponentModel.DataAnnotations.MinLength(19)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(19, 19)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^s-[0-9a-zA-Z]{17}$")] public string SourceServerID { get; set; } } @@ -7332,8 +7261,7 @@ public class ListTemplateActionsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="launchConfigurationTemplateID")] - [System.ComponentModel.DataAnnotations.MinLength(21)] - [System.ComponentModel.DataAnnotations.MaxLength(21)] + [System.ComponentModel.DataAnnotations.Length(21, 21)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^lct-[0-9a-zA-Z]{17}$")] public string LaunchConfigurationTemplateID { get; set; } @@ -7352,8 +7280,7 @@ public class ListTemplateActionsPostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] public string NextToken { get; set; } } @@ -7374,8 +7301,7 @@ public class ListWavesPostBody /// Pattern: [0-9]{12,} /// [System.Runtime.Serialization.DataMember(Name="accountID")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12,}")] public string AccountID { get; set; } @@ -7400,8 +7326,7 @@ public class ListWavesPostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] public string NextToken { get; set; } } @@ -7425,8 +7350,7 @@ public class MarkAsArchivedPostBody /// Pattern: [0-9]{12,} /// [System.Runtime.Serialization.DataMember(Name="accountID")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12,}")] public string AccountID { get; set; } @@ -7439,8 +7363,7 @@ public class MarkAsArchivedPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceServerID")] - [System.ComponentModel.DataAnnotations.MinLength(19)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(19, 19)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^s-[0-9a-zA-Z]{17}$")] public string SourceServerID { get; set; } } @@ -7455,8 +7378,7 @@ public class PauseReplicationPostBody /// Pattern: [0-9]{12,} /// [System.Runtime.Serialization.DataMember(Name="accountID")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12,}")] public string AccountID { get; set; } @@ -7469,8 +7391,7 @@ public class PauseReplicationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceServerID")] - [System.ComponentModel.DataAnnotations.MinLength(19)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(19, 19)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^s-[0-9a-zA-Z]{17}$")] public string SourceServerID { get; set; } } @@ -7485,8 +7406,7 @@ public class PutSourceServerActionPostBody /// Pattern: [0-9]{12,} /// [System.Runtime.Serialization.DataMember(Name="accountID")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12,}")] public string AccountID { get; set; } @@ -7499,8 +7419,7 @@ public class PutSourceServerActionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="actionID")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9a-zA-Z]$")] public string ActionID { get; set; } @@ -7513,8 +7432,7 @@ public class PutSourceServerActionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="actionName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[^\s\x00]( *[^\s\x00])*$")] public string ActionName { get; set; } @@ -7537,8 +7455,7 @@ public class PutSourceServerActionPostBody /// Pattern: ^[0-9a-zA-Z ():/.,'-_#*; ]*$ /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-zA-Z ():/.,'-_#*; ]*$")] public string Description { get; set; } @@ -7550,8 +7467,7 @@ public class PutSourceServerActionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="documentIdentifier")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string DocumentIdentifier { get; set; } /// @@ -7600,8 +7516,7 @@ public class PutSourceServerActionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceServerID")] - [System.ComponentModel.DataAnnotations.MinLength(19)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(19, 19)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^s-[0-9a-zA-Z]{17}$")] public string SourceServerID { get; set; } @@ -7626,8 +7541,7 @@ public class PutTemplateActionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="actionID")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9a-zA-Z]$")] public string ActionID { get; set; } @@ -7639,8 +7553,7 @@ public class PutTemplateActionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="actionName")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string ActionName { get; set; } /// @@ -7662,8 +7575,7 @@ public class PutTemplateActionPostBody /// Pattern: ^[0-9a-zA-Z ():/.,'-_#*; ]*$ /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-zA-Z ():/.,'-_#*; ]*$")] public string Description { get; set; } @@ -7675,8 +7587,7 @@ public class PutTemplateActionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="documentIdentifier")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string DocumentIdentifier { get; set; } /// @@ -7702,8 +7613,7 @@ public class PutTemplateActionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="launchConfigurationTemplateID")] - [System.ComponentModel.DataAnnotations.MinLength(21)] - [System.ComponentModel.DataAnnotations.MaxLength(21)] + [System.ComponentModel.DataAnnotations.Length(21, 21)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^lct-[0-9a-zA-Z]{17}$")] public string LaunchConfigurationTemplateID { get; set; } @@ -7757,8 +7667,7 @@ public class RemoveSourceServerActionPostBody /// Pattern: [0-9]{12,} /// [System.Runtime.Serialization.DataMember(Name="accountID")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12,}")] public string AccountID { get; set; } @@ -7771,8 +7680,7 @@ public class RemoveSourceServerActionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="actionID")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9a-zA-Z]$")] public string ActionID { get; set; } @@ -7785,8 +7693,7 @@ public class RemoveSourceServerActionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceServerID")] - [System.ComponentModel.DataAnnotations.MinLength(19)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(19, 19)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^s-[0-9a-zA-Z]{17}$")] public string SourceServerID { get; set; } } @@ -7803,8 +7710,7 @@ public class RemoveTemplateActionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="actionID")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9a-zA-Z]$")] public string ActionID { get; set; } @@ -7817,8 +7723,7 @@ public class RemoveTemplateActionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="launchConfigurationTemplateID")] - [System.ComponentModel.DataAnnotations.MinLength(21)] - [System.ComponentModel.DataAnnotations.MaxLength(21)] + [System.ComponentModel.DataAnnotations.Length(21, 21)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^lct-[0-9a-zA-Z]{17}$")] public string LaunchConfigurationTemplateID { get; set; } } @@ -7833,8 +7738,7 @@ public class ResumeReplicationPostBody /// Pattern: [0-9]{12,} /// [System.Runtime.Serialization.DataMember(Name="accountID")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12,}")] public string AccountID { get; set; } @@ -7847,8 +7751,7 @@ public class ResumeReplicationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceServerID")] - [System.ComponentModel.DataAnnotations.MinLength(19)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(19, 19)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^s-[0-9a-zA-Z]{17}$")] public string SourceServerID { get; set; } } @@ -7863,8 +7766,7 @@ public class RetryDataReplicationPostBody /// Pattern: [0-9]{12,} /// [System.Runtime.Serialization.DataMember(Name="accountID")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12,}")] public string AccountID { get; set; } @@ -7877,8 +7779,7 @@ public class RetryDataReplicationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceServerID")] - [System.ComponentModel.DataAnnotations.MinLength(19)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(19, 19)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^s-[0-9a-zA-Z]{17}$")] public string SourceServerID { get; set; } } @@ -7893,8 +7794,7 @@ public class StartCutoverPostBody /// Pattern: [0-9]{12,} /// [System.Runtime.Serialization.DataMember(Name="accountID")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12,}")] public string AccountID { get; set; } @@ -7906,8 +7806,7 @@ public class StartCutoverPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceServerIDs")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string[] SourceServerIDs { get; set; } /// @@ -7937,8 +7836,7 @@ public class StartExportPostBody /// Pattern: [0-9]{12,} /// [System.Runtime.Serialization.DataMember(Name="s3BucketOwner")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12,}")] public string S3BucketOwner { get; set; } @@ -7962,8 +7860,7 @@ public class StartImportPostBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(0, 64)] public string ClientToken { get; set; } /// @@ -7998,8 +7895,7 @@ public class StartReplicationPostBody /// Pattern: [0-9]{12,} /// [System.Runtime.Serialization.DataMember(Name="accountID")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12,}")] public string AccountID { get; set; } @@ -8012,8 +7908,7 @@ public class StartReplicationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceServerID")] - [System.ComponentModel.DataAnnotations.MinLength(19)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(19, 19)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^s-[0-9a-zA-Z]{17}$")] public string SourceServerID { get; set; } } @@ -8028,8 +7923,7 @@ public class StartTestPostBody /// Pattern: [0-9]{12,} /// [System.Runtime.Serialization.DataMember(Name="accountID")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12,}")] public string AccountID { get; set; } @@ -8041,8 +7935,7 @@ public class StartTestPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceServerIDs")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string[] SourceServerIDs { get; set; } /// @@ -8062,8 +7955,7 @@ public class StopReplicationPostBody /// Pattern: [0-9]{12,} /// [System.Runtime.Serialization.DataMember(Name="accountID")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12,}")] public string AccountID { get; set; } @@ -8076,8 +7968,7 @@ public class StopReplicationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceServerID")] - [System.ComponentModel.DataAnnotations.MinLength(19)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(19, 19)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^s-[0-9a-zA-Z]{17}$")] public string SourceServerID { get; set; } } @@ -8092,8 +7983,7 @@ public class TerminateTargetInstancesPostBody /// Pattern: [0-9]{12,} /// [System.Runtime.Serialization.DataMember(Name="accountID")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12,}")] public string AccountID { get; set; } @@ -8105,8 +7995,7 @@ public class TerminateTargetInstancesPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceServerIDs")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string[] SourceServerIDs { get; set; } /// @@ -8126,8 +8015,7 @@ public class UnarchiveApplicationPostBody /// Pattern: [0-9]{12,} /// [System.Runtime.Serialization.DataMember(Name="accountID")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12,}")] public string AccountID { get; set; } @@ -8140,8 +8028,7 @@ public class UnarchiveApplicationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="applicationID")] - [System.ComponentModel.DataAnnotations.MinLength(21)] - [System.ComponentModel.DataAnnotations.MaxLength(21)] + [System.ComponentModel.DataAnnotations.Length(21, 21)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^app-[0-9a-zA-Z]{17}$")] public string ApplicationID { get; set; } } @@ -8156,8 +8043,7 @@ public class UnarchiveWavePostBody /// Pattern: [0-9]{12,} /// [System.Runtime.Serialization.DataMember(Name="accountID")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12,}")] public string AccountID { get; set; } @@ -8170,8 +8056,7 @@ public class UnarchiveWavePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="waveID")] - [System.ComponentModel.DataAnnotations.MinLength(22)] - [System.ComponentModel.DataAnnotations.MaxLength(22)] + [System.ComponentModel.DataAnnotations.Length(22, 22)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^wave-[0-9a-zA-Z]{17}$")] public string WaveID { get; set; } } @@ -8186,8 +8071,7 @@ public class UpdateApplicationPostBody /// Pattern: [0-9]{12,} /// [System.Runtime.Serialization.DataMember(Name="accountID")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12,}")] public string AccountID { get; set; } @@ -8200,8 +8084,7 @@ public class UpdateApplicationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="applicationID")] - [System.ComponentModel.DataAnnotations.MinLength(21)] - [System.ComponentModel.DataAnnotations.MaxLength(21)] + [System.ComponentModel.DataAnnotations.Length(21, 21)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^app-[0-9a-zA-Z]{17}$")] public string ApplicationID { get; set; } @@ -8212,8 +8095,7 @@ public class UpdateApplicationPostBody /// Pattern: ^[^\x00]*$ /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(600)] + [System.ComponentModel.DataAnnotations.Length(0, 600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[^\x00]*$")] public string Description { get; set; } @@ -8224,8 +8106,7 @@ public class UpdateApplicationPostBody /// Pattern: ^[^\s\x00]( *[^\s\x00])*$ /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[^\s\x00]( *[^\s\x00])*$")] public string Name { get; set; } } @@ -8240,8 +8121,7 @@ public class UpdateLaunchConfigurationPostBody /// Pattern: [0-9]{12,} /// [System.Runtime.Serialization.DataMember(Name="accountID")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12,}")] public string AccountID { get; set; } @@ -8287,8 +8167,7 @@ public class UpdateLaunchConfigurationPostBody /// Max length: 256 /// [System.Runtime.Serialization.DataMember(Name="mapAutoTaggingMpeID")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string MapAutoTaggingMpeID { get; set; } /// @@ -8297,8 +8176,7 @@ public class UpdateLaunchConfigurationPostBody /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] public string Name { get; set; } /// @@ -8316,8 +8194,7 @@ public class UpdateLaunchConfigurationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceServerID")] - [System.ComponentModel.DataAnnotations.MinLength(19)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(19, 19)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^s-[0-9a-zA-Z]{17}$")] public string SourceServerID { get; set; } @@ -8402,8 +8279,7 @@ public class UpdateLaunchConfigurationTemplatePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="launchConfigurationTemplateID")] - [System.ComponentModel.DataAnnotations.MinLength(21)] - [System.ComponentModel.DataAnnotations.MaxLength(21)] + [System.ComponentModel.DataAnnotations.Length(21, 21)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^lct-[0-9a-zA-Z]{17}$")] public string LaunchConfigurationTemplateID { get; set; } @@ -8425,8 +8301,7 @@ public class UpdateLaunchConfigurationTemplatePostBody /// Max length: 256 /// [System.Runtime.Serialization.DataMember(Name="mapAutoTaggingMpeID")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string MapAutoTaggingMpeID { get; set; } /// @@ -8518,8 +8393,7 @@ public class UpdateReplicationConfigurationPostBody /// Pattern: [0-9]{12,} /// [System.Runtime.Serialization.DataMember(Name="accountID")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12,}")] public string AccountID { get; set; } @@ -8568,8 +8442,7 @@ public class UpdateReplicationConfigurationPostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="ebsEncryptionKeyArn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string EbsEncryptionKeyArn { get; set; } /// @@ -8578,8 +8451,7 @@ public class UpdateReplicationConfigurationPostBody /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] public string Name { get; set; } /// @@ -8588,8 +8460,7 @@ public class UpdateReplicationConfigurationPostBody /// Maximum items: 60 /// [System.Runtime.Serialization.DataMember(Name="replicatedDisks")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(60)] + [System.ComponentModel.DataAnnotations.Length(0, 60)] public ReplicationConfigurationReplicatedDisk[] ReplicatedDisks { get; set; } /// @@ -8598,8 +8469,7 @@ public class UpdateReplicationConfigurationPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="replicationServerInstanceType")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string ReplicationServerInstanceType { get; set; } /// @@ -8608,8 +8478,7 @@ public class UpdateReplicationConfigurationPostBody /// Maximum items: 32 /// [System.Runtime.Serialization.DataMember(Name="replicationServersSecurityGroupsIDs")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(0, 32)] public string[] ReplicationServersSecurityGroupsIDs { get; set; } /// @@ -8621,8 +8490,7 @@ public class UpdateReplicationConfigurationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceServerID")] - [System.ComponentModel.DataAnnotations.MinLength(19)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(19, 19)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^s-[0-9a-zA-Z]{17}$")] public string SourceServerID { get; set; } @@ -8633,8 +8501,7 @@ public class UpdateReplicationConfigurationPostBody /// Pattern: ^subnet-[0-9a-fA-F]{8,}$ /// [System.Runtime.Serialization.DataMember(Name="stagingAreaSubnetId")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^subnet-[0-9a-fA-F]{8,}$")] public string StagingAreaSubnetId { get; set; } @@ -8666,8 +8533,7 @@ public class UpdateReplicationConfigurationTemplatePostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="arn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string Arn { get; set; } /// @@ -8715,8 +8581,7 @@ public class UpdateReplicationConfigurationTemplatePostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="ebsEncryptionKeyArn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string EbsEncryptionKeyArn { get; set; } /// @@ -8728,8 +8593,7 @@ public class UpdateReplicationConfigurationTemplatePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="replicationConfigurationTemplateID")] - [System.ComponentModel.DataAnnotations.MinLength(21)] - [System.ComponentModel.DataAnnotations.MaxLength(21)] + [System.ComponentModel.DataAnnotations.Length(21, 21)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^rct-[0-9a-zA-Z]{17}$")] public string ReplicationConfigurationTemplateID { get; set; } @@ -8739,8 +8603,7 @@ public class UpdateReplicationConfigurationTemplatePostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="replicationServerInstanceType")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string ReplicationServerInstanceType { get; set; } /// @@ -8749,8 +8612,7 @@ public class UpdateReplicationConfigurationTemplatePostBody /// Maximum items: 32 /// [System.Runtime.Serialization.DataMember(Name="replicationServersSecurityGroupsIDs")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(0, 32)] public string[] ReplicationServersSecurityGroupsIDs { get; set; } /// @@ -8760,8 +8622,7 @@ public class UpdateReplicationConfigurationTemplatePostBody /// Pattern: ^subnet-[0-9a-fA-F]{8,}$ /// [System.Runtime.Serialization.DataMember(Name="stagingAreaSubnetId")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^subnet-[0-9a-fA-F]{8,}$")] public string StagingAreaSubnetId { get; set; } @@ -8794,8 +8655,7 @@ public class UpdateSourceServerReplicationTypePostBody /// Pattern: [0-9]{12,} /// [System.Runtime.Serialization.DataMember(Name="accountID")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12,}")] public string AccountID { get; set; } @@ -8816,8 +8676,7 @@ public class UpdateSourceServerReplicationTypePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceServerID")] - [System.ComponentModel.DataAnnotations.MinLength(19)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(19, 19)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^s-[0-9a-zA-Z]{17}$")] public string SourceServerID { get; set; } } @@ -8832,8 +8691,7 @@ public class UpdateWavePostBody /// Pattern: [0-9]{12,} /// [System.Runtime.Serialization.DataMember(Name="accountID")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12,}")] public string AccountID { get; set; } @@ -8844,8 +8702,7 @@ public class UpdateWavePostBody /// Pattern: ^[^\x00]*$ /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(600)] + [System.ComponentModel.DataAnnotations.Length(0, 600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[^\x00]*$")] public string Description { get; set; } @@ -8856,8 +8713,7 @@ public class UpdateWavePostBody /// Pattern: ^[^\s\x00]( *[^\s\x00])*$ /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[^\s\x00]( *[^\s\x00])*$")] public string Name { get; set; } @@ -8870,8 +8726,7 @@ public class UpdateWavePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="waveID")] - [System.ComponentModel.DataAnnotations.MinLength(22)] - [System.ComponentModel.DataAnnotations.MaxLength(22)] + [System.ComponentModel.DataAnnotations.Length(22, 22)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^wave-[0-9a-zA-Z]{17}$")] public string WaveID { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_migration_hub_refactor_spaces_2021_10_26_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_migration_hub_refactor_spaces_2021_10_26_.cs index a7a0db6f..7406ee19 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_migration_hub_refactor_spaces_2021_10_26_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_migration_hub_refactor_spaces_2021_10_26_.cs @@ -2541,8 +2541,7 @@ public class CreateApplicationPostBody /// Pattern: ^[\x20-\x7E]{1,64}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\x20-\x7E]{1,64}$")] public string ClientToken { get; set; } @@ -2555,8 +2554,7 @@ public class CreateApplicationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(3, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?!app-)[a-zA-Z0-9]+[a-zA-Z0-9-_ ]+$")] public string Name { get; set; } @@ -2583,8 +2581,7 @@ public class CreateApplicationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(21)] + [System.ComponentModel.DataAnnotations.Length(12, 21)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^vpc-[-a-f0-9]{8}([-a-f0-9]{9})?$")] public string VpcId { get; set; } } @@ -2609,8 +2606,7 @@ public class CreateEnvironmentPostBody /// Pattern: ^[\x20-\x7E]{1,64}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\x20-\x7E]{1,64}$")] public string ClientToken { get; set; } @@ -2621,8 +2617,7 @@ public class CreateEnvironmentPostBody /// Pattern: ^[a-zA-Z0-9-_\s\.\!\*\#\@\']+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_\s\.\!\*\#\@\']+$")] public string Description { get; set; } @@ -2635,8 +2630,7 @@ public class CreateEnvironmentPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(3, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?!env-)[a-zA-Z0-9]+[a-zA-Z0-9-_ ]+$")] public string Name { get; set; } @@ -2665,8 +2659,7 @@ public class CreateRoutePostBody /// Pattern: ^[\x20-\x7E]{1,64}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\x20-\x7E]{1,64}$")] public string ClientToken { get; set; } @@ -2693,8 +2686,7 @@ public class CreateRoutePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(14)] - [System.ComponentModel.DataAnnotations.MaxLength(14)] + [System.ComponentModel.DataAnnotations.Length(14, 14)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^svc-[0-9A-Za-z]{10}$")] public string ServiceIdentifier { get; set; } @@ -2747,8 +2739,7 @@ public class CreateServicePostBody /// Pattern: ^[\x20-\x7E]{1,64}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\x20-\x7E]{1,64}$")] public string ClientToken { get; set; } @@ -2759,8 +2750,7 @@ public class CreateServicePostBody /// Pattern: ^[a-zA-Z0-9-_\s\.\!\*\#\@\']+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_\s\.\!\*\#\@\']+$")] public string Description { get; set; } @@ -2787,8 +2777,7 @@ public class CreateServicePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(3, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?!svc-)[a-zA-Z0-9]+[a-zA-Z0-9-_ ]+$")] public string Name { get; set; } @@ -2811,8 +2800,7 @@ public class CreateServicePostBody /// Pattern: ^vpc-[-a-f0-9]{8}([-a-f0-9]{9})?$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(21)] + [System.ComponentModel.DataAnnotations.Length(12, 21)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^vpc-[-a-f0-9]{8}([-a-f0-9]{9})?$")] public string VpcId { get; set; } } @@ -2870,8 +2858,7 @@ public class PutResourcePolicyPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(300000)] + [System.ComponentModel.DataAnnotations.Length(1, 300000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^.*\S.*$")] public string Policy { get; set; } @@ -2884,8 +2871,7 @@ public class PutResourcePolicyPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:refactor-spaces:[a-zA-Z0-9\-]+:\w{12}:[a-zA-Z_0-9+=,.@\-_/]+$")] public string ResourceArn { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_migrationhuborchestrator_2021_08_28_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_migrationhuborchestrator_2021_08_28_.cs index 9fb0587c..847b113a 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_migrationhuborchestrator_2021_08_28_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_migrationhuborchestrator_2021_08_28_.cs @@ -2579,8 +2579,7 @@ public class CreateWorkflowPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-a-zA-Z0-9_.+]+[-a-zA-Z0-9_.+ ]*")] public string Name { get; set; } @@ -2591,8 +2590,7 @@ public class CreateWorkflowPostBody /// Pattern: [-a-zA-Z0-9_.+, ]* /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-a-zA-Z0-9_.+, ]*")] public string Description { get; set; } @@ -2605,8 +2603,7 @@ public class CreateWorkflowPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="templateId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-a-zA-Z0-9_.+]+[-a-zA-Z0-9_.+ ]*")] public string TemplateId { get; set; } @@ -2619,8 +2616,7 @@ public class CreateWorkflowPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="applicationConfigurationId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-a-zA-Z0-9_.+]+[-a-zA-Z0-9_.+ ]*")] public string ApplicationConfigurationId { get; set; } @@ -2657,8 +2653,7 @@ public class CreateWorkflowStepPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-a-zA-Z0-9_.+]+[-a-zA-Z0-9_.+ ]*")] public string Name { get; set; } @@ -2671,8 +2666,7 @@ public class CreateWorkflowStepPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="stepGroupId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9-]+")] public string StepGroupId { get; set; } @@ -2685,8 +2679,7 @@ public class CreateWorkflowStepPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="workflowId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9-]+")] public string WorkflowId { get; set; } @@ -2705,8 +2698,7 @@ public class CreateWorkflowStepPostBody /// Pattern: [-a-zA-Z0-9_.+, ]* /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-a-zA-Z0-9_.+, ]*")] public string Description { get; set; } @@ -2772,8 +2764,7 @@ public class CreateWorkflowStepGroupPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="workflowId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9-]+")] public string WorkflowId { get; set; } @@ -2786,8 +2777,7 @@ public class CreateWorkflowStepGroupPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-a-zA-Z0-9_.+]+[-a-zA-Z0-9_.+ ]*")] public string Name { get; set; } @@ -2798,8 +2788,7 @@ public class CreateWorkflowStepGroupPostBody /// Pattern: [-a-zA-Z0-9_.+, ]* /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-a-zA-Z0-9_.+, ]*")] public string Description { get; set; } @@ -2826,8 +2815,7 @@ public class UpdateWorkflowPostBody /// Pattern: [-a-zA-Z0-9_.+]+[-a-zA-Z0-9_.+ ]* /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-a-zA-Z0-9_.+]+[-a-zA-Z0-9_.+ ]*")] public string Name { get; set; } @@ -2838,8 +2826,7 @@ public class UpdateWorkflowPostBody /// Pattern: [-a-zA-Z0-9_.+, ]* /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-a-zA-Z0-9_.+, ]*")] public string Description { get; set; } @@ -2866,8 +2853,7 @@ public class UpdateWorkflowStepGroupPostBody /// Pattern: [-a-zA-Z0-9_.+]+[-a-zA-Z0-9_.+ ]* /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-a-zA-Z0-9_.+]+[-a-zA-Z0-9_.+ ]*")] public string Name { get; set; } @@ -2878,8 +2864,7 @@ public class UpdateWorkflowStepGroupPostBody /// Pattern: [-a-zA-Z0-9_.+, ]* /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-a-zA-Z0-9_.+, ]*")] public string Description { get; set; } @@ -2920,8 +2905,7 @@ public class UpdateWorkflowStepPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="stepGroupId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9-]+")] public string StepGroupId { get; set; } @@ -2934,8 +2918,7 @@ public class UpdateWorkflowStepPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="workflowId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9-]+")] public string WorkflowId { get; set; } @@ -2946,8 +2929,7 @@ public class UpdateWorkflowStepPostBody /// Pattern: [-a-zA-Z0-9_.+]+[-a-zA-Z0-9_.+ ]* /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-a-zA-Z0-9_.+]+[-a-zA-Z0-9_.+ ]*")] public string Name { get; set; } @@ -2958,8 +2940,7 @@ public class UpdateWorkflowStepPostBody /// Pattern: [-a-zA-Z0-9_.+, ]* /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-a-zA-Z0-9_.+, ]*")] public string Description { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_migrationhubstrategy_2020_02_19_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_migrationhubstrategy_2020_02_19_.cs index a04bf5bc..fd41d27d 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_migrationhubstrategy_2020_02_19_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_migrationhubstrategy_2020_02_19_.cs @@ -3087,8 +3087,7 @@ public class ListApplicationComponentsPostBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember(Name="filterValue")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string FilterValue { get; set; } @@ -3111,8 +3110,7 @@ public class ListApplicationComponentsPostBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string NextToken { get; set; } @@ -3133,8 +3131,7 @@ public class ListServersPostBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember(Name="filterValue")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string FilterValue { get; set; } @@ -3157,8 +3154,7 @@ public class ListServersPostBody /// Pattern: .*\S.* /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string NextToken { get; set; } @@ -3236,8 +3232,7 @@ public class StartAssessmentPostBody /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="assessmentTargets")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(0, 10)] public AssessmentTarget[] AssessmentTargets { get; set; } /// @@ -3247,8 +3242,7 @@ public class StartAssessmentPostBody /// Pattern: [0-9a-z]+[0-9a-z\.\-]*[0-9a-z]+ /// [System.Runtime.Serialization.DataMember(Name="s3bucketForAnalysisData")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(0, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9a-z]+[0-9a-z\.\-]*[0-9a-z]+")] public string S3bucketForAnalysisData { get; set; } @@ -3259,8 +3253,7 @@ public class StartAssessmentPostBody /// Pattern: [0-9a-z]+[0-9a-z\.\-]*[0-9a-z]+ /// [System.Runtime.Serialization.DataMember(Name="s3bucketForReportData")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(0, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9a-z]+[0-9a-z\.\-]*[0-9a-z]+")] public string S3bucketForReportData { get; set; } } @@ -3277,8 +3270,7 @@ public class StartImportFileTaskPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(0, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9a-z]+[0-9a-z\.\-]*[0-9a-z]+")] public string S3Bucket { get; set; } @@ -3303,8 +3295,7 @@ public class StartImportFileTaskPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_-]+")] public string Name { get; set; } @@ -3315,8 +3306,7 @@ public class StartImportFileTaskPostBody /// Pattern: [0-9a-z]+[0-9a-z\.\-]*[0-9a-z]+ /// [System.Runtime.Serialization.DataMember(Name="s3bucketForReportData")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(0, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9a-z]+[0-9a-z\.\-]*[0-9a-z]+")] public string S3bucketForReportData { get; set; } @@ -3329,8 +3319,7 @@ public class StartImportFileTaskPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="s3key")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string S3key { get; set; } } @@ -3363,8 +3352,7 @@ public class StopAssessmentPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="assessmentId")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(52)] + [System.ComponentModel.DataAnnotations.Length(0, 52)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9a-z-:]+")] public string AssessmentId { get; set; } } @@ -3387,8 +3375,7 @@ public class UpdateApplicationComponentConfigPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="applicationComponentId")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(44)] + [System.ComponentModel.DataAnnotations.Length(0, 44)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9a-zA-Z-]+")] public string ApplicationComponentId { get; set; } @@ -3411,8 +3398,7 @@ public class UpdateApplicationComponentConfigPostBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember(Name="secretsManagerKey")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string SecretsManagerKey { get; set; } @@ -3528,8 +3514,7 @@ public class UpdateServerConfigPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="serverId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(27)] + [System.ComponentModel.DataAnnotations.Length(1, 27)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*\S.*")] public string ServerId { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_models_lex_v2_2020_08_07_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_models_lex_v2_2020_08_07_.cs index 44b19768..a5cd5386 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_models_lex_v2_2020_08_07_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_models_lex_v2_2020_08_07_.cs @@ -13431,8 +13431,7 @@ public class BatchCreateCustomVocabularyItemPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="customVocabularyItemList")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public NewCustomVocabularyItem[] CustomVocabularyItemList { get; set; } } @@ -13447,8 +13446,7 @@ public class BatchDeleteCustomVocabularyItemPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="customVocabularyItemList")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public CustomVocabularyEntryId[] CustomVocabularyItemList { get; set; } } @@ -13463,8 +13461,7 @@ public class BatchUpdateCustomVocabularyItemPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="customVocabularyItemList")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public CustomVocabularyItem[] CustomVocabularyItemList { get; set; } } @@ -13477,8 +13474,7 @@ public class UpdateBotLocalePutBody /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public string Description { get; set; } /// @@ -13521,8 +13517,7 @@ public class CreateBotPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="botName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^([0-9a-zA-Z][_-]?){1,100}$")] public string BotName { get; set; } @@ -13532,8 +13527,7 @@ public class CreateBotPutBody /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public string Description { get; set; } /// @@ -13545,8 +13539,7 @@ public class CreateBotPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="roleArn")] - [System.ComponentModel.DataAnnotations.MinLength(32)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(32, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:iam::[0-9]{12}:role/.*$")] public string RoleArn { get; set; } @@ -13593,8 +13586,7 @@ public class CreateBotPutBody /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="botMembers")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(0, 10)] public BotMember[] BotMembers { get; set; } } @@ -13620,8 +13612,7 @@ public class ListBotsPostBody /// Maximum items: 2 /// [System.Runtime.Serialization.DataMember(Name="filters")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(1, 2)] public BotFilter[] Filters { get; set; } /// @@ -13662,8 +13653,7 @@ public class CreateBotAliasPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="botAliasName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^([0-9a-zA-Z][_-]?){1,100}$")] public string BotAliasName { get; set; } @@ -13673,8 +13663,7 @@ public class CreateBotAliasPutBody /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public string Description { get; set; } /// @@ -13684,8 +13673,7 @@ public class CreateBotAliasPutBody /// Pattern: ^[0-9]+$ /// [System.Runtime.Serialization.DataMember(Name="botVersion")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(1, 5)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9]+$")] public string BotVersion { get; set; } @@ -13767,8 +13755,7 @@ public class CreateBotLocalePutBody /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public string Description { get; set; } /// @@ -13814,8 +13801,7 @@ public class ListBotLocalesPostBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember(Name="filters")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public BotLocaleFilter[] Filters { get; set; } /// @@ -13853,8 +13839,7 @@ public class CreateBotVersionPutBody /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public string Description { get; set; } /// @@ -13926,8 +13911,7 @@ public class CreateExportPutBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="filePassword")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string FilePassword { get; set; } } @@ -13957,8 +13941,7 @@ public class ListExportsPostBody /// Pattern: ^[0-9a-zA-Z]+$ /// [System.Runtime.Serialization.DataMember(Name="botId")] - [System.ComponentModel.DataAnnotations.MinLength(10)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(10, 10)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-zA-Z]+$")] public string BotId { get; set; } @@ -13969,8 +13952,7 @@ public class ListExportsPostBody /// Pattern: ^(DRAFT|[0-9]+)$ /// [System.Runtime.Serialization.DataMember(Name="botVersion")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(1, 5)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(DRAFT|[0-9]+)$")] public string BotVersion { get; set; } @@ -13986,8 +13968,7 @@ public class ListExportsPostBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember(Name="filters")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public ExportFilter[] Filters { get; set; } /// @@ -14034,8 +14015,7 @@ public class CreateIntentPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="intentName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^([0-9a-zA-Z][_-]?){1,100}$")] public string IntentName { get; set; } @@ -14045,8 +14025,7 @@ public class CreateIntentPutBody /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public string Description { get; set; } /// @@ -14091,8 +14070,7 @@ public class CreateIntentPutBody /// Maximum items: 5 /// [System.Runtime.Serialization.DataMember(Name="inputContexts")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(0, 5)] public InputContext[] InputContexts { get; set; } /// @@ -14101,8 +14079,7 @@ public class CreateIntentPutBody /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="outputContexts")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(0, 10)] public OutputContext[] OutputContexts { get; set; } /// @@ -14262,8 +14239,7 @@ public class ListIntentsPostBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember(Name="filters")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public IntentFilter[] Filters { get; set; } /// @@ -14332,8 +14308,7 @@ public class CreateResourcePolicyStatementPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="statementId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^([0-9a-zA-Z][_-]?){1,100}$")] public string StatementId { get; set; } @@ -14380,8 +14355,7 @@ public class CreateSlotPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="slotName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^([0-9a-zA-Z][_-]?){1,100}$")] public string SlotName { get; set; } @@ -14391,8 +14365,7 @@ public class CreateSlotPutBody /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public string Description { get; set; } /// @@ -14402,8 +14375,7 @@ public class CreateSlotPutBody /// Pattern: ^((AMAZON\.)[a-zA-Z_]+?|[0-9a-zA-Z]+)$ /// [System.Runtime.Serialization.DataMember(Name="slotTypeId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(1, 25)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^((AMAZON\.)[a-zA-Z_]+?|[0-9a-zA-Z]+)$")] public string SlotTypeId { get; set; } @@ -14498,8 +14470,7 @@ public class ListSlotsPostBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember(Name="filters")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public SlotFilter[] Filters { get; set; } /// @@ -14540,8 +14511,7 @@ public class CreateSlotTypePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="slotTypeName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^([0-9a-zA-Z][_-]?){1,100}$")] public string SlotTypeName { get; set; } @@ -14551,8 +14521,7 @@ public class CreateSlotTypePutBody /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public string Description { get; set; } /// @@ -14561,8 +14530,7 @@ public class CreateSlotTypePutBody /// Maximum items: 10000 /// [System.Runtime.Serialization.DataMember(Name="slotTypeValues")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10000)] + [System.ComponentModel.DataAnnotations.Length(1, 10000)] public SlotTypeValue[] SlotTypeValues { get; set; } /// @@ -14632,8 +14600,7 @@ public class ListSlotTypesPostBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember(Name="filters")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public SlotTypeFilter[] Filters { get; set; } /// @@ -14693,8 +14660,7 @@ public class UpdateBotPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="botName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^([0-9a-zA-Z][_-]?){1,100}$")] public string BotName { get; set; } @@ -14704,8 +14670,7 @@ public class UpdateBotPutBody /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public string Description { get; set; } /// @@ -14717,8 +14682,7 @@ public class UpdateBotPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="roleArn")] - [System.ComponentModel.DataAnnotations.MinLength(32)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(32, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:iam::[0-9]{12}:role/.*$")] public string RoleArn { get; set; } @@ -14753,8 +14717,7 @@ public class UpdateBotPutBody /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="botMembers")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(0, 10)] public BotMember[] BotMembers { get; set; } } @@ -14777,8 +14740,7 @@ public class UpdateBotAliasPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="botAliasName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^([0-9a-zA-Z][_-]?){1,100}$")] public string BotAliasName { get; set; } @@ -14788,8 +14750,7 @@ public class UpdateBotAliasPutBody /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public string Description { get; set; } /// @@ -14799,8 +14760,7 @@ public class UpdateBotAliasPutBody /// Pattern: ^(DRAFT|[0-9]+)$ /// [System.Runtime.Serialization.DataMember(Name="botVersion")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(1, 5)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(DRAFT|[0-9]+)$")] public string BotVersion { get; set; } @@ -14849,8 +14809,7 @@ public class UpdateExportPutBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="filePassword")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string FilePassword { get; set; } } @@ -14866,8 +14825,7 @@ public class UpdateIntentPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="intentName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^([0-9a-zA-Z][_-]?){1,100}$")] public string IntentName { get; set; } @@ -14877,8 +14835,7 @@ public class UpdateIntentPutBody /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public string Description { get; set; } /// @@ -14929,8 +14886,7 @@ public class UpdateIntentPutBody /// Maximum items: 5 /// [System.Runtime.Serialization.DataMember(Name="inputContexts")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(0, 5)] public InputContext[] InputContexts { get; set; } /// @@ -14939,8 +14895,7 @@ public class UpdateIntentPutBody /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="outputContexts")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(0, 10)] public OutputContext[] OutputContexts { get; set; } /// @@ -15097,8 +15052,7 @@ public class UpdateSlotPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="slotName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^([0-9a-zA-Z][_-]?){1,100}$")] public string SlotName { get; set; } @@ -15108,8 +15062,7 @@ public class UpdateSlotPutBody /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public string Description { get; set; } /// @@ -15119,8 +15072,7 @@ public class UpdateSlotPutBody /// Pattern: ^((AMAZON\.)[a-zA-Z_]+?|[0-9a-zA-Z]+)$ /// [System.Runtime.Serialization.DataMember(Name="slotTypeId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(1, 25)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^((AMAZON\.)[a-zA-Z_]+?|[0-9a-zA-Z]+)$")] public string SlotTypeId { get; set; } @@ -15212,8 +15164,7 @@ public class UpdateSlotTypePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="slotTypeName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^([0-9a-zA-Z][_-]?){1,100}$")] public string SlotTypeName { get; set; } @@ -15223,8 +15174,7 @@ public class UpdateSlotTypePutBody /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public string Description { get; set; } /// @@ -15233,8 +15183,7 @@ public class UpdateSlotTypePutBody /// Maximum items: 10000 /// [System.Runtime.Serialization.DataMember(Name="slotTypeValues")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10000)] + [System.ComponentModel.DataAnnotations.Length(1, 10000)] public SlotTypeValue[] SlotTypeValues { get; set; } /// @@ -15301,8 +15250,7 @@ public class UpdateTestSetPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="testSetName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^([0-9a-zA-Z][_-]?){1,100}$")] public string TestSetName { get; set; } @@ -15312,8 +15260,7 @@ public class UpdateTestSetPutBody /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public string Description { get; set; } } @@ -15352,8 +15299,7 @@ public class ListAggregatedUtterancesPostBody /// Pattern: ^(\bTSTALIASID\b|[0-9a-zA-Z]+)$ /// [System.Runtime.Serialization.DataMember(Name="botAliasId")] - [System.ComponentModel.DataAnnotations.MinLength(10)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(10, 10)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(\bTSTALIASID\b|[0-9a-zA-Z]+)$")] public string BotAliasId { get; set; } @@ -15364,8 +15310,7 @@ public class ListAggregatedUtterancesPostBody /// Pattern: ^(DRAFT|[0-9]+)$ /// [System.Runtime.Serialization.DataMember(Name="botVersion")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(1, 5)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(DRAFT|[0-9]+)$")] public string BotVersion { get; set; } @@ -15397,8 +15342,7 @@ public class ListAggregatedUtterancesPostBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember(Name="filters")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public AggregatedUtterancesFilter[] Filters { get; set; } /// @@ -15590,8 +15534,7 @@ public class ListImportsPostBody /// Pattern: ^[0-9a-zA-Z]+$ /// [System.Runtime.Serialization.DataMember(Name="botId")] - [System.ComponentModel.DataAnnotations.MinLength(10)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(10, 10)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-zA-Z]+$")] public string BotId { get; set; } @@ -15602,8 +15545,7 @@ public class ListImportsPostBody /// Pattern: ^DRAFT$ /// [System.Runtime.Serialization.DataMember(Name="botVersion")] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(5, 5)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^DRAFT$")] public string BotVersion { get; set; } @@ -15619,8 +15561,7 @@ public class ListImportsPostBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember(Name="filters")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public ImportFilter[] Filters { get; set; } /// @@ -15667,8 +15608,7 @@ public class StartImportPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="importId")] - [System.ComponentModel.DataAnnotations.MinLength(10)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(10, 10)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-zA-Z]+$")] public string ImportId { get; set; } @@ -15694,8 +15634,7 @@ public class StartImportPutBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="filePassword")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string FilePassword { get; set; } } @@ -15745,8 +15684,7 @@ public class ListIntentMetricsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="metrics")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(1, 5)] public AnalyticsIntentMetric[] Metrics { get; set; } /// @@ -15755,8 +15693,7 @@ public class ListIntentMetricsPostBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember(Name="binBy")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public AnalyticsBinBySpecification[] BinBy { get; set; } /// @@ -15765,8 +15702,7 @@ public class ListIntentMetricsPostBody /// Maximum items: 3 /// [System.Runtime.Serialization.DataMember(Name="groupBy")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(1, 3)] public AnalyticsIntentGroupBySpecification[] GroupBy { get; set; } /// @@ -15775,8 +15711,7 @@ public class ListIntentMetricsPostBody /// Maximum items: 9 /// [System.Runtime.Serialization.DataMember(Name="filters")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(9)] + [System.ComponentModel.DataAnnotations.Length(1, 9)] public AnalyticsIntentFilter[] Filters { get; set; } /// @@ -15822,8 +15757,7 @@ public class ListIntentPathsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="intentPath")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string IntentPath { get; set; } /// @@ -15832,8 +15766,7 @@ public class ListIntentPathsPostBody /// Maximum items: 5 /// [System.Runtime.Serialization.DataMember(Name="filters")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(1, 5)] public AnalyticsPathFilter[] Filters { get; set; } } @@ -15864,8 +15797,7 @@ public class ListIntentStageMetricsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="metrics")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(1, 5)] public AnalyticsIntentStageMetric[] Metrics { get; set; } /// @@ -15874,8 +15806,7 @@ public class ListIntentStageMetricsPostBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember(Name="binBy")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public AnalyticsBinBySpecification[] BinBy { get; set; } /// @@ -15884,8 +15815,7 @@ public class ListIntentStageMetricsPostBody /// Maximum items: 2 /// [System.Runtime.Serialization.DataMember(Name="groupBy")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(1, 2)] public AnalyticsIntentStageGroupBySpecification[] GroupBy { get; set; } /// @@ -15894,8 +15824,7 @@ public class ListIntentStageMetricsPostBody /// Maximum items: 9 /// [System.Runtime.Serialization.DataMember(Name="filters")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(9)] + [System.ComponentModel.DataAnnotations.Length(1, 9)] public AnalyticsIntentStageFilter[] Filters { get; set; } /// @@ -15964,8 +15893,7 @@ public class ListSessionAnalyticsDataPostBody /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="filters")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public AnalyticsSessionFilter[] Filters { get; set; } /// @@ -16021,8 +15949,7 @@ public class ListSessionMetricsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="metrics")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(7)] + [System.ComponentModel.DataAnnotations.Length(1, 7)] public AnalyticsSessionMetric[] Metrics { get; set; } /// @@ -16031,8 +15958,7 @@ public class ListSessionMetricsPostBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember(Name="binBy")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public AnalyticsBinBySpecification[] BinBy { get; set; } /// @@ -16041,8 +15967,7 @@ public class ListSessionMetricsPostBody /// Maximum items: 2 /// [System.Runtime.Serialization.DataMember(Name="groupBy")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(1, 2)] public AnalyticsSessionGroupBySpecification[] GroupBy { get; set; } /// @@ -16051,8 +15976,7 @@ public class ListSessionMetricsPostBody /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="filters")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public AnalyticsSessionFilter[] Filters { get; set; } /// @@ -16240,8 +16164,7 @@ public class ListUtteranceAnalyticsDataPostBody /// Maximum items: 9 /// [System.Runtime.Serialization.DataMember(Name="filters")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(9)] + [System.ComponentModel.DataAnnotations.Length(1, 9)] public AnalyticsUtteranceFilter[] Filters { get; set; } /// @@ -16297,8 +16220,7 @@ public class ListUtteranceMetricsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="metrics")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(1, 4)] public AnalyticsUtteranceMetric[] Metrics { get; set; } /// @@ -16307,8 +16229,7 @@ public class ListUtteranceMetricsPostBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember(Name="binBy")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public AnalyticsBinBySpecification[] BinBy { get; set; } /// @@ -16317,8 +16238,7 @@ public class ListUtteranceMetricsPostBody /// Maximum items: 2 /// [System.Runtime.Serialization.DataMember(Name="groupBy")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(1, 2)] public AnalyticsUtteranceGroupBySpecification[] GroupBy { get; set; } /// @@ -16327,8 +16247,7 @@ public class ListUtteranceMetricsPostBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember(Name="attributes")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public AnalyticsUtteranceAttribute[] Attributes { get; set; } /// @@ -16337,8 +16256,7 @@ public class ListUtteranceMetricsPostBody /// Maximum items: 9 /// [System.Runtime.Serialization.DataMember(Name="filters")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(9)] + [System.ComponentModel.DataAnnotations.Length(1, 9)] public AnalyticsUtteranceFilter[] Filters { get; set; } /// @@ -16374,8 +16292,7 @@ public class SearchAssociatedTranscriptsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="filters")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public AssociatedTranscriptFilter[] Filters { get; set; } /// @@ -16442,8 +16359,7 @@ public class StartTestSetGenerationPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="testSetName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^([0-9a-zA-Z][_-]?){1,100}$")] public string TestSetName { get; set; } @@ -16453,8 +16369,7 @@ public class StartTestSetGenerationPutBody /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public string Description { get; set; } /// @@ -16482,8 +16397,7 @@ public class StartTestSetGenerationPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="roleArn")] - [System.ComponentModel.DataAnnotations.MinLength(32)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(32, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:iam::[0-9]{12}:role/.*$")] public string RoleArn { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_mturk_requester_2017_01_17_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_mturk_requester_2017_01_17_.cs index f9c8e5f1..6cb7dd7a 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_mturk_requester_2017_01_17_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_mturk_requester_2017_01_17_.cs @@ -1064,8 +1064,7 @@ public class ListAssignmentsForHITResponse /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string NextToken { get; set; } [System.Runtime.Serialization.DataMember()] @@ -1114,8 +1113,7 @@ public class ListBonusPaymentsResponse /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string NextToken { get; set; } [System.Runtime.Serialization.DataMember()] @@ -1182,8 +1180,7 @@ public class ListHITsResponse /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string NextToken { get; set; } [System.Runtime.Serialization.DataMember()] @@ -1219,8 +1216,7 @@ public class ListHITsForQualificationTypeResponse /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string NextToken { get; set; } [System.Runtime.Serialization.DataMember()] @@ -1261,8 +1257,7 @@ public class ListQualificationRequestsResponse /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string NextToken { get; set; } [System.Runtime.Serialization.DataMember()] @@ -1308,8 +1303,7 @@ public class ListQualificationRequestsRequest /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string NextToken { get; set; } [System.Runtime.Serialization.DataMember()] @@ -1329,8 +1323,7 @@ public class ListQualificationTypesResponse /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string NextToken { get; set; } [System.Runtime.Serialization.DataMember()] @@ -1360,8 +1353,7 @@ public class ListQualificationTypesRequest /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string NextToken { get; set; } [System.Runtime.Serialization.DataMember()] @@ -1393,8 +1385,7 @@ public class ListReviewPolicyResultsForHITResponse /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string NextToken { get; set; } } @@ -1535,8 +1526,7 @@ public class ListReviewableHITsResponse /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string NextToken { get; set; } [System.Runtime.Serialization.DataMember()] @@ -1584,8 +1574,7 @@ public class ListWorkerBlocksResponse /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string NextToken { get; set; } [System.Runtime.Serialization.DataMember()] @@ -1635,8 +1624,7 @@ public class ListWorkersWithQualificationTypeResponse /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string NextToken { get; set; } [System.Runtime.Serialization.DataMember()] diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_mwaa_2020_07_01_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_mwaa_2020_07_01_.cs index 52c14ee1..b51ed157 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_mwaa_2020_07_01_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_mwaa_2020_07_01_.cs @@ -1210,8 +1210,7 @@ public class CreateEnvironmentPutBody /// Pattern: ^[0-9a-z.]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-z.]+$")] public string AirflowVersion { get; set; } @@ -1224,8 +1223,7 @@ public class CreateEnvironmentPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string DagS3Path { get; set; } @@ -1235,8 +1233,7 @@ public class CreateEnvironmentPutBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string EnvironmentClass { get; set; } /// @@ -1248,8 +1245,7 @@ public class CreateEnvironmentPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1224)] + [System.ComponentModel.DataAnnotations.Length(1, 1224)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws(-[a-z]+)?:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+$")] public string ExecutionRoleArn { get; set; } @@ -1260,8 +1256,7 @@ public class CreateEnvironmentPutBody /// Pattern: ^(((arn:aws(-[a-z]+)?:kms:[a-z]{2}-[a-z]+-\d:\d+:)?key\/)?[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|(arn:aws(-[a-z]+)?:kms:[a-z]{2}-[a-z]+-\d:\d+:)?alias/.+)$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1224)] + [System.ComponentModel.DataAnnotations.Length(1, 1224)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(((arn:aws(-[a-z]+)?:kms:[a-z]{2}-[a-z]+-\d:\d+:)?key\/)?[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|(arn:aws(-[a-z]+)?:kms:[a-z]{2}-[a-z]+-\d:\d+:)?alias/.+)$")] public string KmsKey { get; set; } @@ -1301,8 +1296,7 @@ public class CreateEnvironmentPutBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string PluginsS3ObjectVersion { get; set; } /// @@ -1312,8 +1306,7 @@ public class CreateEnvironmentPutBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string PluginsS3Path { get; set; } @@ -1323,8 +1316,7 @@ public class CreateEnvironmentPutBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string RequirementsS3ObjectVersion { get; set; } /// @@ -1334,8 +1326,7 @@ public class CreateEnvironmentPutBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string RequirementsS3Path { get; set; } @@ -1356,8 +1347,7 @@ public class CreateEnvironmentPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1224)] + [System.ComponentModel.DataAnnotations.Length(1, 1224)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws(-[a-z]+)?:s3:::[a-z0-9.\-]+$")] public string SourceBucketArn { get; set; } @@ -1367,8 +1357,7 @@ public class CreateEnvironmentPutBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string StartupScriptS3ObjectVersion { get; set; } /// @@ -1378,8 +1367,7 @@ public class CreateEnvironmentPutBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string StartupScriptS3Path { get; set; } @@ -1402,8 +1390,7 @@ public class CreateEnvironmentPutBody /// Pattern: (MON|TUE|WED|THU|FRI|SAT|SUN):([01]\d|2[0-3]):(00|30) /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(9)] + [System.ComponentModel.DataAnnotations.Length(1, 9)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(MON|TUE|WED|THU|FRI|SAT|SUN):([01]\d|2[0-3]):(00|30)")] public string WeeklyMaintenanceWindowStart { get; set; } } @@ -1453,8 +1440,7 @@ public class UpdateEnvironmentPatchBody /// Pattern: ^[0-9a-z.]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-z.]+$")] public string AirflowVersion { get; set; } @@ -1465,8 +1451,7 @@ public class UpdateEnvironmentPatchBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string DagS3Path { get; set; } @@ -1476,8 +1461,7 @@ public class UpdateEnvironmentPatchBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string EnvironmentClass { get; set; } /// @@ -1487,8 +1471,7 @@ public class UpdateEnvironmentPatchBody /// Pattern: ^arn:aws(-[a-z]+)?:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1224)] + [System.ComponentModel.DataAnnotations.Length(1, 1224)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws(-[a-z]+)?:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+$")] public string ExecutionRoleArn { get; set; } @@ -1526,8 +1509,7 @@ public class UpdateEnvironmentPatchBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string PluginsS3ObjectVersion { get; set; } /// @@ -1537,8 +1519,7 @@ public class UpdateEnvironmentPatchBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string PluginsS3Path { get; set; } @@ -1548,8 +1529,7 @@ public class UpdateEnvironmentPatchBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string RequirementsS3ObjectVersion { get; set; } /// @@ -1559,8 +1539,7 @@ public class UpdateEnvironmentPatchBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string RequirementsS3Path { get; set; } @@ -1579,8 +1558,7 @@ public class UpdateEnvironmentPatchBody /// Pattern: ^arn:aws(-[a-z]+)?:s3:::[a-z0-9.\-]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1224)] + [System.ComponentModel.DataAnnotations.Length(1, 1224)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws(-[a-z]+)?:s3:::[a-z0-9.\-]+$")] public string SourceBucketArn { get; set; } @@ -1590,8 +1568,7 @@ public class UpdateEnvironmentPatchBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string StartupScriptS3ObjectVersion { get; set; } /// @@ -1601,8 +1578,7 @@ public class UpdateEnvironmentPatchBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string StartupScriptS3Path { get; set; } @@ -1619,8 +1595,7 @@ public class UpdateEnvironmentPatchBody /// Pattern: (MON|TUE|WED|THU|FRI|SAT|SUN):([01]\d|2[0-3]):(00|30) /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(9)] + [System.ComponentModel.DataAnnotations.Length(1, 9)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(MON|TUE|WED|THU|FRI|SAT|SUN):([01]\d|2[0-3]):(00|30)")] public string WeeklyMaintenanceWindowStart { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_networkmanager_2019_07_05_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_networkmanager_2019_07_05_.cs index 5289eb04..42b7ebd1 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_networkmanager_2019_07_05_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_networkmanager_2019_07_05_.cs @@ -6696,8 +6696,7 @@ public class AssociateConnectPeerPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^connect-peer-([0-9a-f]{8,17})$")] public string ConnectPeerId { get; set; } @@ -6710,8 +6709,7 @@ public class AssociateConnectPeerPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string DeviceId { get; set; } @@ -6722,8 +6720,7 @@ public class AssociateConnectPeerPostBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string LinkId { get; set; } } @@ -6740,8 +6737,7 @@ public class AssociateCustomerGatewayPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string CustomerGatewayArn { get; set; } @@ -6754,8 +6750,7 @@ public class AssociateCustomerGatewayPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string DeviceId { get; set; } @@ -6766,8 +6761,7 @@ public class AssociateCustomerGatewayPostBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string LinkId { get; set; } } @@ -6784,8 +6778,7 @@ public class AssociateLinkPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string DeviceId { get; set; } @@ -6798,8 +6791,7 @@ public class AssociateLinkPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string LinkId { get; set; } } @@ -6816,8 +6808,7 @@ public class AssociateTransitGatewayConnectPeerPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string TransitGatewayConnectPeerArn { get; set; } @@ -6830,8 +6821,7 @@ public class AssociateTransitGatewayConnectPeerPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string DeviceId { get; set; } @@ -6842,8 +6832,7 @@ public class AssociateTransitGatewayConnectPeerPostBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string LinkId { get; set; } } @@ -6860,8 +6849,7 @@ public class CreateConnectAttachmentPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^core-network-([0-9a-f]{8,17})$")] public string CoreNetworkId { get; set; } @@ -6874,8 +6862,7 @@ public class CreateConnectAttachmentPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string EdgeLocation { get; set; } @@ -6888,8 +6875,7 @@ public class CreateConnectAttachmentPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^attachment-([0-9a-f]{8,17})$")] public string TransportAttachmentId { get; set; } @@ -6914,8 +6900,7 @@ public class CreateConnectAttachmentPostBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string ClientToken { get; set; } } @@ -6939,8 +6924,7 @@ public class CreateConnectPeerPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^attachment-([0-9a-f]{8,17})$")] public string ConnectAttachmentId { get; set; } @@ -6951,8 +6935,7 @@ public class CreateConnectPeerPostBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string CoreNetworkAddress { get; set; } @@ -6965,8 +6948,7 @@ public class CreateConnectPeerPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string PeerAddress { get; set; } @@ -6997,8 +6979,7 @@ public class CreateConnectPeerPostBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string ClientToken { get; set; } } @@ -7022,8 +7003,7 @@ public class CreateConnectionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string DeviceId { get; set; } @@ -7036,8 +7016,7 @@ public class CreateConnectionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string ConnectedDeviceId { get; set; } @@ -7048,8 +7027,7 @@ public class CreateConnectionPostBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string LinkId { get; set; } @@ -7060,8 +7038,7 @@ public class CreateConnectionPostBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string ConnectedLinkId { get; set; } @@ -7072,8 +7049,7 @@ public class CreateConnectionPostBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string Description { get; set; } @@ -7096,8 +7072,7 @@ public class CreateCoreNetworkPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string GlobalNetworkId { get; set; } @@ -7108,8 +7083,7 @@ public class CreateCoreNetworkPostBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string Description { get; set; } @@ -7126,8 +7100,7 @@ public class CreateCoreNetworkPostBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10000000)] + [System.ComponentModel.DataAnnotations.Length(0, 10000000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string PolicyDocument { get; set; } @@ -7138,8 +7111,7 @@ public class CreateCoreNetworkPostBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string ClientToken { get; set; } } @@ -7160,8 +7132,7 @@ public class CreateDevicePostBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string Description { get; set; } @@ -7172,8 +7143,7 @@ public class CreateDevicePostBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string Type { get; set; } @@ -7184,8 +7154,7 @@ public class CreateDevicePostBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string Vendor { get; set; } @@ -7196,8 +7165,7 @@ public class CreateDevicePostBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string Model { get; set; } @@ -7208,8 +7176,7 @@ public class CreateDevicePostBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string SerialNumber { get; set; } @@ -7226,8 +7193,7 @@ public class CreateDevicePostBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string SiteId { get; set; } @@ -7271,8 +7237,7 @@ public class CreateGlobalNetworkPostBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string Description { get; set; } @@ -7293,8 +7258,7 @@ public class CreateLinkPostBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string Description { get; set; } @@ -7305,8 +7269,7 @@ public class CreateLinkPostBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string Type { get; set; } @@ -7325,8 +7288,7 @@ public class CreateLinkPostBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string Provider { get; set; } @@ -7339,8 +7301,7 @@ public class CreateLinkPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string SiteId { get; set; } @@ -7371,8 +7332,7 @@ public class CreateSitePostBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string Description { get; set; } @@ -7414,8 +7374,7 @@ public class CreateSiteToSiteVpnAttachmentPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^core-network-([0-9a-f]{8,17})$")] public string CoreNetworkId { get; set; } @@ -7428,8 +7387,7 @@ public class CreateSiteToSiteVpnAttachmentPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:[^:]{1,63}:ec2:[^:]{0,63}:[^:]{0,63}:vpn-connection\/vpn-[0-9a-f]{8,17}$")] public string VpnConnectionArn { get; set; } @@ -7446,8 +7404,7 @@ public class CreateSiteToSiteVpnAttachmentPostBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string ClientToken { get; set; } } @@ -7464,8 +7421,7 @@ public class CreateTransitGatewayPeeringPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^core-network-([0-9a-f]{8,17})$")] public string CoreNetworkId { get; set; } @@ -7478,8 +7434,7 @@ public class CreateTransitGatewayPeeringPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string TransitGatewayArn { get; set; } @@ -7496,8 +7451,7 @@ public class CreateTransitGatewayPeeringPostBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string ClientToken { get; set; } } @@ -7514,8 +7468,7 @@ public class CreateTransitGatewayRouteTableAttachmentPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^peering-([0-9a-f]{8,17})$")] public string PeeringId { get; set; } @@ -7528,8 +7481,7 @@ public class CreateTransitGatewayRouteTableAttachmentPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string TransitGatewayRouteTableArn { get; set; } @@ -7546,8 +7498,7 @@ public class CreateTransitGatewayRouteTableAttachmentPostBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string ClientToken { get; set; } } @@ -7564,8 +7515,7 @@ public class CreateVpcAttachmentPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^core-network-([0-9a-f]{8,17})$")] public string CoreNetworkId { get; set; } @@ -7578,8 +7528,7 @@ public class CreateVpcAttachmentPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:[^:]{1,63}:ec2:[^:]{0,63}:[^:]{0,63}:vpc\/vpc-[0-9a-f]{8,17}$")] public string VpcArn { get; set; } @@ -7610,8 +7559,7 @@ public class CreateVpcAttachmentPostBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string ClientToken { get; set; } } @@ -7636,8 +7584,7 @@ public class UpdateConnectionPatchBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string LinkId { get; set; } @@ -7648,8 +7595,7 @@ public class UpdateConnectionPatchBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string ConnectedLinkId { get; set; } @@ -7660,8 +7606,7 @@ public class UpdateConnectionPatchBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string Description { get; set; } } @@ -7676,8 +7621,7 @@ public class UpdateCoreNetworkPatchBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string Description { get; set; } } @@ -7698,8 +7642,7 @@ public class UpdateDevicePatchBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string Description { get; set; } @@ -7710,8 +7653,7 @@ public class UpdateDevicePatchBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string Type { get; set; } @@ -7722,8 +7664,7 @@ public class UpdateDevicePatchBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string Vendor { get; set; } @@ -7734,8 +7675,7 @@ public class UpdateDevicePatchBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string Model { get; set; } @@ -7746,8 +7686,7 @@ public class UpdateDevicePatchBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string SerialNumber { get; set; } @@ -7764,8 +7703,7 @@ public class UpdateDevicePatchBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string SiteId { get; set; } } @@ -7803,8 +7741,7 @@ public class UpdateGlobalNetworkPatchBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string Description { get; set; } } @@ -7819,8 +7756,7 @@ public class UpdateLinkPatchBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string Description { get; set; } @@ -7831,8 +7767,7 @@ public class UpdateLinkPatchBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string Type { get; set; } @@ -7849,8 +7784,7 @@ public class UpdateLinkPatchBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string Provider { get; set; } } @@ -7877,8 +7811,7 @@ public class PutResourcePolicyPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10000000)] + [System.ComponentModel.DataAnnotations.Length(0, 10000000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string PolicyDocument { get; set; } } @@ -7893,8 +7826,7 @@ public class UpdateSitePatchBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string Description { get; set; } @@ -7930,8 +7862,7 @@ public class PutCoreNetworkPolicyPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10000000)] + [System.ComponentModel.DataAnnotations.Length(0, 10000000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string PolicyDocument { get; set; } @@ -7942,8 +7873,7 @@ public class PutCoreNetworkPolicyPostBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string Description { get; set; } @@ -7960,8 +7890,7 @@ public class PutCoreNetworkPolicyPostBody /// Pattern: [\s\S]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string ClientToken { get; set; } } @@ -8048,8 +7977,7 @@ public class RegisterTransitGatewayPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]*")] public string TransitGatewayArn { get; set; } } @@ -8097,8 +8025,7 @@ public class StartOrganizationServiceAccessUpdatePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public string Action { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_nimble_2020_08_01_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_nimble_2020_08_01_.cs index 8e7089cf..25a8f83a 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_nimble_2020_08_01_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_nimble_2020_08_01_.cs @@ -4234,8 +4234,7 @@ public class CreateLaunchProfilePostBody /// Max length: 256 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string Description { get; set; } /// @@ -4246,8 +4245,7 @@ public class CreateLaunchProfilePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="ec2SubnetIds")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(6)] + [System.ComponentModel.DataAnnotations.Length(0, 6)] public string[] Ec2SubnetIds { get; set; } /// @@ -4266,8 +4264,7 @@ public class CreateLaunchProfilePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string Name { get; set; } /// @@ -4286,8 +4283,7 @@ public class CreateLaunchProfilePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="studioComponentIds")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] StudioComponentIds { get; set; } /// @@ -4340,8 +4336,7 @@ public class CreateStreamingImagePostBody /// Max length: 256 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string Description { get; set; } /// @@ -4362,8 +4357,7 @@ public class CreateStreamingImagePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(0, 64)] public string Name { get; set; } /// @@ -4403,8 +4397,7 @@ public class CreateStreamingSessionPostBody /// Pattern: ^[a-zA-Z0-9-_]*$ /// [System.Runtime.Serialization.DataMember(Name="streamingImageId")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(22)] + [System.ComponentModel.DataAnnotations.Length(0, 22)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_]*$")] public string StreamingImageId { get; set; } @@ -4483,8 +4476,7 @@ public class CreateStudioPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="adminRoleArn")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] public string AdminRoleArn { get; set; } /// @@ -4495,8 +4487,7 @@ public class CreateStudioPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="displayName")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(0, 64)] public string DisplayName { get; set; } /// @@ -4514,8 +4505,7 @@ public class CreateStudioPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="studioName")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(3, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-z0-9]*$")] public string StudioName { get; set; } @@ -4533,8 +4523,7 @@ public class CreateStudioPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="userRoleArn")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] public string UserRoleArn { get; set; } } @@ -4563,8 +4552,7 @@ public class CreateStudioComponentPostBody /// Max length: 256 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string Description { get; set; } /// @@ -4573,8 +4561,7 @@ public class CreateStudioComponentPostBody /// Maximum items: 30 /// [System.Runtime.Serialization.DataMember(Name="ec2SecurityGroupIds")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(30)] + [System.ComponentModel.DataAnnotations.Length(0, 30)] public string[] Ec2SecurityGroupIds { get; set; } /// @@ -4591,8 +4578,7 @@ public class CreateStudioComponentPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(0, 64)] public string Name { get; set; } /// @@ -4601,8 +4587,7 @@ public class CreateStudioComponentPostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="runtimeRoleArn")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] public string RuntimeRoleArn { get; set; } /// @@ -4611,8 +4596,7 @@ public class CreateStudioComponentPostBody /// Maximum items: 30 /// [System.Runtime.Serialization.DataMember(Name="scriptParameters")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(30)] + [System.ComponentModel.DataAnnotations.Length(0, 30)] public ScriptParameterKeyValue[] ScriptParameters { get; set; } /// @@ -4621,8 +4605,7 @@ public class CreateStudioComponentPostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="secureInitializationRoleArn")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] public string SecureInitializationRoleArn { get; set; } /// @@ -4671,8 +4654,7 @@ public class UpdateLaunchProfilePatchBody /// Max length: 256 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string Description { get; set; } /// @@ -4687,8 +4669,7 @@ public class UpdateLaunchProfilePatchBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string Name { get; set; } /// @@ -4703,8 +4684,7 @@ public class UpdateLaunchProfilePatchBody /// Maximum items: 100 /// [System.Runtime.Serialization.DataMember(Name="studioComponentIds")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] StudioComponentIds { get; set; } } @@ -4763,8 +4743,7 @@ public class UpdateStreamingImagePatchBody /// Max length: 256 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string Description { get; set; } /// @@ -4773,8 +4752,7 @@ public class UpdateStreamingImagePatchBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(0, 64)] public string Name { get; set; } } @@ -4787,8 +4765,7 @@ public class UpdateStudioPatchBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="adminRoleArn")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] public string AdminRoleArn { get; set; } /// @@ -4797,8 +4774,7 @@ public class UpdateStudioPatchBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="displayName")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(0, 64)] public string DisplayName { get; set; } /// @@ -4807,8 +4783,7 @@ public class UpdateStudioPatchBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="userRoleArn")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] public string UserRoleArn { get; set; } } @@ -4827,8 +4802,7 @@ public class UpdateStudioComponentPatchBody /// Max length: 256 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string Description { get; set; } /// @@ -4837,8 +4811,7 @@ public class UpdateStudioComponentPatchBody /// Maximum items: 30 /// [System.Runtime.Serialization.DataMember(Name="ec2SecurityGroupIds")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(30)] + [System.ComponentModel.DataAnnotations.Length(0, 30)] public string[] Ec2SecurityGroupIds { get; set; } /// @@ -4853,8 +4826,7 @@ public class UpdateStudioComponentPatchBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(0, 64)] public string Name { get; set; } /// @@ -4863,8 +4835,7 @@ public class UpdateStudioComponentPatchBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="runtimeRoleArn")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] public string RuntimeRoleArn { get; set; } /// @@ -4873,8 +4844,7 @@ public class UpdateStudioComponentPatchBody /// Maximum items: 30 /// [System.Runtime.Serialization.DataMember(Name="scriptParameters")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(30)] + [System.ComponentModel.DataAnnotations.Length(0, 30)] public ScriptParameterKeyValue[] ScriptParameters { get; set; } /// @@ -4883,8 +4853,7 @@ public class UpdateStudioComponentPatchBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="secureInitializationRoleArn")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] public string SecureInitializationRoleArn { get; set; } /// @@ -4935,8 +4904,7 @@ public class PutLaunchProfileMembersPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="members")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(1, 20)] public NewLaunchProfileMember[] Members { get; set; } } @@ -4959,8 +4927,7 @@ public class PutStudioMembersPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="members")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(1, 20)] public NewStudioMember[] Members { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_oam_2022_06_10_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_oam_2022_06_10_.cs index 641a886f..a50fee46 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_oam_2022_06_10_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_oam_2022_06_10_.cs @@ -1028,8 +1028,7 @@ public class CreateLinkPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string LabelTemplate { get; set; } /// @@ -1040,8 +1039,7 @@ public class CreateLinkPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public ResourceType[] ResourceTypes { get; set; } /// @@ -1273,8 +1271,7 @@ public class UpdateLinkPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public ResourceType[] ResourceTypes { get; set; } } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_omics_2022_11_28_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_omics_2022_11_28_.cs index 0686a1ae..2aa47ff3 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_omics_2022_11_28_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_omics_2022_11_28_.cs @@ -7579,8 +7579,7 @@ public class BatchDeleteReadSetPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="ids")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] Ids { get; set; } } @@ -7619,8 +7618,7 @@ public class CreateAnnotationStorePostBody /// Max length: 500 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] public string Description { get; set; } /// @@ -7684,8 +7682,7 @@ public class CreateMultipartReadSetUploadPostBody /// Pattern: [\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(1, 127)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+")] public string ClientToken { get; set; } @@ -7706,8 +7703,7 @@ public class CreateMultipartReadSetUploadPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="subjectId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(1, 127)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+")] public string SubjectId { get; set; } @@ -7720,8 +7716,7 @@ public class CreateMultipartReadSetUploadPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sampleId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(1, 127)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+")] public string SampleId { get; set; } @@ -7732,8 +7727,7 @@ public class CreateMultipartReadSetUploadPostBody /// Pattern: [\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+ /// [System.Runtime.Serialization.DataMember(Name="generatedFrom")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(1, 127)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+")] public string GeneratedFrom { get; set; } @@ -7746,8 +7740,7 @@ public class CreateMultipartReadSetUploadPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="referenceArn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(1, 127)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:.+")] public string ReferenceArn { get; set; } @@ -7760,8 +7753,7 @@ public class CreateMultipartReadSetUploadPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(1, 127)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+")] public string Name { get; set; } @@ -7772,8 +7764,7 @@ public class CreateMultipartReadSetUploadPostBody /// Pattern: [\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+ /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+")] public string Description { get; set; } @@ -7796,8 +7787,7 @@ public class CreateReferenceStorePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(1, 127)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+")] public string Name { get; set; } @@ -7808,8 +7798,7 @@ public class CreateReferenceStorePostBody /// Pattern: [\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+ /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+")] public string Description { get; set; } @@ -7832,8 +7821,7 @@ public class CreateReferenceStorePostBody /// Pattern: [\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(1, 127)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+")] public string ClientToken { get; set; } } @@ -7858,8 +7846,7 @@ public class CreateRunGroupPostBody /// Pattern: [\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+ /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+")] public string Name { get; set; } @@ -7905,8 +7892,7 @@ public class CreateRunGroupPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="requestId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+")] public string RequestId { get; set; } @@ -7932,8 +7918,7 @@ public class CreateSequenceStorePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(1, 127)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+")] public string Name { get; set; } @@ -7944,8 +7929,7 @@ public class CreateSequenceStorePostBody /// Pattern: [\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+ /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+")] public string Description { get; set; } @@ -7968,8 +7952,7 @@ public class CreateSequenceStorePostBody /// Pattern: [\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(1, 127)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+")] public string ClientToken { get; set; } @@ -8017,8 +8000,7 @@ public class CreateVariantStorePostBody /// Max length: 500 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] public string Description { get; set; } /// @@ -8061,8 +8043,7 @@ public class CreateWorkflowPostBody /// Pattern: [\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+ /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+")] public string Name { get; set; } @@ -8073,8 +8054,7 @@ public class CreateWorkflowPostBody /// Pattern: [\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+ /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+")] public string Description { get; set; } @@ -8084,8 +8064,7 @@ public class CreateWorkflowPostBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="engine")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public WorkflowEngine Engine { get; set; } /// @@ -8101,8 +8080,7 @@ public class CreateWorkflowPostBody /// Pattern: [\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+ /// [System.Runtime.Serialization.DataMember(Name="definitionUri")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+")] public string DefinitionUri { get; set; } @@ -8113,8 +8091,7 @@ public class CreateWorkflowPostBody /// Pattern: [\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+ /// [System.Runtime.Serialization.DataMember(Name="main")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+")] public string Main { get; set; } @@ -8148,8 +8125,7 @@ public class CreateWorkflowPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="requestId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+")] public string RequestId { get; set; } @@ -8159,8 +8135,7 @@ public class CreateWorkflowPostBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="accelerators")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public Accelerators Accelerators { get; set; } } @@ -8173,8 +8148,7 @@ public class UpdateAnnotationStorePostBody /// Max length: 500 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] public string Description { get; set; } } @@ -8188,8 +8162,7 @@ public class UpdateRunGroupPostBody /// Pattern: [\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+ /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+")] public string Name { get; set; } @@ -8239,8 +8212,7 @@ public class UpdateVariantStorePostBody /// Max length: 500 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] public string Description { get; set; } } @@ -8254,8 +8226,7 @@ public class UpdateWorkflowPostBody /// Pattern: [\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+ /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+")] public string Name { get; set; } @@ -8266,8 +8237,7 @@ public class UpdateWorkflowPostBody /// Pattern: [\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+ /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+")] public string Description { get; set; } } @@ -8281,8 +8251,7 @@ public class ListAnnotationImportJobsPostBody /// Maximum items: 20 /// [System.Runtime.Serialization.DataMember(Name="ids")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(1, 20)] public string[] Ids { get; set; } /// @@ -8311,8 +8280,7 @@ public class ListAnnotationStoresPostBody /// Maximum items: 20 /// [System.Runtime.Serialization.DataMember(Name="ids")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(1, 20)] public string[] Ids { get; set; } /// @@ -8549,8 +8517,7 @@ public class StartRunPostBody /// Pattern: [0-9]+ /// [System.Runtime.Serialization.DataMember(Name="workflowId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(1, 18)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]+")] public string WorkflowId { get; set; } @@ -8560,8 +8527,7 @@ public class StartRunPostBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="workflowType")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public WorkflowType WorkflowType { get; set; } /// @@ -8571,8 +8537,7 @@ public class StartRunPostBody /// Pattern: [0-9]+ /// [System.Runtime.Serialization.DataMember(Name="runId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(1, 18)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]+")] public string RunId { get; set; } @@ -8585,8 +8550,7 @@ public class StartRunPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="roleArn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:.+")] public string RoleArn { get; set; } @@ -8597,8 +8561,7 @@ public class StartRunPostBody /// Pattern: [\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+ /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+")] public string Name { get; set; } @@ -8609,8 +8572,7 @@ public class StartRunPostBody /// Pattern: [0-9]+ /// [System.Runtime.Serialization.DataMember(Name="runGroupId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(1, 18)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]+")] public string RunGroupId { get; set; } @@ -8645,8 +8607,7 @@ public class StartRunPostBody /// Pattern: [\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+ /// [System.Runtime.Serialization.DataMember(Name="outputUri")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+")] public string OutputUri { get; set; } @@ -8656,8 +8617,7 @@ public class StartRunPostBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="logLevel")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public RunLogLevel LogLevel { get; set; } /// @@ -8675,8 +8635,7 @@ public class StartRunPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="requestId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+")] public string RequestId { get; set; } } @@ -8725,8 +8684,7 @@ public class ListVariantImportJobsPostBody /// Maximum items: 20 /// [System.Runtime.Serialization.DataMember(Name="ids")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(1, 20)] public string[] Ids { get; set; } /// @@ -8755,8 +8713,7 @@ public class ListVariantStoresPostBody /// Maximum items: 20 /// [System.Runtime.Serialization.DataMember(Name="ids")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(1, 20)] public string[] Ids { get; set; } /// @@ -8785,8 +8742,7 @@ public class StartAnnotationImportJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="destinationName")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(3, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"([a-z]){1}([a-z0-9_]){2,254}")] public string DestinationName { get; set; } @@ -8799,8 +8755,7 @@ public class StartAnnotationImportJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="roleArn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:([^: ]*):([^: ]*):([^: ]*):([0-9]{12}):([^: ]*)")] public string RoleArn { get; set; } @@ -8853,8 +8808,7 @@ public class StartReadSetActivationJobPostBody /// Pattern: [\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(1, 127)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+")] public string ClientToken { get; set; } @@ -8866,8 +8820,7 @@ public class StartReadSetActivationJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sources")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(1, 20)] public StartReadSetActivationJobSourceItem[] Sources { get; set; } } @@ -8893,8 +8846,7 @@ public class StartReadSetExportJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="roleArn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:.*")] public string RoleArn { get; set; } @@ -8905,8 +8857,7 @@ public class StartReadSetExportJobPostBody /// Pattern: [\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(1, 127)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+")] public string ClientToken { get; set; } @@ -8918,8 +8869,7 @@ public class StartReadSetExportJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sources")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public ExportReadSet[] Sources { get; set; } } @@ -8935,8 +8885,7 @@ public class StartReadSetImportJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="roleArn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:.*")] public string RoleArn { get; set; } @@ -8947,8 +8896,7 @@ public class StartReadSetImportJobPostBody /// Pattern: [\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(1, 127)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+")] public string ClientToken { get; set; } @@ -8960,8 +8908,7 @@ public class StartReadSetImportJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sources")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public StartReadSetImportJobSourceItem[] Sources { get; set; } } @@ -8977,8 +8924,7 @@ public class StartReferenceImportJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="roleArn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:.*")] public string RoleArn { get; set; } @@ -8989,8 +8935,7 @@ public class StartReferenceImportJobPostBody /// Pattern: [\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(127)] + [System.ComponentModel.DataAnnotations.Length(1, 127)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+")] public string ClientToken { get; set; } @@ -9002,8 +8947,7 @@ public class StartReferenceImportJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sources")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public StartReferenceImportJobSourceItem[] Sources { get; set; } } @@ -9019,8 +8963,7 @@ public class StartVariantImportJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="destinationName")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(3, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"([a-z]){1}([a-z0-9_]){2,254}")] public string DestinationName { get; set; } @@ -9033,8 +8976,7 @@ public class StartVariantImportJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="roleArn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:([^: ]*):([^: ]*):([^: ]*):([0-9]{12}):([^: ]*)")] public string RoleArn { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_opensearch_2021_01_01_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_opensearch_2021_01_01_.cs index 72e5146b..f87ce95a 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_opensearch_2021_01_01_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_opensearch_2021_01_01_.cs @@ -6356,8 +6356,7 @@ public class AddTagsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string ARN { get; set; } @@ -6396,8 +6395,7 @@ public class CancelServiceSoftwareUpdatePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } } @@ -6414,8 +6412,7 @@ public class CreateDomainPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } @@ -6426,8 +6423,7 @@ public class CreateDomainPostBody /// Pattern: ^Elasticsearch_[0-9]{1}\.[0-9]{1,2}$|^OpenSearch_[0-9]{1,2}\.[0-9]{1,2}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(14)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(14, 18)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^Elasticsearch_[0-9]{1}\.[0-9]{1,2}$|^OpenSearch_[0-9]{1,2}\.[0-9]{1,2}$")] public string EngineVersion { get; set; } @@ -6450,8 +6446,7 @@ public class CreateDomainPostBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(102400)] + [System.ComponentModel.DataAnnotations.Length(0, 102400)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string AccessPolicies { get; set; } @@ -6739,8 +6734,7 @@ public class CreateOutboundConnectionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(2, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z][a-zA-Z0-9\-\_]+")] public string ConnectionAlias { get; set; } @@ -6793,8 +6787,7 @@ public class CreatePackagePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string PackageName { get; set; } @@ -6853,8 +6846,7 @@ public class CreateVpcEndpointPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws[a-z\-]*:[a-z]+:[a-z0-9\-]+:[0-9]+:domain\/[a-z0-9\-]+")] public string DomainArn { get; set; } @@ -6872,8 +6864,7 @@ public class CreateVpcEndpointPostBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string ClientToken { get; set; } } @@ -6933,8 +6924,7 @@ public class UpdateDomainConfigPostBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(102400)] + [System.ComponentModel.DataAnnotations.Length(0, 102400)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string AccessPolicies { get; set; } @@ -7576,8 +7566,7 @@ public class PurchaseReservedInstanceOfferingPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\p{XDigit}{8}-\p{XDigit}{4}-\p{XDigit}{4}-\p{XDigit}{4}-\p{XDigit}{12}")] public string ReservedInstanceOfferingId { get; set; } @@ -7590,8 +7579,7 @@ public class PurchaseReservedInstanceOfferingPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(5, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string ReservationName { get; set; } @@ -7616,8 +7604,7 @@ public class RemoveTagsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string ARN { get; set; } @@ -7656,8 +7643,7 @@ public class StartServiceSoftwareUpdatePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } @@ -7766,8 +7752,7 @@ public class UpdateVpcEndpointPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(5, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^aos-[a-zA-Z0-9]*$")] public string VpcEndpointId { get; set; } @@ -7802,8 +7787,7 @@ public class UpgradeDomainPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string DomainName { get; set; } @@ -7816,8 +7800,7 @@ public class UpgradeDomainPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(14)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(14, 18)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^Elasticsearch_[0-9]{1}\.[0-9]{1,2}$|^OpenSearch_[0-9]{1,2}\.[0-9]{1,2}$")] public string TargetVersion { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_osis_2022_01_01_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_osis_2022_01_01_.cs index be8b8a64..10be96dd 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_osis_2022_01_01_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_osis_2022_01_01_.cs @@ -1086,8 +1086,7 @@ public class CreatePipelinePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(3, 28)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-z][a-z0-9\-]+")] public string PipelineName { get; set; } @@ -1121,8 +1120,7 @@ public class CreatePipelinePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(24000)] + [System.ComponentModel.DataAnnotations.Length(1, 24000)] public string PipelineConfigurationBody { get; set; } /// @@ -1215,8 +1213,7 @@ public class UpdatePipelinePutBody /// Max length: 24000 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(24000)] + [System.ComponentModel.DataAnnotations.Length(1, 24000)] public string PipelineConfigurationBody { get; set; } /// @@ -1247,8 +1244,7 @@ public class ValidatePipelinePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(24000)] + [System.ComponentModel.DataAnnotations.Length(1, 24000)] public string PipelineConfigurationBody { get; set; } } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_outposts_2019_12_03_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_outposts_2019_12_03_.cs index 0d5243bd..ff0f1000 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_outposts_2019_12_03_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_outposts_2019_12_03_.cs @@ -318,8 +318,7 @@ public class Outpost /// Pattern: \d{12} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\d{12}")] public string OwnerId { get; set; } @@ -330,8 +329,7 @@ public class Outpost /// Pattern: ^arn:aws([a-z-]+)?:outposts:[a-z\d-]+:\d{12}:outpost/op-[a-f0-9]{17}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws([a-z-]+)?:outposts:[a-z\d-]+:\d{12}:outpost/op-[a-f0-9]{17}$")] public string OutpostArn { get; set; } @@ -342,8 +340,7 @@ public class Outpost /// Pattern: ^(arn:aws([a-z-]+)?:outposts:[a-z\d-]+:\d{12}:site/)?(os-[a-f0-9]{17})$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(arn:aws([a-z-]+)?:outposts:[a-z\d-]+:\d{12}:site/)?(os-[a-f0-9]{17})$")] public string SiteId { get; set; } @@ -354,8 +351,7 @@ public class Outpost /// Pattern: ^[\S ]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\S ]+$")] public string Name { get; set; } @@ -366,8 +362,7 @@ public class Outpost /// Pattern: ^[\S ]*$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\S ]*$")] public string Description { get; set; } @@ -378,8 +373,7 @@ public class Outpost /// Pattern: ^[ A-Za-z]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(1, 20)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[ A-Za-z]+$")] public string LifeCycleStatus { get; set; } @@ -390,8 +384,7 @@ public class Outpost /// Pattern: ^([a-zA-Z]+-){1,3}([a-zA-Z]+)?(\d+[a-zA-Z]?)?$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^([a-zA-Z]+-){1,3}([a-zA-Z]+)?(\d+[a-zA-Z]?)?$")] public string AvailabilityZone { get; set; } @@ -402,8 +395,7 @@ public class Outpost /// Pattern: ^[a-zA-Z]+\d-[a-zA-Z]+\d$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z]+\d-[a-zA-Z]+\d$")] public string AvailabilityZoneId { get; set; } @@ -417,8 +409,7 @@ public class Outpost /// Pattern: ^arn:aws([a-z-]+)?:outposts:[a-z\d-]+:\d{12}:site/(os-[a-f0-9]{17})$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws([a-z-]+)?:outposts:[a-z\d-]+:\d{12}:site/(os-[a-f0-9]{17})$")] public string SiteArn { get; set; } @@ -467,8 +458,7 @@ public class Site /// Pattern: ^(arn:aws([a-z-]+)?:outposts:[a-z\d-]+:\d{12}:site/)?(os-[a-f0-9]{17})$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(arn:aws([a-z-]+)?:outposts:[a-z\d-]+:\d{12}:site/)?(os-[a-f0-9]{17})$")] public string SiteId { get; set; } @@ -479,8 +469,7 @@ public class Site /// Pattern: \d{12} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\d{12}")] public string AccountId { get; set; } @@ -491,8 +480,7 @@ public class Site /// Pattern: ^[\S ]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\S ]+$")] public string Name { get; set; } @@ -503,8 +491,7 @@ public class Site /// Pattern: ^[\S ]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1001)] + [System.ComponentModel.DataAnnotations.Length(1, 1001)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\S ]+$")] public string Description { get; set; } @@ -518,8 +505,7 @@ public class Site /// Pattern: ^arn:aws([a-z-]+)?:outposts:[a-z\d-]+:\d{12}:site/(os-[a-f0-9]{17})$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws([a-z-]+)?:outposts:[a-z\d-]+:\d{12}:site/(os-[a-f0-9]{17})$")] public string SiteArn { get; set; } @@ -919,8 +905,7 @@ public class GetOutpostInstanceTypesOutput /// Pattern: ^(\d+)##(\S+)$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(\d+)##(\S+)$")] public string NextToken { get; set; } @@ -934,8 +919,7 @@ public class GetOutpostInstanceTypesOutput /// Pattern: ^arn:aws([a-z-]+)?:outposts:[a-z\d-]+:\d{12}:outpost/op-[a-f0-9]{17}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws([a-z-]+)?:outposts:[a-z\d-]+:\d{12}:outpost/op-[a-f0-9]{17}$")] public string OutpostArn { get; set; } } @@ -976,8 +960,7 @@ public class GetSiteAddressOutput /// Pattern: ^(arn:aws([a-z-]+)?:outposts:[a-z\d-]+:\d{12}:site/)?(os-[a-f0-9]{17})$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(arn:aws([a-z-]+)?:outposts:[a-z\d-]+:\d{12}:site/)?(os-[a-f0-9]{17})$")] public string SiteId { get; set; } @@ -1074,8 +1057,7 @@ public class ListAssetsOutput /// Pattern: ^(\d+)##(\S+)$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(\d+)##(\S+)$")] public string NextToken { get; set; } } @@ -1178,8 +1160,7 @@ public class ListCatalogItemsOutput /// Pattern: ^(\d+)##(\S+)$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(\d+)##(\S+)$")] public string NextToken { get; set; } } @@ -1209,8 +1190,7 @@ public class ListOrdersOutput /// Pattern: ^(\d+)##(\S+)$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(\d+)##(\S+)$")] public string NextToken { get; set; } } @@ -1266,8 +1246,7 @@ public class ListOutpostsOutput /// Pattern: ^(\d+)##(\S+)$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(\d+)##(\S+)$")] public string NextToken { get; set; } } @@ -1289,8 +1268,7 @@ public class ListSitesOutput /// Pattern: ^(\d+)##(\S+)$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(\d+)##(\S+)$")] public string NextToken { get; set; } } @@ -1415,8 +1393,7 @@ public class CreateOutpostInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\S ]+$")] public string Name { get; set; } @@ -1427,8 +1404,7 @@ public class CreateOutpostInput /// Pattern: ^[\S ]*$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\S ]*$")] public string Description { get; set; } @@ -1446,8 +1422,7 @@ public class CreateOutpostInput /// Pattern: ^([a-zA-Z]+-){1,3}([a-zA-Z]+)?(\d+[a-zA-Z]?)?$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^([a-zA-Z]+-){1,3}([a-zA-Z]+)?(\d+[a-zA-Z]?)?$")] public string AvailabilityZone { get; set; } @@ -1458,8 +1433,7 @@ public class CreateOutpostInput /// Pattern: ^[a-zA-Z]+\d-[a-zA-Z]+\d$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z]+\d-[a-zA-Z]+\d$")] public string AvailabilityZoneId { get; set; } @@ -1483,8 +1457,7 @@ public class CreateSiteInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\S ]+$")] public string Name { get; set; } @@ -1495,8 +1468,7 @@ public class CreateSiteInput /// Pattern: ^[\S ]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1001)] + [System.ComponentModel.DataAnnotations.Length(1, 1001)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\S ]+$")] public string Description { get; set; } @@ -1652,8 +1624,7 @@ public class UpdateOutpostInput /// Pattern: ^[\S ]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\S ]+$")] public string Name { get; set; } @@ -1664,8 +1635,7 @@ public class UpdateOutpostInput /// Pattern: ^[\S ]*$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\S ]*$")] public string Description { get; set; } @@ -1703,8 +1673,7 @@ public class UpdateSiteInput /// Pattern: ^[\S ]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\S ]+$")] public string Name { get; set; } @@ -1715,8 +1684,7 @@ public class UpdateSiteInput /// Pattern: ^[\S ]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1001)] + [System.ComponentModel.DataAnnotations.Length(1, 1001)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\S ]+$")] public string Description { get; set; } @@ -2640,8 +2608,7 @@ public class CreateOrderPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(180)] + [System.ComponentModel.DataAnnotations.Length(1, 180)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(arn:aws([a-z-]+)?:outposts:[a-z\d-]+:\d{12}:outpost/)?op-[a-f0-9]{17}$")] public string OutpostIdentifier { get; set; } @@ -2653,8 +2620,7 @@ public class CreateOrderPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(1, 20)] public LineItemRequest[] LineItems { get; set; } /// @@ -2684,8 +2650,7 @@ public class CreateOutpostPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\S ]+$")] public string Name { get; set; } @@ -2696,8 +2661,7 @@ public class CreateOutpostPostBody /// Pattern: ^[\S ]*$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\S ]*$")] public string Description { get; set; } @@ -2710,8 +2674,7 @@ public class CreateOutpostPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(arn:aws([a-z-]+)?:outposts:[a-z\d-]+:\d{12}:site/)?(os-[a-f0-9]{17})$")] public string SiteId { get; set; } @@ -2722,8 +2685,7 @@ public class CreateOutpostPostBody /// Pattern: ^([a-zA-Z]+-){1,3}([a-zA-Z]+)?(\d+[a-zA-Z]?)?$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^([a-zA-Z]+-){1,3}([a-zA-Z]+)?(\d+[a-zA-Z]?)?$")] public string AvailabilityZone { get; set; } @@ -2734,8 +2696,7 @@ public class CreateOutpostPostBody /// Pattern: ^[a-zA-Z]+\d-[a-zA-Z]+\d$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z]+\d-[a-zA-Z]+\d$")] public string AvailabilityZoneId { get; set; } @@ -2764,8 +2725,7 @@ public class CreateSitePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\S ]+$")] public string Name { get; set; } @@ -2776,8 +2736,7 @@ public class CreateSitePostBody /// Pattern: ^[\S ]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1001)] + [System.ComponentModel.DataAnnotations.Length(1, 1001)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\S ]+$")] public string Description { get; set; } @@ -2788,8 +2747,7 @@ public class CreateSitePostBody /// Pattern: ^[\S \n]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2000)] + [System.ComponentModel.DataAnnotations.Length(1, 2000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\S \n]+$")] public string Notes { get; set; } @@ -2933,8 +2891,7 @@ public class UpdateOutpostPatchBody /// Pattern: ^[\S ]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\S ]+$")] public string Name { get; set; } @@ -2945,8 +2902,7 @@ public class UpdateOutpostPatchBody /// Pattern: ^[\S ]*$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\S ]*$")] public string Description { get; set; } @@ -2967,8 +2923,7 @@ public class UpdateSitePatchBody /// Pattern: ^[\S ]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\S ]+$")] public string Name { get; set; } @@ -2979,8 +2934,7 @@ public class UpdateSitePatchBody /// Pattern: ^[\S ]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1001)] + [System.ComponentModel.DataAnnotations.Length(1, 1001)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\S ]+$")] public string Description { get; set; } @@ -2991,8 +2945,7 @@ public class UpdateSitePatchBody /// Pattern: ^[\S \n]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2000)] + [System.ComponentModel.DataAnnotations.Length(1, 2000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\S \n]+$")] public string Notes { get; set; } } @@ -3021,8 +2974,7 @@ public class StartConnectionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(\w+)$")] public string DeviceSerialNumber { get; set; } @@ -3035,8 +2987,7 @@ public class StartConnectionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(\w+)$")] public string AssetId { get; set; } @@ -3049,8 +3000,7 @@ public class StartConnectionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(44)] - [System.ComponentModel.DataAnnotations.MaxLength(44)] + [System.ComponentModel.DataAnnotations.Length(44, 44)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9/+]{43}=$")] public string ClientPublicKey { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_panorama_2019_07_24_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_panorama_2019_07_24_.cs index f5265405..0ead5b7e 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_panorama_2019_07_24_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_panorama_2019_07_24_.cs @@ -3764,8 +3764,7 @@ public class CreateApplicationInstancePostBody /// Pattern: ^[a-zA-Z0-9\-\_]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9\-\_]+$")] public string ApplicationInstanceIdToReplace { get; set; } @@ -3778,8 +3777,7 @@ public class CreateApplicationInstancePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9\-\_]+$")] public string DefaultRuntimeContextDevice { get; set; } @@ -3790,8 +3788,7 @@ public class CreateApplicationInstancePostBody /// Pattern: ^.*$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^.*$")] public string Description { get; set; } @@ -3816,8 +3813,7 @@ public class CreateApplicationInstancePostBody /// Pattern: ^[a-zA-Z0-9\-\_]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9\-\_]+$")] public string Name { get; set; } @@ -3828,8 +3824,7 @@ public class CreateApplicationInstancePostBody /// Pattern: ^arn:[a-z0-9][-.a-z0-9]{0,62}:iam::[0-9]{12}:role/.+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:[a-z0-9][-.a-z0-9]{0,62}:iam::[0-9]{12}:role/.+$")] public string RuntimeRoleArn { get; set; } @@ -3865,8 +3860,7 @@ public class CreateJobForDevicesPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public string[] DeviceIds { get; set; } /// @@ -3907,8 +3901,7 @@ public class CreateNodeFromTemplateJobPostBody /// Pattern: ^.*$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^.*$")] public string NodeDescription { get; set; } @@ -3921,8 +3914,7 @@ public class CreateNodeFromTemplateJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9\-\_]+$")] public string NodeName { get; set; } @@ -3935,8 +3927,7 @@ public class CreateNodeFromTemplateJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9\-\_]+$")] public string OutputPackageName { get; set; } @@ -3949,8 +3940,7 @@ public class CreateNodeFromTemplateJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^([0-9]+)\.([0-9]+)$")] public string OutputPackageVersion { get; set; } @@ -3983,8 +3973,7 @@ public class CreatePackagePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9\-\_]+$")] public string PackageName { get; set; } @@ -4007,8 +3996,7 @@ public class CreatePackageImportJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9\-\_]+$")] public string ClientToken { get; set; } @@ -4067,8 +4055,7 @@ public class UpdateDeviceMetadataPutBody /// Pattern: ^.*$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^.*$")] public string Description { get; set; } } @@ -4089,8 +4076,7 @@ public class RegisterPackageVersionPutBody /// Pattern: ^[0-9a-z\_]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(1, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-z\_]+$")] public string OwnerAccount { get; set; } } @@ -4105,8 +4091,7 @@ public class ProvisionDevicePostBody /// Pattern: ^.*$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^.*$")] public string Description { get; set; } @@ -4119,8 +4104,7 @@ public class ProvisionDevicePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9\-\_]+$")] public string Name { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_payment_cryptography_data_2022_02_03_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_payment_cryptography_data_2022_02_03_.cs index 6fed73a1..ff124bb4 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_payment_cryptography_data_2022_02_03_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_payment_cryptography_data_2022_02_03_.cs @@ -2297,8 +2297,7 @@ public class DecryptDataPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(16)] - [System.ComponentModel.DataAnnotations.MaxLength(4096)] + [System.ComponentModel.DataAnnotations.Length(16, 4096)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?:[0-9a-fA-F][0-9a-fA-F])+$")] public string CipherText { get; set; } @@ -2350,8 +2349,7 @@ public class EncryptDataPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(16)] - [System.ComponentModel.DataAnnotations.MaxLength(4064)] + [System.ComponentModel.DataAnnotations.Length(16, 4064)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?:[0-9a-fA-F][0-9a-fA-F])+$")] public string PlainText { get; set; } } @@ -2395,8 +2393,7 @@ public class GenerateCardValidationDataPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(322)] + [System.ComponentModel.DataAnnotations.Length(7, 322)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:payment-cryptography:[a-z]{2}-[a-z]{1,16}-[0-9]+:[0-9]{12}:(key/[0-9a-zA-Z]{16,64}|alias/[a-zA-Z0-9/_-]+)$|^alias/[a-zA-Z0-9/_-]+$")] public string KeyIdentifier { get; set; } @@ -2409,8 +2406,7 @@ public class GenerateCardValidationDataPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(12, 19)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9]+$")] public string PrimaryAccountNumber { get; set; } @@ -2472,8 +2468,7 @@ public class GenerateMacPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(322)] + [System.ComponentModel.DataAnnotations.Length(7, 322)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:payment-cryptography:[a-z]{2}-[a-z]{1,16}-[0-9]+:[0-9]{12}:(key/[0-9a-zA-Z]{16,64}|alias/[a-zA-Z0-9/_-]+)$|^alias/[a-zA-Z0-9/_-]+$")] public string KeyIdentifier { get; set; } @@ -2495,8 +2490,7 @@ public class GenerateMacPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(4096)] + [System.ComponentModel.DataAnnotations.Length(2, 4096)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-fA-F]+$")] public string MessageData { get; set; } } @@ -2532,8 +2526,7 @@ public class GeneratePinDataPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(322)] + [System.ComponentModel.DataAnnotations.Length(7, 322)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:payment-cryptography:[a-z]{2}-[a-z]{1,16}-[0-9]+:[0-9]{12}:(key/[0-9a-zA-Z]{16,64}|alias/[a-zA-Z0-9/_-]+)$|^alias/[a-zA-Z0-9/_-]+$")] public string EncryptionKeyIdentifier { get; set; } @@ -2554,8 +2547,7 @@ public class GeneratePinDataPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(322)] + [System.ComponentModel.DataAnnotations.Length(7, 322)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:payment-cryptography:[a-z]{2}-[a-z]{1,16}-[0-9]+:[0-9]{12}:(key/[0-9a-zA-Z]{16,64}|alias/[a-zA-Z0-9/_-]+)$|^alias/[a-zA-Z0-9/_-]+$")] public string GenerationKeyIdentifier { get; set; } @@ -2585,8 +2577,7 @@ public class GeneratePinDataPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(12, 19)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9]+$")] public string PrimaryAccountNumber { get; set; } } @@ -2625,8 +2616,7 @@ public class ReEncryptDataPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(16)] - [System.ComponentModel.DataAnnotations.MaxLength(4096)] + [System.ComponentModel.DataAnnotations.Length(16, 4096)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?:[0-9a-fA-F][0-9a-fA-F])+$")] public string CipherText { get; set; } @@ -2655,8 +2645,7 @@ public class ReEncryptDataPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(322)] + [System.ComponentModel.DataAnnotations.Length(7, 322)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:payment-cryptography:[a-z]{2}-[a-z]{1,16}-[0-9]+:[0-9]{12}:(key/[0-9a-zA-Z]{16,64}|alias/[a-zA-Z0-9/_-]+)$|^alias/[a-zA-Z0-9/_-]+$")] public string OutgoingKeyIdentifier { get; set; } } @@ -2699,8 +2688,7 @@ public class TranslatePinDataPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(16)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(16, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-fA-F]+$")] public string EncryptedPinBlock { get; set; } @@ -2719,8 +2707,7 @@ public class TranslatePinDataPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(322)] + [System.ComponentModel.DataAnnotations.Length(7, 322)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:payment-cryptography:[a-z]{2}-[a-z]{1,16}-[0-9]+:[0-9]{12}:(key/[0-9a-zA-Z]{16,64}|alias/[a-zA-Z0-9/_-]+)$|^alias/[a-zA-Z0-9/_-]+$")] public string IncomingKeyIdentifier { get; set; } @@ -2747,8 +2734,7 @@ public class TranslatePinDataPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(322)] + [System.ComponentModel.DataAnnotations.Length(7, 322)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:payment-cryptography:[a-z]{2}-[a-z]{1,16}-[0-9]+:[0-9]{12}:(key/[0-9a-zA-Z]{16,64}|alias/[a-zA-Z0-9/_-]+)$|^alias/[a-zA-Z0-9/_-]+$")] public string OutgoingKeyIdentifier { get; set; } @@ -2831,8 +2817,7 @@ public class VerifyAuthRequestCryptogramPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(16)] - [System.ComponentModel.DataAnnotations.MaxLength(16)] + [System.ComponentModel.DataAnnotations.Length(16, 16)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-fA-F]+$")] public string AuthRequestCryptogram { get; set; } @@ -2851,8 +2836,7 @@ public class VerifyAuthRequestCryptogramPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(322)] + [System.ComponentModel.DataAnnotations.Length(7, 322)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:payment-cryptography:[a-z]{2}-[a-z]{1,16}-[0-9]+:[0-9]{12}:(key/[0-9a-zA-Z]{16,64}|alias/[a-zA-Z0-9/_-]+)$|^alias/[a-zA-Z0-9/_-]+$")] public string KeyIdentifier { get; set; } @@ -2881,8 +2865,7 @@ public class VerifyAuthRequestCryptogramPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(2, 1024)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-fA-F]+$")] public string TransactionData { get; set; } } @@ -2928,8 +2911,7 @@ public class VerifyCardValidationDataPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(322)] + [System.ComponentModel.DataAnnotations.Length(7, 322)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:payment-cryptography:[a-z]{2}-[a-z]{1,16}-[0-9]+:[0-9]{12}:(key/[0-9a-zA-Z]{16,64}|alias/[a-zA-Z0-9/_-]+)$|^alias/[a-zA-Z0-9/_-]+$")] public string KeyIdentifier { get; set; } @@ -2942,8 +2924,7 @@ public class VerifyCardValidationDataPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(12, 19)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9]+$")] public string PrimaryAccountNumber { get; set; } @@ -2956,8 +2937,7 @@ public class VerifyCardValidationDataPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(3, 5)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9]+$")] public string ValidationData { get; set; } @@ -3013,8 +2993,7 @@ public class VerifyMacPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(322)] + [System.ComponentModel.DataAnnotations.Length(7, 322)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:payment-cryptography:[a-z]{2}-[a-z]{1,16}-[0-9]+:[0-9]{12}:(key/[0-9a-zA-Z]{16,64}|alias/[a-zA-Z0-9/_-]+)$|^alias/[a-zA-Z0-9/_-]+$")] public string KeyIdentifier { get; set; } @@ -3027,8 +3006,7 @@ public class VerifyMacPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(4)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(4, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-fA-F]+$")] public string Mac { get; set; } @@ -3050,8 +3028,7 @@ public class VerifyMacPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(4096)] + [System.ComponentModel.DataAnnotations.Length(2, 4096)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-fA-F]+$")] public string MessageData { get; set; } @@ -3101,8 +3078,7 @@ public class VerifyPinDataPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(16)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(16, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-fA-F]+$")] public string EncryptedPinBlock { get; set; } @@ -3115,8 +3091,7 @@ public class VerifyPinDataPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(322)] + [System.ComponentModel.DataAnnotations.Length(7, 322)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:payment-cryptography:[a-z]{2}-[a-z]{1,16}-[0-9]+:[0-9]{12}:(key/[0-9a-zA-Z]{16,64}|alias/[a-zA-Z0-9/_-]+)$|^alias/[a-zA-Z0-9/_-]+$")] public string EncryptionKeyIdentifier { get; set; } @@ -3146,8 +3121,7 @@ public class VerifyPinDataPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(12, 19)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9]+$")] public string PrimaryAccountNumber { get; set; } @@ -3168,8 +3142,7 @@ public class VerifyPinDataPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(322)] + [System.ComponentModel.DataAnnotations.Length(7, 322)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:payment-cryptography:[a-z]{2}-[a-z]{1,16}-[0-9]+:[0-9]{12}:(key/[0-9a-zA-Z]{16,64}|alias/[a-zA-Z0-9/_-]+)$|^alias/[a-zA-Z0-9/_-]+$")] public string VerificationKeyIdentifier { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_personalize_events_2018_03_22_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_personalize_events_2018_03_22_.cs index 00303119..330a3629 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_personalize_events_2018_03_22_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_personalize_events_2018_03_22_.cs @@ -315,8 +315,7 @@ public class PutEventsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="trackingId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string TrackingId { get; set; } /// @@ -325,8 +324,7 @@ public class PutEventsPostBody /// Max length: 256 /// [System.Runtime.Serialization.DataMember(Name="userId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string UserId { get; set; } /// @@ -337,8 +335,7 @@ public class PutEventsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sessionId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string SessionId { get; set; } /// @@ -349,8 +346,7 @@ public class PutEventsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="eventList")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public Event[] EventList { get; set; } } @@ -377,8 +373,7 @@ public class PutItemsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="items")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public Item[] Items { get; set; } } @@ -405,8 +400,7 @@ public class PutUsersPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="users")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public User[] Users { get; set; } } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_pipes_2015_10_07_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_pipes_2015_10_07_.cs index 6f8b9f3a..7097ea26 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_pipes_2015_10_07_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_pipes_2015_10_07_.cs @@ -2230,8 +2230,7 @@ public class CreatePipePostBody /// Pattern: ^.*$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(0, 512)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^.*$")] public string Description { get; set; } @@ -2248,8 +2247,7 @@ public class CreatePipePostBody /// Pattern: ^$|arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\-]+):([a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\d{1})?:(\d{12})?:(.+)$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(0, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^$|arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\-]+):([a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\d{1})?:(\d{12})?:(.+)$")] public string Enrichment { get; set; } @@ -2268,8 +2266,7 @@ public class CreatePipePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(1, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:(aws[a-zA-Z-]*)?:iam::\d{12}:role/?[a-zA-Z0-9+=,.@\-_/]+$")] public string RoleArn { get; set; } @@ -2282,8 +2279,7 @@ public class CreatePipePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(1, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^smk://(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9]):[0-9]{1,5}|arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\-]+):([a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\d{1})?:(\d{12})?:(.+)$")] public string Source { get; set; } @@ -2308,8 +2304,7 @@ public class CreatePipePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(1, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\-]+):([a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\d{1})?:(\d{12})?:(.+)$")] public string Target { get; set; } @@ -2408,8 +2403,7 @@ public class UpdatePipePutBody /// Pattern: ^.*$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(0, 512)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^.*$")] public string Description { get; set; } @@ -2426,8 +2420,7 @@ public class UpdatePipePutBody /// Pattern: ^$|arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\-]+):([a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\d{1})?:(\d{12})?:(.+)$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(0, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^$|arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\-]+):([a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\d{1})?:(\d{12})?:(.+)$")] public string Enrichment { get; set; } @@ -2446,8 +2439,7 @@ public class UpdatePipePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(1, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:(aws[a-zA-Z-]*)?:iam::\d{12}:role/?[a-zA-Z0-9+=,.@\-_/]+$")] public string RoleArn { get; set; } @@ -2464,8 +2456,7 @@ public class UpdatePipePutBody /// Pattern: ^arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\-]+):([a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\d{1})?:(\d{12})?:(.+)$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(1, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\-]+):([a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\d{1})?:(\d{12})?:(.+)$")] public string Target { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_privatenetworks_2021_12_03_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_privatenetworks_2021_12_03_.cs index a7f088c3..d2e831d2 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_privatenetworks_2021_12_03_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_privatenetworks_2021_12_03_.cs @@ -2228,8 +2228,7 @@ public class ActivateDeviceIdentifierPostBody /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string ClientToken { get; set; } /// @@ -2252,8 +2251,7 @@ public class ActivateNetworkSitePostBody /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string ClientToken { get; set; } /// @@ -2347,8 +2345,7 @@ public class ConfigureAccessPointPostBody /// Max length: 100000 /// [System.Runtime.Serialization.DataMember(Name="cpiSecretKey")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100000)] + [System.ComponentModel.DataAnnotations.Length(1, 100000)] public string CpiSecretKey { get; set; } /// @@ -2357,8 +2354,7 @@ public class ConfigureAccessPointPostBody /// Max length: 4096 /// [System.Runtime.Serialization.DataMember(Name="cpiUserId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4096)] + [System.ComponentModel.DataAnnotations.Length(1, 4096)] public string CpiUserId { get; set; } /// @@ -2367,8 +2363,7 @@ public class ConfigureAccessPointPostBody /// Max length: 4096 /// [System.Runtime.Serialization.DataMember(Name="cpiUserPassword")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4096)] + [System.ComponentModel.DataAnnotations.Length(1, 4096)] public string CpiUserPassword { get; set; } /// @@ -2377,8 +2372,7 @@ public class ConfigureAccessPointPostBody /// Max length: 4096 /// [System.Runtime.Serialization.DataMember(Name="cpiUsername")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4096)] + [System.ComponentModel.DataAnnotations.Length(1, 4096)] public string CpiUsername { get; set; } /// @@ -2416,8 +2410,7 @@ public class CreateNetworkPostBody /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string ClientToken { get; set; } /// @@ -2426,8 +2419,7 @@ public class CreateNetworkPostBody /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string Description { get; set; } /// @@ -2439,8 +2431,7 @@ public class CreateNetworkPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="networkName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-zA-Z-]*$")] public string NetworkName { get; set; } @@ -2472,8 +2463,7 @@ public class CreateNetworkSitePostBody /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string ClientToken { get; set; } /// @@ -2482,8 +2472,7 @@ public class CreateNetworkSitePostBody /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string Description { get; set; } /// @@ -2505,8 +2494,7 @@ public class CreateNetworkSitePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="networkSiteName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-zA-Z-]*$")] public string NetworkSiteName { get; set; } @@ -2542,8 +2530,7 @@ public class DeactivateDeviceIdentifierPostBody /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string ClientToken { get; set; } /// @@ -2759,8 +2746,7 @@ public class StartNetworkResourceUpdatePostBody /// Max length: 1000 /// [System.Runtime.Serialization.DataMember(Name="returnReason")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] public string ReturnReason { get; set; } /// @@ -2834,8 +2820,7 @@ public class UpdateNetworkSitePutBody /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string ClientToken { get; set; } /// @@ -2844,8 +2829,7 @@ public class UpdateNetworkSitePutBody /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string Description { get; set; } /// @@ -2868,8 +2852,7 @@ public class UpdateNetworkSitePlanPutBody /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string ClientToken { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_qldb_2019_01_02_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_qldb_2019_01_02_.cs index 05f60dbd..4f3b1841 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_qldb_2019_01_02_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_qldb_2019_01_02_.cs @@ -1607,8 +1607,7 @@ public class CreateLedgerPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(?!^.*--)(?!^[0-9]+$)(?!^-)(?!.*-$)^[A-Za-z0-9-]+$")] public string Name { get; set; } @@ -1694,8 +1693,7 @@ public class ExportJournalToS3PostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(20, 1600)] public string RoleArn { get; set; } /// @@ -1770,8 +1768,7 @@ public class GetRevisionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(22)] - [System.ComponentModel.DataAnnotations.MaxLength(22)] + [System.ComponentModel.DataAnnotations.Length(22, 22)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Za-z-0-9]+$")] public string DocumentId { get; set; } @@ -1807,8 +1804,7 @@ public class StreamJournalToKinesisPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(20, 1600)] public string RoleArn { get; set; } /// @@ -1848,8 +1844,7 @@ public class StreamJournalToKinesisPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(?!^.*--)(?!^[0-9]+$)(?!^-)(?!.*-$)^[A-Za-z0-9-]+$")] public string StreamName { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_quicksight_2018_04_01_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_quicksight_2018_04_01_.cs index 1260f173..31ef4483 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_quicksight_2018_04_01_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_quicksight_2018_04_01_.cs @@ -9855,8 +9855,7 @@ public class StringParameterDeclaration /// Maximum items: 150 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(150)] + [System.ComponentModel.DataAnnotations.Length(0, 150)] public MappedDataSetParameter[] MappedDataSetParameters { get; set; } } @@ -9986,8 +9985,7 @@ public class DecimalParameterDeclaration /// Maximum items: 150 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(150)] + [System.ComponentModel.DataAnnotations.Length(0, 150)] public MappedDataSetParameter[] MappedDataSetParameters { get; set; } } @@ -10052,8 +10050,7 @@ public class IntegerParameterDeclaration /// Maximum items: 150 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(150)] + [System.ComponentModel.DataAnnotations.Length(0, 150)] public MappedDataSetParameter[] MappedDataSetParameters { get; set; } } @@ -10114,8 +10111,7 @@ public class DateTimeParameterDeclaration /// Maximum items: 150 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(150)] + [System.ComponentModel.DataAnnotations.Length(0, 150)] public MappedDataSetParameter[] MappedDataSetParameters { get; set; } } @@ -28970,8 +28966,7 @@ public class CreateAccountCustomizationPostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public Tag[] Tags { get; set; } } @@ -29114,8 +29109,7 @@ public class CreateAnalysisPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string Name { get; set; } /// @@ -29130,8 +29124,7 @@ public class CreateAnalysisPostBody /// Maximum items: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public ResourcePermission[] Permissions { get; set; } /// @@ -29152,8 +29145,7 @@ public class CreateAnalysisPostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public Tag[] Tags { get; set; } /// @@ -29225,8 +29217,7 @@ public class UpdateAnalysisPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string Name { get; set; } /// @@ -29316,8 +29307,7 @@ public class CreateDashboardPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string Name { get; set; } /// @@ -29332,8 +29322,7 @@ public class CreateDashboardPostBody /// Maximum items: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public ResourcePermission[] Permissions { get; set; } /// @@ -29348,8 +29337,7 @@ public class CreateDashboardPostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public Tag[] Tags { get; set; } /// @@ -29358,8 +29346,7 @@ public class CreateDashboardPostBody /// Max length: 512 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] public string VersionDescription { get; set; } /// @@ -29480,8 +29467,7 @@ public class UpdateDashboardPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string Name { get; set; } /// @@ -29502,8 +29488,7 @@ public class UpdateDashboardPutBody /// Max length: 512 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] public string VersionDescription { get; set; } /// @@ -29632,8 +29617,7 @@ public class CreateDataSetPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Name { get; set; } /// @@ -29664,8 +29648,7 @@ public class CreateDataSetPostBody /// Maximum items: 8 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(8)] + [System.ComponentModel.DataAnnotations.Length(1, 8)] public ColumnGroup[] ColumnGroups { get; set; } /// @@ -29680,8 +29663,7 @@ public class CreateDataSetPostBody /// Maximum items: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public ResourcePermission[] Permissions { get; set; } /// @@ -29710,8 +29692,7 @@ public class CreateDataSetPostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public Tag[] Tags { get; set; } /// @@ -29726,8 +29707,7 @@ public class CreateDataSetPostBody /// Maximum items: 32 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] public DatasetParameter[] DatasetParameters { get; set; } } @@ -29792,8 +29772,7 @@ public class CreateDataSourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Name { get; set; } /// @@ -29822,8 +29801,7 @@ public class CreateDataSourcePostBody /// Maximum items: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public ResourcePermission[] Permissions { get; set; } /// @@ -29844,8 +29822,7 @@ public class CreateDataSourcePostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public Tag[] Tags { get; set; } } @@ -29958,8 +29935,7 @@ public class CreateFolderPostBody /// Max length: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Name { get; set; } /// @@ -29980,8 +29956,7 @@ public class CreateFolderPostBody /// Maximum items: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public ResourcePermission[] Permissions { get; set; } /// @@ -29990,8 +29965,7 @@ public class CreateFolderPostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public Tag[] Tags { get; set; } } @@ -30006,8 +29980,7 @@ public class UpdateFolderPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Name { get; set; } } @@ -30032,8 +30005,7 @@ public class CreateGroupPostBody /// Max length: 512 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] public string Description { get; set; } } @@ -30102,8 +30074,7 @@ public class CreateNamespacePostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public Tag[] Tags { get; set; } } @@ -30178,8 +30149,7 @@ public class CreateTemplatePostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string Name { get; set; } /// @@ -30188,8 +30158,7 @@ public class CreateTemplatePostBody /// Maximum items: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public ResourcePermission[] Permissions { get; set; } /// @@ -30204,8 +30173,7 @@ public class CreateTemplatePostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public Tag[] Tags { get; set; } /// @@ -30214,8 +30182,7 @@ public class CreateTemplatePostBody /// Max length: 512 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] public string VersionDescription { get; set; } /// @@ -30278,8 +30245,7 @@ public class UpdateTemplatePutBody /// Max length: 512 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] public string VersionDescription { get; set; } /// @@ -30288,8 +30254,7 @@ public class UpdateTemplatePutBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string Name { get; set; } /// @@ -30376,8 +30341,7 @@ public class CreateThemePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string Name { get; set; } /// @@ -30389,8 +30353,7 @@ public class CreateThemePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\w\-]+")] public string BaseThemeId { get; set; } @@ -30400,8 +30363,7 @@ public class CreateThemePostBody /// Max length: 512 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] public string VersionDescription { get; set; } /// @@ -30418,8 +30380,7 @@ public class CreateThemePostBody /// Maximum items: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public ResourcePermission[] Permissions { get; set; } /// @@ -30428,8 +30389,7 @@ public class CreateThemePostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public Tag[] Tags { get; set; } } @@ -30461,8 +30421,7 @@ public class UpdateThemePutBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string Name { get; set; } /// @@ -30474,8 +30433,7 @@ public class UpdateThemePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\w\-]+")] public string BaseThemeId { get; set; } @@ -30485,8 +30443,7 @@ public class UpdateThemePutBody /// Max length: 512 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] public string VersionDescription { get; set; } /// @@ -30572,8 +30529,7 @@ public class CreateTopicPostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public Tag[] Tags { get; set; } } @@ -30650,8 +30606,7 @@ public class CreateVPCConnectionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\w\-]+")] public string VPCConnectionId { get; set; } @@ -30663,8 +30618,7 @@ public class CreateVPCConnectionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Name { get; set; } /// @@ -30675,8 +30629,7 @@ public class CreateVPCConnectionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(15)] + [System.ComponentModel.DataAnnotations.Length(2, 15)] public string[] SubnetIds { get; set; } /// @@ -30687,8 +30640,7 @@ public class CreateVPCConnectionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(16)] + [System.ComponentModel.DataAnnotations.Length(1, 16)] public string[] SecurityGroupIds { get; set; } /// @@ -30707,8 +30659,7 @@ public class CreateVPCConnectionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string RoleArn { get; set; } /// @@ -30717,8 +30668,7 @@ public class CreateVPCConnectionPostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public Tag[] Tags { get; set; } } @@ -30733,8 +30683,7 @@ public class UpdateDataSetPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Name { get; set; } /// @@ -30765,8 +30714,7 @@ public class UpdateDataSetPutBody /// Maximum items: 8 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(8)] + [System.ComponentModel.DataAnnotations.Length(1, 8)] public ColumnGroup[] ColumnGroups { get; set; } /// @@ -30807,8 +30755,7 @@ public class UpdateDataSetPutBody /// Maximum items: 32 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] public DatasetParameter[] DatasetParameters { get; set; } } @@ -30884,8 +30831,7 @@ public class UpdateDataSourcePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Name { get; set; } /// @@ -31022,8 +30968,7 @@ public class UpdateGroupPutBody /// Max length: 512 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] public string Description { get; set; } } @@ -31112,8 +31057,7 @@ public class UpdateUserPutBody /// Pattern: ^[a-zA-Z0-9+=,.@_-]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9+=,.@_-]+$")] public string CustomPermissionsName { get; set; } @@ -31153,8 +31097,7 @@ public class UpdateVPCConnectionPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Name { get; set; } /// @@ -31165,8 +31108,7 @@ public class UpdateVPCConnectionPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(15)] + [System.ComponentModel.DataAnnotations.Length(2, 15)] public string[] SubnetIds { get; set; } /// @@ -31177,8 +31119,7 @@ public class UpdateVPCConnectionPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(16)] + [System.ComponentModel.DataAnnotations.Length(1, 16)] public string[] SecurityGroupIds { get; set; } /// @@ -31197,8 +31138,7 @@ public class UpdateVPCConnectionPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string RoleArn { get; set; } } @@ -31295,8 +31235,7 @@ public class UpdateDataSetPermissionsPostBody /// Maximum items: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public ResourcePermission[] GrantPermissions { get; set; } /// @@ -31305,8 +31244,7 @@ public class UpdateDataSetPermissionsPostBody /// Maximum items: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public ResourcePermission[] RevokePermissions { get; set; } } @@ -31319,8 +31257,7 @@ public class UpdateDataSourcePermissionsPostBody /// Maximum items: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public ResourcePermission[] GrantPermissions { get; set; } /// @@ -31329,8 +31266,7 @@ public class UpdateDataSourcePermissionsPostBody /// Maximum items: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public ResourcePermission[] RevokePermissions { get; set; } } @@ -31343,8 +31279,7 @@ public class UpdateFolderPermissionsPutBody /// Maximum items: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public ResourcePermission[] GrantPermissions { get; set; } /// @@ -31353,8 +31288,7 @@ public class UpdateFolderPermissionsPutBody /// Maximum items: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public ResourcePermission[] RevokePermissions { get; set; } } @@ -31486,8 +31420,7 @@ public class GenerateEmbedUrlForAnonymousUserPostBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public SessionTag[] SessionTags { get; set; } /// @@ -31588,8 +31521,7 @@ public class TagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public Tag[] Tags { get; set; } } @@ -31633,8 +31565,7 @@ public class RegisterUserPostBody /// Pattern: [\w+=.@-]* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\w+=.@-]*")] public string SessionName { get; set; } @@ -31655,8 +31586,7 @@ public class RegisterUserPostBody /// Pattern: ^[a-zA-Z0-9+=,.@_-]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9+=,.@_-]+$")] public string CustomPermissionsName { get; set; } @@ -31690,8 +31620,7 @@ public class SearchAnalysesPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public AnalysisSearchFilter[] Filters { get; set; } /// @@ -31721,8 +31650,7 @@ public class SearchDashboardsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public DashboardSearchFilter[] Filters { get; set; } /// @@ -31752,8 +31680,7 @@ public class SearchDataSetsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public DataSetSearchFilter[] Filters { get; set; } /// @@ -31783,8 +31710,7 @@ public class SearchDataSourcesPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public DataSourceSearchFilter[] Filters { get; set; } /// @@ -31843,8 +31769,7 @@ public class SearchGroupsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public GroupSearchFilter[] Filters { get; set; } } @@ -31860,8 +31785,7 @@ public class StartAssetBundleExportJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\w\-]+")] public string AssetBundleExportJobId { get; set; } @@ -31873,8 +31797,7 @@ public class StartAssetBundleExportJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] ResourceArns { get; set; } /// @@ -31938,8 +31861,7 @@ public class StartAssetBundleImportJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\w\-]+")] public string AssetBundleImportJobId { get; set; } @@ -32014,8 +31936,7 @@ public class StartDashboardSnapshotJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\w\-]+")] public string SnapshotJobId { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_ram_2018_01_04_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_ram_2018_01_04_.cs index 0a99ca92..0b37bff7 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_ram_2018_01_04_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_ram_2018_01_04_.cs @@ -2906,8 +2906,7 @@ public class CreatePermissionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\w.-]*")] public string Name { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_rbin_2021_06_15_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_rbin_2021_06_15_.cs index c70b619f..f7a6005b 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_rbin_2021_06_15_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_rbin_2021_06_15_.cs @@ -866,8 +866,7 @@ public class CreateRulePostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } /// @@ -884,8 +883,7 @@ public class CreateRulePostBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public ResourceTag[] ResourceTags { get; set; } /// @@ -941,8 +939,7 @@ public class UpdateRulePatchBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public ResourceTag[] ResourceTags { get; set; } } @@ -990,8 +987,7 @@ public class ListRulesPostBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public ResourceTag[] ResourceTags { get; set; } /// @@ -1012,8 +1008,7 @@ public class TagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_rds_data_2018_08_01_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_rds_data_2018_08_01_.cs index 26b2ac44..4d353df2 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_rds_data_2018_08_01_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_rds_data_2018_08_01_.cs @@ -853,8 +853,7 @@ public class BatchExecuteStatementPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="resourceArn")] - [System.ComponentModel.DataAnnotations.MinLength(11)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(11, 100)] public string ResourceArn { get; set; } /// @@ -865,8 +864,7 @@ public class BatchExecuteStatementPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="secretArn")] - [System.ComponentModel.DataAnnotations.MinLength(11)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(11, 100)] public string SecretArn { get; set; } /// @@ -877,8 +875,7 @@ public class BatchExecuteStatementPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sql")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(65536)] + [System.ComponentModel.DataAnnotations.Length(0, 65536)] public string Sql { get; set; } /// @@ -887,8 +884,7 @@ public class BatchExecuteStatementPostBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="database")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(0, 64)] public string Database { get; set; } /// @@ -897,8 +893,7 @@ public class BatchExecuteStatementPostBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="schema")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(0, 64)] public string Schema { get; set; } /// @@ -913,8 +908,7 @@ public class BatchExecuteStatementPostBody /// Max length: 192 /// [System.Runtime.Serialization.DataMember(Name="transactionId")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(192)] + [System.ComponentModel.DataAnnotations.Length(0, 192)] public string TransactionId { get; set; } } @@ -929,8 +923,7 @@ public class BeginTransactionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="resourceArn")] - [System.ComponentModel.DataAnnotations.MinLength(11)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(11, 100)] public string ResourceArn { get; set; } /// @@ -941,8 +934,7 @@ public class BeginTransactionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="secretArn")] - [System.ComponentModel.DataAnnotations.MinLength(11)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(11, 100)] public string SecretArn { get; set; } /// @@ -951,8 +943,7 @@ public class BeginTransactionPostBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="database")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(0, 64)] public string Database { get; set; } /// @@ -961,8 +952,7 @@ public class BeginTransactionPostBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="schema")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(0, 64)] public string Schema { get; set; } } @@ -977,8 +967,7 @@ public class CommitTransactionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="resourceArn")] - [System.ComponentModel.DataAnnotations.MinLength(11)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(11, 100)] public string ResourceArn { get; set; } /// @@ -989,8 +978,7 @@ public class CommitTransactionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="secretArn")] - [System.ComponentModel.DataAnnotations.MinLength(11)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(11, 100)] public string SecretArn { get; set; } /// @@ -1001,8 +989,7 @@ public class CommitTransactionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="transactionId")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(192)] + [System.ComponentModel.DataAnnotations.Length(0, 192)] public string TransactionId { get; set; } } @@ -1017,8 +1004,7 @@ public class ExecuteSqlPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="dbClusterOrInstanceArn")] - [System.ComponentModel.DataAnnotations.MinLength(11)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(11, 100)] public string DbClusterOrInstanceArn { get; set; } /// @@ -1029,8 +1015,7 @@ public class ExecuteSqlPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="awsSecretStoreArn")] - [System.ComponentModel.DataAnnotations.MinLength(11)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(11, 100)] public string AwsSecretStoreArn { get; set; } /// @@ -1041,8 +1026,7 @@ public class ExecuteSqlPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sqlStatements")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(65536)] + [System.ComponentModel.DataAnnotations.Length(0, 65536)] public string SqlStatements { get; set; } /// @@ -1051,8 +1035,7 @@ public class ExecuteSqlPostBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="database")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(0, 64)] public string Database { get; set; } /// @@ -1061,8 +1044,7 @@ public class ExecuteSqlPostBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="schema")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(0, 64)] public string Schema { get; set; } } @@ -1077,8 +1059,7 @@ public class ExecuteStatementPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="resourceArn")] - [System.ComponentModel.DataAnnotations.MinLength(11)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(11, 100)] public string ResourceArn { get; set; } /// @@ -1089,8 +1070,7 @@ public class ExecuteStatementPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="secretArn")] - [System.ComponentModel.DataAnnotations.MinLength(11)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(11, 100)] public string SecretArn { get; set; } /// @@ -1101,8 +1081,7 @@ public class ExecuteStatementPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sql")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(65536)] + [System.ComponentModel.DataAnnotations.Length(0, 65536)] public string Sql { get; set; } /// @@ -1111,8 +1090,7 @@ public class ExecuteStatementPostBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="database")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(0, 64)] public string Database { get; set; } /// @@ -1121,8 +1099,7 @@ public class ExecuteStatementPostBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="schema")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(0, 64)] public string Schema { get; set; } /// @@ -1137,8 +1114,7 @@ public class ExecuteStatementPostBody /// Max length: 192 /// [System.Runtime.Serialization.DataMember(Name="transactionId")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(192)] + [System.ComponentModel.DataAnnotations.Length(0, 192)] public string TransactionId { get; set; } /// @@ -1187,8 +1163,7 @@ public class RollbackTransactionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="resourceArn")] - [System.ComponentModel.DataAnnotations.MinLength(11)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(11, 100)] public string ResourceArn { get; set; } /// @@ -1199,8 +1174,7 @@ public class RollbackTransactionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="secretArn")] - [System.ComponentModel.DataAnnotations.MinLength(11)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(11, 100)] public string SecretArn { get; set; } /// @@ -1211,8 +1185,7 @@ public class RollbackTransactionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="transactionId")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(192)] + [System.ComponentModel.DataAnnotations.Length(0, 192)] public string TransactionId { get; set; } } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_resiliencehub_2020_04_30_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_resiliencehub_2020_04_30_.cs index bb4c61d1..916428e9 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_resiliencehub_2020_04_30_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_resiliencehub_2020_04_30_.cs @@ -5680,8 +5680,7 @@ public class BatchUpdateRecommendationStatusPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="requestEntries")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public UpdateRecommendationStatusRequestEntry[] RequestEntries { get; set; } } @@ -5701,8 +5700,7 @@ public class CreateAppPostBody /// Pattern: ^[A-za-z0-9_.-]{0,63}$ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-za-z0-9_.-]{0,63}$")] public string ClientToken { get; set; } @@ -5712,8 +5710,7 @@ public class CreateAppPostBody /// Max length: 500 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] public string Description { get; set; } /// @@ -5722,8 +5719,7 @@ public class CreateAppPostBody /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="eventSubscriptions")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(0, 10)] public EventSubscription[] EventSubscriptions { get; set; } /// @@ -5796,8 +5792,7 @@ public class CreateAppVersionAppComponentPostBody /// Pattern: ^[A-za-z0-9_.-]{0,63}$ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-za-z0-9_.-]{0,63}$")] public string ClientToken { get; set; } @@ -5807,8 +5802,7 @@ public class CreateAppVersionAppComponentPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Id { get; set; } /// @@ -5819,8 +5813,7 @@ public class CreateAppVersionAppComponentPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -5831,8 +5824,7 @@ public class CreateAppVersionAppComponentPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="type")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Type { get; set; } } @@ -5886,8 +5878,7 @@ public class CreateAppVersionResourcePostBody /// Pattern: ^[A-za-z0-9_.-]{0,63}$ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-za-z0-9_.-]{0,63}$")] public string ClientToken { get; set; } @@ -5907,8 +5898,7 @@ public class CreateAppVersionResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="physicalResourceId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string PhysicalResourceId { get; set; } /// @@ -5927,8 +5917,7 @@ public class CreateAppVersionResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="resourceType")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string ResourceType { get; set; } } @@ -5979,8 +5968,7 @@ public class CreateRecommendationTemplatePostBody /// Pattern: ^[A-za-z0-9_.-]{0,63}$ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-za-z0-9_.-]{0,63}$")] public string ClientToken { get; set; } @@ -6006,8 +5994,7 @@ public class CreateRecommendationTemplatePostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember(Name="recommendationIds")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string[] RecommendationIds { get; set; } /// @@ -6016,8 +6003,7 @@ public class CreateRecommendationTemplatePostBody /// Maximum items: 4 /// [System.Runtime.Serialization.DataMember(Name="recommendationTypes")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(1, 4)] public RenderRecommendationType[] RecommendationTypes { get; set; } /// @@ -6037,8 +6023,7 @@ public class CreateResiliencyPolicyPostBody /// Pattern: ^[A-za-z0-9_.-]{0,63}$ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-za-z0-9_.-]{0,63}$")] public string ClientToken { get; set; } @@ -6062,8 +6047,7 @@ public class CreateResiliencyPolicyPostBody /// Max length: 500 /// [System.Runtime.Serialization.DataMember(Name="policyDescription")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] public string PolicyDescription { get; set; } /// @@ -6111,8 +6095,7 @@ public class DeleteAppPostBody /// Pattern: ^[A-za-z0-9_.-]{0,63}$ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-za-z0-9_.-]{0,63}$")] public string ClientToken { get; set; } @@ -6143,8 +6126,7 @@ public class DeleteAppAssessmentPostBody /// Pattern: ^[A-za-z0-9_.-]{0,63}$ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-za-z0-9_.-]{0,63}$")] public string ClientToken { get; set; } } @@ -6169,8 +6151,7 @@ public class DeleteAppInputSourcePostBody /// Pattern: ^[A-za-z0-9_.-]{0,63}$ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-za-z0-9_.-]{0,63}$")] public string ClientToken { get; set; } @@ -6232,8 +6213,7 @@ public class DeleteAppVersionAppComponentPostBody /// Pattern: ^[A-za-z0-9_.-]{0,63}$ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-za-z0-9_.-]{0,63}$")] public string ClientToken { get; set; } @@ -6245,8 +6225,7 @@ public class DeleteAppVersionAppComponentPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Id { get; set; } } @@ -6286,8 +6265,7 @@ public class DeleteAppVersionResourcePostBody /// Pattern: ^[A-za-z0-9_.-]{0,63}$ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-za-z0-9_.-]{0,63}$")] public string ClientToken { get; set; } @@ -6303,8 +6281,7 @@ public class DeleteAppVersionResourcePostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="physicalResourceId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string PhysicalResourceId { get; set; } /// @@ -6345,8 +6322,7 @@ public class DeleteRecommendationTemplatePostBody /// Pattern: ^[A-za-z0-9_.-]{0,63}$ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-za-z0-9_.-]{0,63}$")] public string ClientToken { get; set; } @@ -6371,8 +6347,7 @@ public class DeleteResiliencyPolicyPostBody /// Pattern: ^[A-za-z0-9_.-]{0,63}$ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-za-z0-9_.-]{0,63}$")] public string ClientToken { get; set; } @@ -6470,8 +6445,7 @@ public class DescribeAppVersionAppComponentPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Id { get; set; } } @@ -6526,8 +6500,7 @@ public class DescribeAppVersionResourcePostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="physicalResourceId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string PhysicalResourceId { get; set; } /// @@ -6587,8 +6560,7 @@ public class DescribeAppVersionResourcesResolutionStatusPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="resolutionId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string ResolutionId { get; set; } } @@ -6985,8 +6957,7 @@ public class ListAppVersionResourcesPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="resolutionId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string ResolutionId { get; set; } } @@ -7153,8 +7124,7 @@ public class ListUnsupportedAppVersionResourcesPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="resolutionId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string ResolutionId { get; set; } } @@ -7202,8 +7172,7 @@ public class PutDraftAppVersionTemplatePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="appTemplateBody")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(409600)] + [System.ComponentModel.DataAnnotations.Length(0, 409600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\w\s:,-\.'\/{}\[\]:""\\]+$")] public string AppTemplateBody { get; set; } } @@ -7322,8 +7291,7 @@ public class StartAppAssessmentPostBody /// Pattern: ^[A-za-z0-9_.-]{0,63}$ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-za-z0-9_.-]{0,63}$")] public string ClientToken { get; set; } @@ -7365,8 +7333,7 @@ public class UpdateAppPostBody /// Max length: 500 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] public string Description { get; set; } /// @@ -7375,8 +7342,7 @@ public class UpdateAppPostBody /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="eventSubscriptions")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(0, 10)] public EventSubscription[] EventSubscriptions { get; set; } /// @@ -7454,8 +7420,7 @@ public class UpdateAppVersionAppComponentPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Id { get; set; } /// @@ -7464,8 +7429,7 @@ public class UpdateAppVersionAppComponentPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -7474,8 +7438,7 @@ public class UpdateAppVersionAppComponentPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="type")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Type { get; set; } } @@ -7538,8 +7501,7 @@ public class UpdateAppVersionResourcePostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="physicalResourceId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string PhysicalResourceId { get; set; } /// @@ -7556,8 +7518,7 @@ public class UpdateAppVersionResourcePostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="resourceType")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string ResourceType { get; set; } } @@ -7611,8 +7572,7 @@ public class UpdateResiliencyPolicyPostBody /// Max length: 500 /// [System.Runtime.Serialization.DataMember(Name="policyDescription")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] public string PolicyDescription { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_resource_explorer_2_2022_07_28_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_resource_explorer_2_2022_07_28_.cs index 4944067a..6cca2815 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_resource_explorer_2_2022_07_28_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_resource_explorer_2_2022_07_28_.cs @@ -1245,8 +1245,7 @@ public class AssociateDefaultViewPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] public string ViewArn { get; set; } } @@ -1259,8 +1258,7 @@ public class BatchGetViewPostBody /// Maximum items: 20 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(1, 20)] public string[] ViewArns { get; set; } } @@ -1289,8 +1287,7 @@ public class CreateViewPostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string ClientToken { get; set; } /// @@ -1352,8 +1349,7 @@ public class DeleteViewPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] public string ViewArn { get; set; } } @@ -1368,8 +1364,7 @@ public class GetViewPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] public string ViewArn { get; set; } } @@ -1391,8 +1386,7 @@ public class ListIndexesPostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string NextToken { get; set; } /// @@ -1401,8 +1395,7 @@ public class ListIndexesPostBody /// Maximum items: 20 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(0, 20)] public string[] Regions { get; set; } /// @@ -1478,8 +1471,7 @@ public class SearchPostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string NextToken { get; set; } /// @@ -1490,8 +1482,7 @@ public class SearchPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(0, 1011)] public string QueryString { get; set; } /// @@ -1500,8 +1491,7 @@ public class SearchPostBody /// Max length: 1000 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] public string ViewArn { get; set; } } @@ -1548,8 +1538,7 @@ public class UpdateViewPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] public string ViewArn { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_resource_groups_2017_11_27_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_resource_groups_2017_11_27_.cs index 3c591959..95c7d05a 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_resource_groups_2017_11_27_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_resource_groups_2017_11_27_.cs @@ -1425,8 +1425,7 @@ public class CreateGroupPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(300)] + [System.ComponentModel.DataAnnotations.Length(1, 300)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_\.-]+")] public string Name { get; set; } @@ -1481,8 +1480,7 @@ public class DeleteGroupPostBody /// Pattern: [a-zA-Z0-9_\.-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(300)] + [System.ComponentModel.DataAnnotations.Length(1, 300)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_\.-]+")] public string GroupName { get; set; } @@ -1493,8 +1491,7 @@ public class DeleteGroupPostBody /// Pattern: (arn:aws(-[a-z]+)*:resource-groups:[a-z]{2}(-[a-z]+)+-\d{1}:[0-9]{12}:group/)?[a-zA-Z0-9_\.-]{1,300} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(1, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(arn:aws(-[a-z]+)*:resource-groups:[a-z]{2}(-[a-z]+)+-\d{1}:[0-9]{12}:group/)?[a-zA-Z0-9_\.-]{1,300}")] public string Group { get; set; } } @@ -1509,8 +1506,7 @@ public class GetGroupPostBody /// Pattern: [a-zA-Z0-9_\.-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(300)] + [System.ComponentModel.DataAnnotations.Length(1, 300)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_\.-]+")] public string GroupName { get; set; } @@ -1521,8 +1517,7 @@ public class GetGroupPostBody /// Pattern: (arn:aws(-[a-z]+)*:resource-groups:[a-z]{2}(-[a-z]+)+-\d{1}:[0-9]{12}:group/)?[a-zA-Z0-9_\.-]{1,300} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(1, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(arn:aws(-[a-z]+)*:resource-groups:[a-z]{2}(-[a-z]+)+-\d{1}:[0-9]{12}:group/)?[a-zA-Z0-9_\.-]{1,300}")] public string Group { get; set; } } @@ -1537,8 +1532,7 @@ public class GetGroupConfigurationPostBody /// Pattern: (arn:aws(-[a-z]+)*:resource-groups:[a-z]{2}(-[a-z]+)+-\d{1}:[0-9]{12}:group/)?[a-zA-Z0-9_\.-]{1,300} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(1, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(arn:aws(-[a-z]+)*:resource-groups:[a-z]{2}(-[a-z]+)+-\d{1}:[0-9]{12}:group/)?[a-zA-Z0-9_\.-]{1,300}")] public string Group { get; set; } } @@ -1553,8 +1547,7 @@ public class GetGroupQueryPostBody /// Pattern: [a-zA-Z0-9_\.-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(300)] + [System.ComponentModel.DataAnnotations.Length(1, 300)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_\.-]+")] public string GroupName { get; set; } @@ -1565,8 +1558,7 @@ public class GetGroupQueryPostBody /// Pattern: (arn:aws(-[a-z]+)*:resource-groups:[a-z]{2}(-[a-z]+)+-\d{1}:[0-9]{12}:group/)?[a-zA-Z0-9_\.-]{1,300} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(1, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(arn:aws(-[a-z]+)*:resource-groups:[a-z]{2}(-[a-z]+)+-\d{1}:[0-9]{12}:group/)?[a-zA-Z0-9_\.-]{1,300}")] public string Group { get; set; } } @@ -1607,8 +1599,7 @@ public class GroupResourcesPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(1, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(arn:aws(-[a-z]+)*:resource-groups:[a-z]{2}(-[a-z]+)+-\d{1}:[0-9]{12}:group/)?[a-zA-Z0-9_\.-]{1,300}")] public string Group { get; set; } @@ -1620,8 +1611,7 @@ public class GroupResourcesPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public string[] ResourceArns { get; set; } } @@ -1635,8 +1625,7 @@ public class ListGroupResourcesPostBody /// Pattern: [a-zA-Z0-9_\.-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(300)] + [System.ComponentModel.DataAnnotations.Length(1, 300)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_\.-]+")] public string GroupName { get; set; } @@ -1647,8 +1636,7 @@ public class ListGroupResourcesPostBody /// Pattern: (arn:aws(-[a-z]+)*:resource-groups:[a-z]{2}(-[a-z]+)+-\d{1}:[0-9]{12}:group/)?[a-zA-Z0-9_\.-]{1,300} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(1, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(arn:aws(-[a-z]+)*:resource-groups:[a-z]{2}(-[a-z]+)+-\d{1}:[0-9]{12}:group/)?[a-zA-Z0-9_\.-]{1,300}")] public string Group { get; set; } @@ -1674,8 +1662,7 @@ public class ListGroupResourcesPostBody /// Pattern: ^[a-zA-Z0-9+/]*={0,2}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(8192)] + [System.ComponentModel.DataAnnotations.Length(0, 8192)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9+/]*={0,2}$")] public string NextToken { get; set; } } @@ -1700,8 +1687,7 @@ public class PutGroupConfigurationPostBody /// Pattern: (arn:aws(-[a-z]+)*:resource-groups:[a-z]{2}(-[a-z]+)+-\d{1}:[0-9]{12}:group/)?[a-zA-Z0-9_\.-]{1,300} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(1, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(arn:aws(-[a-z]+)*:resource-groups:[a-z]{2}(-[a-z]+)+-\d{1}:[0-9]{12}:group/)?[a-zA-Z0-9_\.-]{1,300}")] public string Group { get; set; } @@ -1741,8 +1727,7 @@ public class SearchResourcesPostBody /// Pattern: ^[a-zA-Z0-9+/]*={0,2}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(8192)] + [System.ComponentModel.DataAnnotations.Length(0, 8192)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9+/]*={0,2}$")] public string NextToken { get; set; } } @@ -1769,8 +1754,7 @@ public class UngroupResourcesPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(1, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(arn:aws(-[a-z]+)*:resource-groups:[a-z]{2}(-[a-z]+)+-\d{1}:[0-9]{12}:group/)?[a-zA-Z0-9_\.-]{1,300}")] public string Group { get; set; } @@ -1782,8 +1766,7 @@ public class UngroupResourcesPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public string[] ResourceArns { get; set; } } @@ -1807,8 +1790,7 @@ public class UpdateGroupPostBody /// Pattern: [a-zA-Z0-9_\.-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(300)] + [System.ComponentModel.DataAnnotations.Length(1, 300)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_\.-]+")] public string GroupName { get; set; } @@ -1819,8 +1801,7 @@ public class UpdateGroupPostBody /// Pattern: (arn:aws(-[a-z]+)*:resource-groups:[a-z]{2}(-[a-z]+)+-\d{1}:[0-9]{12}:group/)?[a-zA-Z0-9_\.-]{1,300} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(1, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(arn:aws(-[a-z]+)*:resource-groups:[a-z]{2}(-[a-z]+)+-\d{1}:[0-9]{12}:group/)?[a-zA-Z0-9_\.-]{1,300}")] public string Group { get; set; } @@ -1845,8 +1826,7 @@ public class UpdateGroupQueryPostBody /// Pattern: [a-zA-Z0-9_\.-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(300)] + [System.ComponentModel.DataAnnotations.Length(1, 300)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_\.-]+")] public string GroupName { get; set; } @@ -1857,8 +1837,7 @@ public class UpdateGroupQueryPostBody /// Pattern: (arn:aws(-[a-z]+)*:resource-groups:[a-z]{2}(-[a-z]+)+-\d{1}:[0-9]{12}:group/)?[a-zA-Z0-9_\.-]{1,300} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(1, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(arn:aws(-[a-z]+)*:resource-groups:[a-z]{2}(-[a-z]+)+-\d{1}:[0-9]{12}:group/)?[a-zA-Z0-9_\.-]{1,300}")] public string Group { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_robomaker_2018_06_29_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_robomaker_2018_06_29_.cs index 71f4a425..0ec4a3ac 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_robomaker_2018_06_29_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_robomaker_2018_06_29_.cs @@ -5757,8 +5757,7 @@ public class BatchDeleteWorldsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="worlds")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] Worlds { get; set; } } @@ -5773,8 +5772,7 @@ public class BatchDescribeSimulationJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="jobs")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] Jobs { get; set; } } @@ -5790,8 +5788,7 @@ public class CancelDeploymentJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="job")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1224)] + [System.ComponentModel.DataAnnotations.Length(1, 1224)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:.*")] public string Job { get; set; } } @@ -5808,8 +5805,7 @@ public class CancelSimulationJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="job")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1224)] + [System.ComponentModel.DataAnnotations.Length(1, 1224)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:.*")] public string Job { get; set; } } @@ -5826,8 +5822,7 @@ public class CancelSimulationJobBatchPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="batch")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1224)] + [System.ComponentModel.DataAnnotations.Length(1, 1224)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:.*")] public string Batch { get; set; } } @@ -5844,8 +5839,7 @@ public class CancelWorldExportJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="job")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1224)] + [System.ComponentModel.DataAnnotations.Length(1, 1224)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:.*")] public string Job { get; set; } } @@ -5862,8 +5856,7 @@ public class CancelWorldGenerationJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="job")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1224)] + [System.ComponentModel.DataAnnotations.Length(1, 1224)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:.*")] public string Job { get; set; } } @@ -5886,8 +5879,7 @@ public class CreateDeploymentJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientRequestToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_\-=]*")] public string ClientRequestToken { get; set; } @@ -5900,8 +5892,7 @@ public class CreateDeploymentJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="fleet")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1224)] + [System.ComponentModel.DataAnnotations.Length(1, 1224)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:.*")] public string Fleet { get; set; } @@ -5913,8 +5904,7 @@ public class CreateDeploymentJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="deploymentApplicationConfigs")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public DeploymentApplicationConfig[] DeploymentApplicationConfigs { get; set; } /// @@ -5952,8 +5942,7 @@ public class CreateFleetPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_\-]*")] public string Name { get; set; } @@ -5976,8 +5965,7 @@ public class CreateRobotPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_\-]*")] public string Name { get; set; } @@ -5998,8 +5986,7 @@ public class CreateRobotPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="greengrassGroupId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1224)] + [System.ComponentModel.DataAnnotations.Length(1, 1224)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string GreengrassGroupId { get; set; } @@ -6022,8 +6009,7 @@ public class CreateRobotApplicationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_\-]*")] public string Name { get; set; } @@ -6083,8 +6069,7 @@ public class CreateRobotApplicationVersionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="application")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1224)] + [System.ComponentModel.DataAnnotations.Length(1, 1224)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:.*")] public string Application { get; set; } @@ -6095,8 +6080,7 @@ public class CreateRobotApplicationVersionPostBody /// Pattern: [a-zA-Z0-9_.\-]* /// [System.Runtime.Serialization.DataMember(Name="currentRevisionId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.\-]*")] public string CurrentRevisionId { get; set; } @@ -6113,8 +6097,7 @@ public class CreateRobotApplicationVersionPostBody /// Pattern: [Ss][Hh][Aa]256:[0-9a-fA-F]{64} /// [System.Runtime.Serialization.DataMember(Name="imageDigest")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(72)] + [System.ComponentModel.DataAnnotations.Length(0, 72)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[Ss][Hh][Aa]256:[0-9a-fA-F]{64}")] public string ImageDigest { get; set; } } @@ -6131,8 +6114,7 @@ public class CreateSimulationApplicationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_\-]*")] public string Name { get; set; } @@ -6226,8 +6208,7 @@ public class CreateSimulationApplicationVersionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="application")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1224)] + [System.ComponentModel.DataAnnotations.Length(1, 1224)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:.*")] public string Application { get; set; } @@ -6238,8 +6219,7 @@ public class CreateSimulationApplicationVersionPostBody /// Pattern: [a-zA-Z0-9_.\-]* /// [System.Runtime.Serialization.DataMember(Name="currentRevisionId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.\-]*")] public string CurrentRevisionId { get; set; } @@ -6256,8 +6236,7 @@ public class CreateSimulationApplicationVersionPostBody /// Pattern: [Ss][Hh][Aa]256:[0-9a-fA-F]{64} /// [System.Runtime.Serialization.DataMember(Name="imageDigest")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(72)] + [System.ComponentModel.DataAnnotations.Length(0, 72)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[Ss][Hh][Aa]256:[0-9a-fA-F]{64}")] public string ImageDigest { get; set; } } @@ -6272,8 +6251,7 @@ public class CreateSimulationJobPostBody /// Pattern: [a-zA-Z0-9_\-=]* /// [System.Runtime.Serialization.DataMember(Name="clientRequestToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_\-=]*")] public string ClientRequestToken { get; set; } @@ -6306,8 +6284,7 @@ public class CreateSimulationJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="iamRole")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iam::\w+:role/.*")] public string IamRole { get; set; } @@ -6323,8 +6300,7 @@ public class CreateSimulationJobPostBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember(Name="robotApplications")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public RobotApplicationConfig[] RobotApplications { get; set; } /// @@ -6333,8 +6309,7 @@ public class CreateSimulationJobPostBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember(Name="simulationApplications")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public SimulationApplicationConfig[] SimulationApplications { get; set; } /// @@ -6343,8 +6318,7 @@ public class CreateSimulationJobPostBody /// Maximum items: 6 /// [System.Runtime.Serialization.DataMember(Name="dataSources")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(6)] + [System.ComponentModel.DataAnnotations.Length(1, 6)] public DataSourceConfig[] DataSources { get; set; } /// @@ -6419,8 +6393,7 @@ public class CreateWorldExportJobPostBody /// Pattern: [a-zA-Z0-9_\-=]* /// [System.Runtime.Serialization.DataMember(Name="clientRequestToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_\-=]*")] public string ClientRequestToken { get; set; } @@ -6432,8 +6405,7 @@ public class CreateWorldExportJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="worlds")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] Worlds { get; set; } /// @@ -6453,8 +6425,7 @@ public class CreateWorldExportJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="iamRole")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:aws:iam::\w+:role/.*")] public string IamRole { get; set; } @@ -6485,8 +6456,7 @@ public class CreateWorldGenerationJobPostBody /// Pattern: [a-zA-Z0-9_\-=]* /// [System.Runtime.Serialization.DataMember(Name="clientRequestToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_\-=]*")] public string ClientRequestToken { get; set; } @@ -6499,8 +6469,7 @@ public class CreateWorldGenerationJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="template")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1224)] + [System.ComponentModel.DataAnnotations.Length(1, 1224)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:.*")] public string Template { get; set; } @@ -6545,8 +6514,7 @@ public class CreateWorldTemplatePostBody /// Pattern: [a-zA-Z0-9_\-=]* /// [System.Runtime.Serialization.DataMember(Name="clientRequestToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_\-=]*")] public string ClientRequestToken { get; set; } @@ -6557,8 +6525,7 @@ public class CreateWorldTemplatePostBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Name { get; set; } @@ -6569,8 +6536,7 @@ public class CreateWorldTemplatePostBody /// Pattern: [\S\s]+ /// [System.Runtime.Serialization.DataMember(Name="templateBody")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(262144)] + [System.ComponentModel.DataAnnotations.Length(1, 262144)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\S\s]+")] public string TemplateBody { get; set; } @@ -6609,8 +6575,7 @@ public class DeleteFleetPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="fleet")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1224)] + [System.ComponentModel.DataAnnotations.Length(1, 1224)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:.*")] public string Fleet { get; set; } } @@ -6627,8 +6592,7 @@ public class DeleteRobotPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="robot")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1224)] + [System.ComponentModel.DataAnnotations.Length(1, 1224)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:.*")] public string Robot { get; set; } } @@ -6645,8 +6609,7 @@ public class DeleteRobotApplicationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="application")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1224)] + [System.ComponentModel.DataAnnotations.Length(1, 1224)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:.*")] public string Application { get; set; } @@ -6657,8 +6620,7 @@ public class DeleteRobotApplicationPostBody /// Pattern: (\$LATEST)|[0-9]* /// [System.Runtime.Serialization.DataMember(Name="applicationVersion")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(\$LATEST)|[0-9]*")] public string ApplicationVersion { get; set; } } @@ -6675,8 +6637,7 @@ public class DeleteSimulationApplicationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="application")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1224)] + [System.ComponentModel.DataAnnotations.Length(1, 1224)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:.*")] public string Application { get; set; } @@ -6687,8 +6648,7 @@ public class DeleteSimulationApplicationPostBody /// Pattern: (\$LATEST)|[0-9]* /// [System.Runtime.Serialization.DataMember(Name="applicationVersion")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(\$LATEST)|[0-9]*")] public string ApplicationVersion { get; set; } } @@ -6705,8 +6665,7 @@ public class DeleteWorldTemplatePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="template")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1224)] + [System.ComponentModel.DataAnnotations.Length(1, 1224)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:.*")] public string Template { get; set; } } @@ -6723,8 +6682,7 @@ public class DeregisterRobotPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="fleet")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1224)] + [System.ComponentModel.DataAnnotations.Length(1, 1224)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:.*")] public string Fleet { get; set; } @@ -6737,8 +6695,7 @@ public class DeregisterRobotPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="robot")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1224)] + [System.ComponentModel.DataAnnotations.Length(1, 1224)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:.*")] public string Robot { get; set; } } @@ -6755,8 +6712,7 @@ public class DescribeDeploymentJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="job")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1224)] + [System.ComponentModel.DataAnnotations.Length(1, 1224)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:.*")] public string Job { get; set; } } @@ -6773,8 +6729,7 @@ public class DescribeFleetPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="fleet")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1224)] + [System.ComponentModel.DataAnnotations.Length(1, 1224)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:.*")] public string Fleet { get; set; } } @@ -6791,8 +6746,7 @@ public class DescribeRobotPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="robot")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1224)] + [System.ComponentModel.DataAnnotations.Length(1, 1224)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:.*")] public string Robot { get; set; } } @@ -6809,8 +6763,7 @@ public class DescribeRobotApplicationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="application")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1224)] + [System.ComponentModel.DataAnnotations.Length(1, 1224)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:.*")] public string Application { get; set; } @@ -6821,8 +6774,7 @@ public class DescribeRobotApplicationPostBody /// Pattern: (\$LATEST)|[0-9]* /// [System.Runtime.Serialization.DataMember(Name="applicationVersion")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(\$LATEST)|[0-9]*")] public string ApplicationVersion { get; set; } } @@ -6839,8 +6791,7 @@ public class DescribeSimulationApplicationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="application")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1224)] + [System.ComponentModel.DataAnnotations.Length(1, 1224)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:.*")] public string Application { get; set; } @@ -6851,8 +6802,7 @@ public class DescribeSimulationApplicationPostBody /// Pattern: (\$LATEST)|[0-9]* /// [System.Runtime.Serialization.DataMember(Name="applicationVersion")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(\$LATEST)|[0-9]*")] public string ApplicationVersion { get; set; } } @@ -6869,8 +6819,7 @@ public class DescribeSimulationJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="job")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1224)] + [System.ComponentModel.DataAnnotations.Length(1, 1224)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:.*")] public string Job { get; set; } } @@ -6887,8 +6836,7 @@ public class DescribeSimulationJobBatchPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="batch")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1224)] + [System.ComponentModel.DataAnnotations.Length(1, 1224)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:.*")] public string Batch { get; set; } } @@ -6905,8 +6853,7 @@ public class DescribeWorldPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="world")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1224)] + [System.ComponentModel.DataAnnotations.Length(1, 1224)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:.*")] public string World { get; set; } } @@ -6923,8 +6870,7 @@ public class DescribeWorldExportJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="job")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1224)] + [System.ComponentModel.DataAnnotations.Length(1, 1224)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:.*")] public string Job { get; set; } } @@ -6941,8 +6887,7 @@ public class DescribeWorldGenerationJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="job")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1224)] + [System.ComponentModel.DataAnnotations.Length(1, 1224)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:.*")] public string Job { get; set; } } @@ -6959,8 +6904,7 @@ public class DescribeWorldTemplatePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="template")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1224)] + [System.ComponentModel.DataAnnotations.Length(1, 1224)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:.*")] public string Template { get; set; } } @@ -6975,8 +6919,7 @@ public class GetWorldTemplateBodyPostBody /// Pattern: arn:.* /// [System.Runtime.Serialization.DataMember(Name="template")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1224)] + [System.ComponentModel.DataAnnotations.Length(1, 1224)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:.*")] public string Template { get; set; } @@ -6987,8 +6930,7 @@ public class GetWorldTemplateBodyPostBody /// Pattern: arn:.* /// [System.Runtime.Serialization.DataMember(Name="generationJob")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1224)] + [System.ComponentModel.DataAnnotations.Length(1, 1224)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:.*")] public string GenerationJob { get; set; } } @@ -7002,8 +6944,7 @@ public class ListDeploymentJobsPostBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember(Name="filters")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public Filter[] Filters { get; set; } /// @@ -7013,8 +6954,7 @@ public class ListDeploymentJobsPostBody /// Pattern: [a-zA-Z0-9_.\-\/+=]* /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.\-\/+=]*")] public string NextToken { get; set; } @@ -7035,8 +6975,7 @@ public class ListFleetsPostBody /// Pattern: [a-zA-Z0-9_.\-\/+=]* /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.\-\/+=]*")] public string NextToken { get; set; } @@ -7052,8 +6991,7 @@ public class ListFleetsPostBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember(Name="filters")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public Filter[] Filters { get; set; } } @@ -7067,8 +7005,7 @@ public class ListRobotApplicationsPostBody /// Pattern: ALL /// [System.Runtime.Serialization.DataMember(Name="versionQualifier")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"ALL")] public string VersionQualifier { get; set; } @@ -7079,8 +7016,7 @@ public class ListRobotApplicationsPostBody /// Pattern: [a-zA-Z0-9_.\-\/+=]* /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.\-\/+=]*")] public string NextToken { get; set; } @@ -7096,8 +7032,7 @@ public class ListRobotApplicationsPostBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember(Name="filters")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public Filter[] Filters { get; set; } } @@ -7111,8 +7046,7 @@ public class ListRobotsPostBody /// Pattern: [a-zA-Z0-9_.\-\/+=]* /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.\-\/+=]*")] public string NextToken { get; set; } @@ -7128,8 +7062,7 @@ public class ListRobotsPostBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember(Name="filters")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public Filter[] Filters { get; set; } } @@ -7143,8 +7076,7 @@ public class ListSimulationApplicationsPostBody /// Pattern: ALL /// [System.Runtime.Serialization.DataMember(Name="versionQualifier")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"ALL")] public string VersionQualifier { get; set; } @@ -7155,8 +7087,7 @@ public class ListSimulationApplicationsPostBody /// Pattern: [a-zA-Z0-9_.\-\/+=]* /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.\-\/+=]*")] public string NextToken { get; set; } @@ -7172,8 +7103,7 @@ public class ListSimulationApplicationsPostBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember(Name="filters")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public Filter[] Filters { get; set; } } @@ -7187,8 +7117,7 @@ public class ListSimulationJobBatchesPostBody /// Pattern: [a-zA-Z0-9_.\-\/+=]* /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.\-\/+=]*")] public string NextToken { get; set; } @@ -7204,8 +7133,7 @@ public class ListSimulationJobBatchesPostBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember(Name="filters")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public Filter[] Filters { get; set; } } @@ -7219,8 +7147,7 @@ public class ListSimulationJobsPostBody /// Pattern: [a-zA-Z0-9_.\-\/+=]* /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.\-\/+=]*")] public string NextToken { get; set; } @@ -7236,8 +7163,7 @@ public class ListSimulationJobsPostBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember(Name="filters")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public Filter[] Filters { get; set; } } @@ -7263,8 +7189,7 @@ public class ListWorldExportJobsPostBody /// Pattern: [a-zA-Z0-9_.\-\/+=]* /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.\-\/+=]*")] public string NextToken { get; set; } @@ -7280,8 +7205,7 @@ public class ListWorldExportJobsPostBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember(Name="filters")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public Filter[] Filters { get; set; } } @@ -7295,8 +7219,7 @@ public class ListWorldGenerationJobsPostBody /// Pattern: [a-zA-Z0-9_.\-\/+=]* /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.\-\/+=]*")] public string NextToken { get; set; } @@ -7312,8 +7235,7 @@ public class ListWorldGenerationJobsPostBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember(Name="filters")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public Filter[] Filters { get; set; } } @@ -7327,8 +7249,7 @@ public class ListWorldTemplatesPostBody /// Pattern: [a-zA-Z0-9_.\-\/+=]* /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.\-\/+=]*")] public string NextToken { get; set; } @@ -7349,8 +7270,7 @@ public class ListWorldsPostBody /// Pattern: [a-zA-Z0-9_.\-\/+=]* /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.\-\/+=]*")] public string NextToken { get; set; } @@ -7366,8 +7286,7 @@ public class ListWorldsPostBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember(Name="filters")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public Filter[] Filters { get; set; } } @@ -7383,8 +7302,7 @@ public class RegisterRobotPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="fleet")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1224)] + [System.ComponentModel.DataAnnotations.Length(1, 1224)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:.*")] public string Fleet { get; set; } @@ -7397,8 +7315,7 @@ public class RegisterRobotPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="robot")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1224)] + [System.ComponentModel.DataAnnotations.Length(1, 1224)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:.*")] public string Robot { get; set; } } @@ -7415,8 +7332,7 @@ public class RestartSimulationJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="job")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1224)] + [System.ComponentModel.DataAnnotations.Length(1, 1224)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:.*")] public string Job { get; set; } } @@ -7431,8 +7347,7 @@ public class StartSimulationJobBatchPostBody /// Pattern: [a-zA-Z0-9_\-=]* /// [System.Runtime.Serialization.DataMember(Name="clientRequestToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_\-=]*")] public string ClientRequestToken { get; set; } @@ -7450,8 +7365,7 @@ public class StartSimulationJobBatchPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="createSimulationJobRequests")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] public SimulationJobRequest[] CreateSimulationJobRequests { get; set; } /// @@ -7483,8 +7397,7 @@ public class SyncDeploymentJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientRequestToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_\-=]*")] public string ClientRequestToken { get; set; } @@ -7497,8 +7410,7 @@ public class SyncDeploymentJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="fleet")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1224)] + [System.ComponentModel.DataAnnotations.Length(1, 1224)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:.*")] public string Fleet { get; set; } } @@ -7515,8 +7427,7 @@ public class UpdateRobotApplicationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="application")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1224)] + [System.ComponentModel.DataAnnotations.Length(1, 1224)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:.*")] public string Application { get; set; } @@ -7541,8 +7452,7 @@ public class UpdateRobotApplicationPostBody /// Pattern: [a-zA-Z0-9_.\-]* /// [System.Runtime.Serialization.DataMember(Name="currentRevisionId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.\-]*")] public string CurrentRevisionId { get; set; } @@ -7582,8 +7492,7 @@ public class UpdateSimulationApplicationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="application")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1224)] + [System.ComponentModel.DataAnnotations.Length(1, 1224)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:.*")] public string Application { get; set; } @@ -7622,8 +7531,7 @@ public class UpdateSimulationApplicationPostBody /// Pattern: [a-zA-Z0-9_.\-]* /// [System.Runtime.Serialization.DataMember(Name="currentRevisionId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9_.\-]*")] public string CurrentRevisionId { get; set; } @@ -7683,8 +7591,7 @@ public class UpdateWorldTemplatePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="template")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1224)] + [System.ComponentModel.DataAnnotations.Length(1, 1224)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:.*")] public string Template { get; set; } @@ -7695,8 +7602,7 @@ public class UpdateWorldTemplatePostBody /// Pattern: .* /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Name { get; set; } @@ -7707,8 +7613,7 @@ public class UpdateWorldTemplatePostBody /// Pattern: [\S\s]+ /// [System.Runtime.Serialization.DataMember(Name="templateBody")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(262144)] + [System.ComponentModel.DataAnnotations.Length(1, 262144)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\S\s]+")] public string TemplateBody { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_rolesanywhere_2018_05_10_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_rolesanywhere_2018_05_10_.cs index 33cde19f..3586d3f5 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_rolesanywhere_2018_05_10_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_rolesanywhere_2018_05_10_.cs @@ -1660,8 +1660,7 @@ public class CreateProfilePostBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember(Name="managedPolicyArns")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public string[] ManagedPolicyArns { get; set; } /// @@ -1673,8 +1672,7 @@ public class CreateProfilePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[ a-zA-Z0-9-_]*$")] public string Name { get; set; } @@ -1692,8 +1690,7 @@ public class CreateProfilePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="roleArns")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public string[] RoleArns { get; set; } /// @@ -1708,8 +1705,7 @@ public class CreateProfilePostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } } @@ -1731,8 +1727,7 @@ public class CreateTrustAnchorPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[ a-zA-Z0-9-_]*$")] public string Name { get; set; } @@ -1742,8 +1737,7 @@ public class CreateTrustAnchorPostBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember(Name="notificationSettings")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public NotificationSetting[] NotificationSettings { get; set; } /// @@ -1760,8 +1754,7 @@ public class CreateTrustAnchorPostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } } @@ -1784,8 +1777,7 @@ public class UpdateCrlPatchBody /// Max length: 300000 /// [System.Runtime.Serialization.DataMember(Name="crlData")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(300000)] + [System.ComponentModel.DataAnnotations.Length(1, 300000)] public string CrlData { get; set; } /// @@ -1795,8 +1787,7 @@ public class UpdateCrlPatchBody /// Pattern: ^[ a-zA-Z0-9-_]*$ /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[ a-zA-Z0-9-_]*$")] public string Name { get; set; } } @@ -1819,8 +1810,7 @@ public class UpdateProfilePatchBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember(Name="managedPolicyArns")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public string[] ManagedPolicyArns { get; set; } /// @@ -1830,8 +1820,7 @@ public class UpdateProfilePatchBody /// Pattern: ^[ a-zA-Z0-9-_]*$ /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[ a-zA-Z0-9-_]*$")] public string Name { get; set; } @@ -1841,8 +1830,7 @@ public class UpdateProfilePatchBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember(Name="roleArns")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public string[] RoleArns { get; set; } /// @@ -1851,8 +1839,7 @@ public class UpdateProfilePatchBody /// Max length: 100000 /// [System.Runtime.Serialization.DataMember(Name="sessionPolicy")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100000)] + [System.ComponentModel.DataAnnotations.Length(1, 100000)] public string SessionPolicy { get; set; } } @@ -1866,8 +1853,7 @@ public class UpdateTrustAnchorPatchBody /// Pattern: ^[ a-zA-Z0-9-_]*$ /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[ a-zA-Z0-9-_]*$")] public string Name { get; set; } @@ -1899,8 +1885,7 @@ public class ImportCrlPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="crlData")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(300000)] + [System.ComponentModel.DataAnnotations.Length(1, 300000)] public string CrlData { get; set; } /// @@ -1918,8 +1903,7 @@ public class ImportCrlPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[ a-zA-Z0-9-_]*$")] public string Name { get; set; } @@ -1929,8 +1913,7 @@ public class ImportCrlPostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } /// @@ -1942,8 +1925,7 @@ public class ImportCrlPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="trustAnchorArn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws(-[^:]+)?:rolesanywhere(:.*){2}(:trust-anchor.*)$")] public string TrustAnchorArn { get; set; } } @@ -1959,8 +1941,7 @@ public class PutNotificationSettingsPatchBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="notificationSettings")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public NotificationSetting[] NotificationSettings { get; set; } /// @@ -1972,8 +1953,7 @@ public class PutNotificationSettingsPatchBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="trustAnchorId")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-f0-9]{8}-([a-z0-9]{4}-){3}[a-z0-9]{12}")] public string TrustAnchorId { get; set; } } @@ -1989,8 +1969,7 @@ public class ResetNotificationSettingsPatchBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="notificationSettingKeys")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public NotificationSettingKey[] NotificationSettingKeys { get; set; } /// @@ -2002,8 +1981,7 @@ public class ResetNotificationSettingsPatchBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="trustAnchorId")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-f0-9]{8}-([a-z0-9]{4}-){3}[a-z0-9]{12}")] public string TrustAnchorId { get; set; } } @@ -2019,8 +1997,7 @@ public class TagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="resourceArn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] public string ResourceArn { get; set; } /// @@ -2031,8 +2008,7 @@ public class TagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } } @@ -2047,8 +2023,7 @@ public class UntagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="resourceArn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] public string ResourceArn { get; set; } /// @@ -2059,8 +2034,7 @@ public class UntagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="tagKeys")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public string[] TagKeys { get; set; } } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_route53_recovery_control_config_2020_11_02_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_route53_recovery_control_config_2020_11_02_.cs index d6c99a90..738d41b2 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_route53_recovery_control_config_2020_11_02_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_route53_recovery_control_config_2020_11_02_.cs @@ -1630,8 +1630,7 @@ public class CreateClusterPostBody /// Pattern: ^\S+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\S+$")] public string ClientToken { get; set; } @@ -1644,8 +1643,7 @@ public class CreateClusterPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\S+$")] public string ClusterName { get; set; } @@ -1666,8 +1664,7 @@ public class CreateControlPanelPostBody /// Pattern: ^\S+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\S+$")] public string ClientToken { get; set; } @@ -1680,8 +1677,7 @@ public class CreateControlPanelPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Za-z0-9:\/_-]*$")] public string ClusterArn { get; set; } @@ -1694,8 +1690,7 @@ public class CreateControlPanelPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\S+$")] public string ControlPanelName { get; set; } @@ -1718,8 +1713,7 @@ public class UpdateControlPanelPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Za-z0-9:\/_-]*$")] public string ControlPanelArn { get; set; } @@ -1732,8 +1726,7 @@ public class UpdateControlPanelPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\S+$")] public string ControlPanelName { get; set; } } @@ -1748,8 +1741,7 @@ public class CreateRoutingControlPostBody /// Pattern: ^\S+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\S+$")] public string ClientToken { get; set; } @@ -1762,8 +1754,7 @@ public class CreateRoutingControlPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Za-z0-9:\/_-]*$")] public string ClusterArn { get; set; } @@ -1774,8 +1765,7 @@ public class CreateRoutingControlPostBody /// Pattern: ^[A-Za-z0-9:\/_-]*$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Za-z0-9:\/_-]*$")] public string ControlPanelArn { get; set; } @@ -1788,8 +1778,7 @@ public class CreateRoutingControlPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\S+$")] public string RoutingControlName { get; set; } } @@ -1806,8 +1795,7 @@ public class UpdateRoutingControlPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Za-z0-9:\/_-]*$")] public string RoutingControlArn { get; set; } @@ -1820,8 +1808,7 @@ public class UpdateRoutingControlPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\S+$")] public string RoutingControlName { get; set; } } @@ -1842,8 +1829,7 @@ public class CreateSafetyRulePostBody /// Pattern: ^\S+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\S+$")] public string ClientToken { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_rum_2018_05_10_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_rum_2018_05_10_.cs index 16b9dd56..a50f225e 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_rum_2018_05_10_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_rum_2018_05_10_.cs @@ -1468,8 +1468,7 @@ public class BatchCreateRumMetricDefinitionsPostBody /// Pattern: arn:[^:]*:[^:]*:[^:]*:[^:]*:.* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[^:]*:[^:]*:[^:]*:[^:]*:.*")] public string DestinationArn { get; set; } @@ -1500,8 +1499,7 @@ public class UpdateRumMetricDefinitionPatchBody /// Pattern: arn:[^:]*:[^:]*:[^:]*:[^:]*:.* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[^:]*:[^:]*:[^:]*:[^:]*:.*")] public string DestinationArn { get; set; } @@ -1521,8 +1519,7 @@ public class UpdateRumMetricDefinitionPatchBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string MetricDefinitionId { get; set; } } @@ -1578,8 +1575,7 @@ public class CreateAppMonitorPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(253)] + [System.ComponentModel.DataAnnotations.Length(1, 253)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(localhost)|^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$|^(?![-.])([A-Za-z0-9-\.\-]{0,63})((?![-])([a-zA-Z0-9]{1}|^[a-zA-Z0-9]{0,1}))\.(?![-])[A-Za-z-0-9]{1,63}((?![-])([a-zA-Z0-9]{1}|^[a-zA-Z0-9]{0,1}))|^(\*\.)(?![-.])([A-Za-z0-9-\.\-]{0,63})((?![-])([a-zA-Z0-9]{1}|^[a-zA-Z0-9]{0,1}))\.(?![-])[A-Za-z-0-9]{1,63}((?![-])([a-zA-Z0-9]{1}|^[a-zA-Z0-9]{0,1}))")] public string Domain { get; set; } @@ -1592,8 +1588,7 @@ public class CreateAppMonitorPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?!\.)[\.\-_#A-Za-z0-9]+$")] public string Name { get; set; } @@ -1670,8 +1665,7 @@ public class UpdateAppMonitorPatchBody /// Pattern: ^(localhost)|^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$|^(?![-.])([A-Za-z0-9-\.\-]{0,63})((?![-])([a-zA-Z0-9]{1}|^[a-zA-Z0-9]{0,1}))\.(?![-])[A-Za-z-0-9]{1,63}((?![-])([a-zA-Z0-9]{1}|^[a-zA-Z0-9]{0,1}))|^(\*\.)(?![-.])([A-Za-z0-9-\.\-]{0,63})((?![-])([a-zA-Z0-9]{1}|^[a-zA-Z0-9]{0,1}))\.(?![-])[A-Za-z-0-9]{1,63}((?![-])([a-zA-Z0-9]{1}|^[a-zA-Z0-9]{0,1})) /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(253)] + [System.ComponentModel.DataAnnotations.Length(1, 253)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(localhost)|^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$|^(?![-.])([A-Za-z0-9-\.\-]{0,63})((?![-])([a-zA-Z0-9]{1}|^[a-zA-Z0-9]{0,1}))\.(?![-])[A-Za-z-0-9]{1,63}((?![-])([a-zA-Z0-9]{1}|^[a-zA-Z0-9]{0,1}))|^(\*\.)(?![-.])([A-Za-z0-9-\.\-]{0,63})((?![-])([a-zA-Z0-9]{1}|^[a-zA-Z0-9]{0,1}))\.(?![-])[A-Za-z-0-9]{1,63}((?![-])([a-zA-Z0-9]{1}|^[a-zA-Z0-9]{0,1}))")] public string Domain { get; set; } } @@ -1775,8 +1769,7 @@ public class PutRumMetricsDestinationPostBody /// Pattern: arn:[^:]*:[^:]*:[^:]*:[^:]*:.* /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[^:]*:[^:]*:[^:]*:[^:]*:.*")] public string DestinationArn { get; set; } @@ -1821,8 +1814,7 @@ public class PutRumEventsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$")] public string BatchId { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_runtime_lex_2016_11_28_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_runtime_lex_2016_11_28_.cs index 3a36bef8..79954297 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_runtime_lex_2016_11_28_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_runtime_lex_2016_11_28_.cs @@ -768,8 +768,7 @@ public class PutSessionPostBody /// Maximum items: 3 /// [System.Runtime.Serialization.DataMember(Name="recentIntentSummaryView")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(0, 3)] public IntentSummary[] RecentIntentSummaryView { get; set; } /// @@ -778,8 +777,7 @@ public class PutSessionPostBody /// Maximum items: 20 /// [System.Runtime.Serialization.DataMember(Name="activeContexts")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(0, 20)] public ActiveContext[] ActiveContexts { get; set; } } @@ -843,8 +841,7 @@ public class PostTextPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="inputText")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string InputText { get; set; } /// @@ -853,8 +850,7 @@ public class PostTextPostBody /// Maximum items: 20 /// [System.Runtime.Serialization.DataMember(Name="activeContexts")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(0, 20)] public ActiveContext[] ActiveContexts { get; set; } } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_runtime_lex_v2_2020_08_07_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_runtime_lex_v2_2020_08_07_.cs index daa4f871..fb46b59c 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_runtime_lex_v2_2020_08_07_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_runtime_lex_v2_2020_08_07_.cs @@ -986,8 +986,7 @@ public class RecognizeTextPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="text")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string Text { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_sagemaker_2017_07_24_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_sagemaker_2017_07_24_.cs index a8747441..93b71f9d 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_sagemaker_2017_07_24_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_sagemaker_2017_07_24_.cs @@ -10441,8 +10441,7 @@ public class AthenaDatasetDefinition /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Catalog { get; set; } /// @@ -10454,8 +10453,7 @@ public class AthenaDatasetDefinition /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Database { get; set; } @@ -10468,8 +10466,7 @@ public class AthenaDatasetDefinition /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4096)] + [System.ComponentModel.DataAnnotations.Length(1, 4096)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]+")] public string QueryString { get; set; } @@ -10480,8 +10477,7 @@ public class AthenaDatasetDefinition /// Pattern: [a-zA-Z0-9._-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9._-]+")] public string WorkGroup { get; set; } @@ -10560,8 +10556,7 @@ public class RedshiftDatasetDefinition /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string ClusterId { get; set; } @@ -10574,8 +10569,7 @@ public class RedshiftDatasetDefinition /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string Database { get; set; } @@ -10588,8 +10582,7 @@ public class RedshiftDatasetDefinition /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string DbUser { get; set; } @@ -10602,8 +10595,7 @@ public class RedshiftDatasetDefinition /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4096)] + [System.ComponentModel.DataAnnotations.Length(1, 4096)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\s\S]+")] public string QueryString { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_sagemaker_a2i_runtime_2019_11_07_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_sagemaker_a2i_runtime_2019_11_07_.cs index fce96e1f..13243502 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_sagemaker_a2i_runtime_2019_11_07_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_sagemaker_a2i_runtime_2019_11_07_.cs @@ -488,8 +488,7 @@ public class StartHumanLoopPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-z0-9](-*[a-z0-9])*$")] public string HumanLoopName { get; set; } @@ -546,8 +545,7 @@ public class StopHumanLoopPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-z0-9](-*[a-z0-9])*$")] public string HumanLoopName { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_sagemaker_edge_2020_09_23_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_sagemaker_edge_2020_09_23_.cs index bba5e21c..ed093b6c 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_sagemaker_edge_2020_09_23_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_sagemaker_edge_2020_09_23_.cs @@ -436,8 +436,7 @@ public class GetDeploymentsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9](-*_*[a-zA-Z0-9])*$")] public string DeviceName { get; set; } @@ -450,8 +449,7 @@ public class GetDeploymentsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9](-*_*[a-zA-Z0-9])*$")] public string DeviceFleetName { get; set; } } @@ -468,8 +466,7 @@ public class GetDeviceRegistrationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9](-*_*[a-zA-Z0-9])*$")] public string DeviceName { get; set; } @@ -482,8 +479,7 @@ public class GetDeviceRegistrationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9](-*_*[a-zA-Z0-9])*$")] public string DeviceFleetName { get; set; } } @@ -512,8 +508,7 @@ public class SendHeartbeatPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9\ \_\.]+")] public string AgentVersion { get; set; } @@ -526,8 +521,7 @@ public class SendHeartbeatPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9](-*_*[a-zA-Z0-9])*$")] public string DeviceName { get; set; } @@ -540,8 +534,7 @@ public class SendHeartbeatPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(1, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9](-*_*[a-zA-Z0-9])*$")] public string DeviceFleetName { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_sagemaker_featurestore_runtime_2020_07_01_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_sagemaker_featurestore_runtime_2020_07_01_.cs index 6bb6a7a4..20e86171 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_sagemaker_featurestore_runtime_2020_07_01_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_sagemaker_featurestore_runtime_2020_07_01_.cs @@ -482,8 +482,7 @@ public class BatchGetRecordPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public BatchGetRecordIdentifier[] Identifiers { get; set; } /// @@ -512,8 +511,7 @@ public class PutRecordPutBody /// Maximum items: 2 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(1, 2)] public TargetStore[] TargetStores { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_sagemaker_geospatial_2020_05_27_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_sagemaker_geospatial_2020_05_27_.cs index f2d8e9ac..087a32ba 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_sagemaker_geospatial_2020_05_27_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_sagemaker_geospatial_2020_05_27_.cs @@ -3121,8 +3121,7 @@ public class ExportEarthObservationJobPostBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(36, 64)] public string ClientToken { get; set; } /// @@ -3134,8 +3133,7 @@ public class ExportEarthObservationJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:(aws[a-z-]*):iam::([0-9]{12}):role/[a-zA-Z0-9+=,.@_/-]+$")] public string ExecutionRoleArn { get; set; } @@ -3180,8 +3178,7 @@ public class ExportVectorEnrichmentJobPostBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(36, 64)] public string ClientToken { get; set; } /// @@ -3193,8 +3190,7 @@ public class ExportVectorEnrichmentJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:(aws[a-z-]*):iam::([0-9]{12}):role/[a-zA-Z0-9+=,.@_/-]+$")] public string ExecutionRoleArn { get; set; } @@ -3232,8 +3228,7 @@ public class ListEarthObservationJobsPostBody /// Max length: 8192 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(8192)] + [System.ComponentModel.DataAnnotations.Length(0, 8192)] public string NextToken { get; set; } /// @@ -3285,8 +3280,7 @@ public class ListVectorEnrichmentJobsPostBody /// Max length: 8192 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(8192)] + [System.ComponentModel.DataAnnotations.Length(0, 8192)] public string NextToken { get; set; } /// @@ -3327,8 +3321,7 @@ public class SearchRasterDataCollectionPostBody /// Max length: 8192 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(8192)] + [System.ComponentModel.DataAnnotations.Length(0, 8192)] public string NextToken { get; set; } /// @@ -3365,8 +3358,7 @@ public class StartEarthObservationJobPostBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(36, 64)] public string ClientToken { get; set; } /// @@ -3378,8 +3370,7 @@ public class StartEarthObservationJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:(aws[a-z-]*):iam::([0-9]{12}):role/[a-zA-Z0-9+=,.@_/-]+$")] public string ExecutionRoleArn { get; set; } @@ -3405,8 +3396,7 @@ public class StartEarthObservationJobPostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] public string KmsKeyId { get; set; } /// @@ -3417,8 +3407,7 @@ public class StartEarthObservationJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public string Name { get; set; } /// @@ -3478,8 +3467,7 @@ public class StartVectorEnrichmentJobPostBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(36, 64)] public string ClientToken { get; set; } /// @@ -3491,8 +3479,7 @@ public class StartVectorEnrichmentJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:(aws[a-z-]*):iam::([0-9]{12}):role/[a-zA-Z0-9+=,.@_/-]+$")] public string ExecutionRoleArn { get; set; } @@ -3518,8 +3505,7 @@ public class StartVectorEnrichmentJobPostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] public string KmsKeyId { get; set; } /// @@ -3530,8 +3516,7 @@ public class StartVectorEnrichmentJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public string Name { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_sagemaker_metrics_2022_09_30_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_sagemaker_metrics_2022_09_30_.cs index ffc17658..a43879d0 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_sagemaker_metrics_2022_09_30_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_sagemaker_metrics_2022_09_30_.cs @@ -169,8 +169,7 @@ public class BatchPutMetricsPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(120)] + [System.ComponentModel.DataAnnotations.Length(1, 120)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,119}")] public string TrialComponentName { get; set; } @@ -182,8 +181,7 @@ public class BatchPutMetricsPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public RawMetricData[] MetricData { get; set; } } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_scheduler_2021_06_30_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_scheduler_2021_06_30_.cs index 134ae59f..bb5ea1ac 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_scheduler_2021_06_30_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_scheduler_2021_06_30_.cs @@ -1339,8 +1339,7 @@ public class CreateSchedulePostBody /// Pattern: ^[a-zA-Z0-9-_]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_]+$")] public string ClientToken { get; set; } @@ -1350,8 +1349,7 @@ public class CreateSchedulePostBody /// Max length: 512 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(0, 512)] public string Description { get; set; } /// @@ -1375,8 +1373,7 @@ public class CreateSchedulePostBody /// Pattern: ^[0-9a-zA-Z-_.]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-zA-Z-_.]+$")] public string GroupName { get; set; } @@ -1387,8 +1384,7 @@ public class CreateSchedulePostBody /// Pattern: ^arn:aws(-[a-z]+)?:kms:[a-z0-9\-]+:\d{12}:(key|alias)\/[0-9a-zA-Z-_]*$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws(-[a-z]+)?:kms:[a-z0-9\-]+:\d{12}:(key|alias)\/[0-9a-zA-Z-_]*$")] public string KmsKeyArn { get; set; } @@ -1400,8 +1396,7 @@ public class CreateSchedulePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string ScheduleExpression { get; set; } /// @@ -1410,8 +1405,7 @@ public class CreateSchedulePostBody /// Max length: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string ScheduleExpressionTimezone { get; set; } /// @@ -1495,8 +1489,7 @@ public class UpdateSchedulePutBody /// Pattern: ^[a-zA-Z0-9-_]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_]+$")] public string ClientToken { get; set; } @@ -1506,8 +1499,7 @@ public class UpdateSchedulePutBody /// Max length: 512 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(0, 512)] public string Description { get; set; } /// @@ -1531,8 +1523,7 @@ public class UpdateSchedulePutBody /// Pattern: ^[0-9a-zA-Z-_.]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-zA-Z-_.]+$")] public string GroupName { get; set; } @@ -1543,8 +1534,7 @@ public class UpdateSchedulePutBody /// Pattern: ^arn:aws(-[a-z]+)?:kms:[a-z0-9\-]+:\d{12}:(key|alias)\/[0-9a-zA-Z-_]*$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws(-[a-z]+)?:kms:[a-z0-9\-]+:\d{12}:(key|alias)\/[0-9a-zA-Z-_]*$")] public string KmsKeyArn { get; set; } @@ -1556,8 +1546,7 @@ public class UpdateSchedulePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string ScheduleExpression { get; set; } /// @@ -1566,8 +1555,7 @@ public class UpdateSchedulePutBody /// Max length: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string ScheduleExpressionTimezone { get; set; } /// @@ -1645,8 +1633,7 @@ public class CreateScheduleGroupPostBody /// Pattern: ^[a-zA-Z0-9-_]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_]+$")] public string ClientToken { get; set; } @@ -1656,8 +1643,7 @@ public class CreateScheduleGroupPostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } } @@ -1672,8 +1658,7 @@ public class TagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_schemas_2019_12_02_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_schemas_2019_12_02_.cs index 45427a8b..53f5539e 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_schemas_2019_12_02_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_schemas_2019_12_02_.cs @@ -1774,8 +1774,7 @@ public class CreateDiscovererPostBody /// Max length: 256 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string Description { get; set; } /// @@ -1786,8 +1785,7 @@ public class CreateDiscovererPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(20, 1600)] public string SourceArn { get; set; } /// @@ -1812,8 +1810,7 @@ public class CreateRegistryPostBody /// Max length: 256 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string Description { get; set; } /// @@ -1832,8 +1829,7 @@ public class UpdateRegistryPutBody /// Max length: 256 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string Description { get; set; } } @@ -1848,8 +1844,7 @@ public class CreateSchemaPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100000)] + [System.ComponentModel.DataAnnotations.Length(1, 100000)] public string Content { get; set; } /// @@ -1858,8 +1853,7 @@ public class CreateSchemaPostBody /// Max length: 256 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string Description { get; set; } /// @@ -1886,8 +1880,7 @@ public class UpdateSchemaPutBody /// Max length: 36 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(0, 36)] public string ClientTokenId { get; set; } /// @@ -1896,8 +1889,7 @@ public class UpdateSchemaPutBody /// Max length: 100000 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100000)] + [System.ComponentModel.DataAnnotations.Length(1, 100000)] public string Content { get; set; } /// @@ -1906,8 +1898,7 @@ public class UpdateSchemaPutBody /// Max length: 256 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string Description { get; set; } /// @@ -1926,8 +1917,7 @@ public class UpdateDiscovererPutBody /// Max length: 256 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string Description { get; set; } /// @@ -1966,8 +1956,7 @@ public class GetDiscoveredSchemaPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public string[] Events { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_securityhub_2018_10_26_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_securityhub_2018_10_26_.cs index 34e4cafa..499c91c6 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_securityhub_2018_10_26_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_securityhub_2018_10_26_.cs @@ -17999,8 +17999,7 @@ public class BatchDeleteAutomationRulesPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] AutomationRulesArns { get; set; } } @@ -18015,8 +18014,7 @@ public class BatchDisableStandardsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(1, 25)] public string[] StandardsSubscriptionArns { get; set; } } @@ -18031,8 +18029,7 @@ public class BatchEnableStandardsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(1, 25)] public StandardsSubscriptionRequest[] StandardsSubscriptionRequests { get; set; } } @@ -18047,8 +18044,7 @@ public class BatchGetAutomationRulesPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] AutomationRulesArns { get; set; } } @@ -18087,8 +18083,7 @@ public class BatchImportFindingsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public AwsSecurityFinding[] Findings { get; set; } } @@ -18103,8 +18098,7 @@ public class BatchUpdateAutomationRulesPatchBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public UpdateAutomationRulesRequestItem[] UpdateAutomationRulesRequestItems { get; set; } } @@ -18324,8 +18318,7 @@ public class CreateAutomationRulePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public AutomationRulesAction[] Actions { get; set; } } @@ -19318,8 +19311,7 @@ public class GetEnabledStandardsPostBody /// Maximum items: 25 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(1, 25)] public string[] StandardsSubscriptionArns { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_securitylake_2018_05_10_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_securitylake_2018_05_10_.cs index d42d854d..a4bf57c5 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_securitylake_2018_05_10_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_securitylake_2018_05_10_.cs @@ -2252,8 +2252,7 @@ public class CreateAwsLogSourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sources")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public AwsLogSourceConfiguration[] Sources { get; set; } } @@ -2281,8 +2280,7 @@ public class CreateCustomLogSourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\\\w\-_:/.]*$")] public string SourceName { get; set; } @@ -2293,8 +2291,7 @@ public class CreateCustomLogSourcePostBody /// Pattern: ^[A-Za-z0-9\-\.\_]*$ /// [System.Runtime.Serialization.DataMember(Name="sourceVersion")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Za-z0-9\-\.\_]*$")] public string SourceVersion { get; set; } } @@ -2336,8 +2333,7 @@ public class CreateDataLakePostBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public Tag[] Tags { get; set; } } @@ -2470,8 +2466,7 @@ public class CreateSubscriberPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="subscriberName")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(0, 64)] public string SubscriberName { get; set; } /// @@ -2480,8 +2475,7 @@ public class CreateSubscriberPostBody /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public Tag[] Tags { get; set; } } @@ -2550,8 +2544,7 @@ public class DeleteAwsLogSourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sources")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public AwsLogSourceConfiguration[] Sources { get; set; } } @@ -2609,8 +2602,7 @@ public class UpdateSubscriberPutBody /// Pattern: ^[\\\w\-_:/.@=+]*$ /// [System.Runtime.Serialization.DataMember(Name="subscriberName")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(0, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\\\w\-_:/.@=+]*$")] public string SubscriberName { get; set; } } @@ -2743,8 +2735,7 @@ public class TagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public Tag[] Tags { get; set; } } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_servicecatalog_appregistry_2020_06_24_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_servicecatalog_appregistry_2020_06_24_.cs index bb02a448..491f3f4c 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_servicecatalog_appregistry_2020_06_24_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_servicecatalog_appregistry_2020_06_24_.cs @@ -1602,8 +1602,7 @@ public class CreateApplicationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-.\w]+")] public string Name { get; set; } @@ -1630,8 +1629,7 @@ public class CreateApplicationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9][a-zA-Z0-9_-]*")] public string ClientToken { get; set; } } @@ -1648,8 +1646,7 @@ public class CreateAttributeGroupPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-.\w]+")] public string Name { get; set; } @@ -1670,8 +1667,7 @@ public class CreateAttributeGroupPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="attributes")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(8000)] + [System.ComponentModel.DataAnnotations.Length(1, 8000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\u0009\u000A\u000D\u0020-\u00FF]+")] public string Attributes { get; set; } @@ -1690,8 +1686,7 @@ public class CreateAttributeGroupPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9][a-zA-Z0-9_-]*")] public string ClientToken { get; set; } } @@ -1706,8 +1701,7 @@ public class UpdateApplicationPatchBody /// Pattern: [-.\w]+ /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-.\w]+")] public string Name { get; set; } @@ -1730,8 +1724,7 @@ public class UpdateAttributeGroupPatchBody /// Pattern: [-.\w]+ /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[-.\w]+")] public string Name { get; set; } @@ -1750,8 +1743,7 @@ public class UpdateAttributeGroupPatchBody /// Pattern: [\u0009\u000A\u000D\u0020-\u00FF]+ /// [System.Runtime.Serialization.DataMember(Name="attributes")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(8000)] + [System.ComponentModel.DataAnnotations.Length(1, 8000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\u0009\u000A\u000D\u0020-\u00FF]+")] public string Attributes { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_sesv2_2019_09_27_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_sesv2_2019_09_27_.cs index 81622645..4408ed61 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_sesv2_2019_09_27_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_sesv2_2019_09_27_.cs @@ -7044,8 +7044,7 @@ public class BatchGetMetricDataPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public BatchGetMetricDataQuery[] Queries { get; set; } } @@ -7758,8 +7757,7 @@ public class PutAccountDetailsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?")] public string WebsiteURL { get; set; } @@ -7777,8 +7775,7 @@ public class PutAccountDetailsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(5000)] + [System.ComponentModel.DataAnnotations.Length(1, 5000)] public string UseCaseDescription { get; set; } /// @@ -7787,8 +7784,7 @@ public class PutAccountDetailsPostBody /// Maximum items: 4 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(1, 4)] public string[] AdditionalContactEmailAddresses { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_signer_2017_08_25_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_signer_2017_08_25_.cs index 9e6432c1..9c56929c 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_signer_2017_08_25_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_signer_2017_08_25_.cs @@ -1743,8 +1743,7 @@ public class AddProfilePermissionPostBody /// Pattern: ^[a-zA-Z0-9]{10}$ /// [System.Runtime.Serialization.DataMember(Name="profileVersion")] - [System.ComponentModel.DataAnnotations.MinLength(10)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(10, 10)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9]{10}$")] public string ProfileVersion { get; set; } @@ -1876,8 +1875,7 @@ public class StartSigningJobPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="profileName")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9_]{2,}")] public string ProfileName { get; set; } @@ -1896,8 +1894,7 @@ public class StartSigningJobPostBody /// Pattern: ^[0-9]{12}$ /// [System.Runtime.Serialization.DataMember(Name="profileOwner")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9]{12}$")] public string ProfileOwner { get; set; } } @@ -1938,8 +1935,7 @@ public class RevokeSignaturePutBody /// Pattern: ^[0-9]{12}$ /// [System.Runtime.Serialization.DataMember(Name="jobOwner")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9]{12}$")] public string JobOwner { get; set; } @@ -1951,8 +1947,7 @@ public class RevokeSignaturePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="reason")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(1, 500)] public string Reason { get; set; } } @@ -1968,8 +1963,7 @@ public class RevokeSigningProfilePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="profileVersion")] - [System.ComponentModel.DataAnnotations.MinLength(10)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(10, 10)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9]{10}$")] public string ProfileVersion { get; set; } @@ -1981,8 +1975,7 @@ public class RevokeSigningProfilePutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="reason")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(1, 500)] public string Reason { get; set; } /// @@ -2006,8 +1999,7 @@ public class SignPayloadPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="profileName")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9_]{2,}")] public string ProfileName { get; set; } @@ -2018,8 +2010,7 @@ public class SignPayloadPostBody /// Pattern: ^[0-9]{12}$ /// [System.Runtime.Serialization.DataMember(Name="profileOwner")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9]{12}$")] public string ProfileOwner { get; set; } @@ -2031,8 +2022,7 @@ public class SignPayloadPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="payload")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4096)] + [System.ComponentModel.DataAnnotations.Length(1, 4096)] public string Payload { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_simspaceweaver_2022_10_28_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_simspaceweaver_2022_10_28_.cs index a8b86dbd..808bff4f 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_simspaceweaver_2022_10_28_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_simspaceweaver_2022_10_28_.cs @@ -1335,8 +1335,7 @@ public class CreateSnapshotPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9_.-]+$")] public string Simulation { get; set; } } @@ -1373,8 +1372,7 @@ public class StartAppPostBody /// Pattern: ^[a-zA-Z0-9-]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(32)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(32, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-]+$")] public string ClientToken { get; set; } @@ -1384,8 +1382,7 @@ public class StartAppPostBody /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] public string Description { get; set; } /// @@ -1397,8 +1394,7 @@ public class StartAppPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9_.-]+$")] public string Domain { get; set; } @@ -1417,8 +1413,7 @@ public class StartAppPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9_.-]+$")] public string Name { get; set; } @@ -1431,8 +1426,7 @@ public class StartAppPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9_.-]+$")] public string Simulation { get; set; } } @@ -1456,8 +1450,7 @@ public class StartClockPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9_.-]+$")] public string Simulation { get; set; } } @@ -1472,8 +1465,7 @@ public class StartSimulationPostBody /// Pattern: ^[a-zA-Z0-9-]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(32)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(32, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-]+$")] public string ClientToken { get; set; } @@ -1483,8 +1475,7 @@ public class StartSimulationPostBody /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(0, 500)] public string Description { get; set; } /// @@ -1494,8 +1485,7 @@ public class StartSimulationPostBody /// Pattern: ^\d{1,5}[mhdMHD]$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(6)] + [System.ComponentModel.DataAnnotations.Length(2, 6)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\d{1,5}[mhdMHD]$")] public string MaximumDuration { get; set; } @@ -1508,8 +1498,7 @@ public class StartSimulationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9_.-]+$")] public string Name { get; set; } @@ -1522,8 +1511,7 @@ public class StartSimulationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(0, 1600)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:(?:aws|aws-cn|aws-us-gov):iam::(\d{12})?:role\/(.+)$")] public string RoleArn { get; set; } @@ -1578,8 +1566,7 @@ public class StopAppPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9_.-]+$")] public string App { get; set; } @@ -1592,8 +1579,7 @@ public class StopAppPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9_.-]+$")] public string Domain { get; set; } @@ -1606,8 +1592,7 @@ public class StopAppPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9_.-]+$")] public string Simulation { get; set; } } @@ -1624,8 +1609,7 @@ public class StopClockPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9_.-]+$")] public string Simulation { get; set; } } @@ -1642,8 +1626,7 @@ public class StopSimulationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9_.-]+$")] public string Simulation { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_snow_device_management_2021_08_04_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_snow_device_management_2021_08_04_.cs index e3f3a7b9..913e6057 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_snow_device_management_2021_08_04_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_snow_device_management_2021_08_04_.cs @@ -1217,8 +1217,7 @@ public class CreateTaskPostBody /// Pattern: [!-~]+ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[!-~]+")] public string ClientToken { get; set; } @@ -1237,8 +1236,7 @@ public class CreateTaskPostBody /// Pattern: [A-Za-z0-9 _.,!#]* /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-Za-z0-9 _.,!#]*")] public string Description { get; set; } @@ -1256,8 +1254,7 @@ public class CreateTaskPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="targets")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public string[] Targets { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_ssm_incidents_2018_05_10_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_ssm_incidents_2018_05_10_.cs index dbf72f09..ef0c1f0d 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_ssm_incidents_2018_05_10_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_ssm_incidents_2018_05_10_.cs @@ -2741,8 +2741,7 @@ public class CreateReplicationSetPostBody /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] public string ClientToken { get; set; } /// @@ -2769,8 +2768,7 @@ public class CreateResponsePlanPostBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember(Name="actions")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(0, 1)] public Action[] Actions { get; set; } /// @@ -2785,8 +2783,7 @@ public class CreateResponsePlanPostBody /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] public string ClientToken { get; set; } /// @@ -2795,8 +2792,7 @@ public class CreateResponsePlanPostBody /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="displayName")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public string DisplayName { get; set; } /// @@ -2805,8 +2801,7 @@ public class CreateResponsePlanPostBody /// Maximum items: 5 /// [System.Runtime.Serialization.DataMember(Name="engagements")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(0, 5)] public string[] Engagements { get; set; } /// @@ -2823,8 +2818,7 @@ public class CreateResponsePlanPostBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember(Name="integrations")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(0, 1)] public Integration[] Integrations { get; set; } /// @@ -2836,8 +2830,7 @@ public class CreateResponsePlanPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9-_]*$")] public string Name { get; set; } @@ -2889,8 +2882,7 @@ public class CreateTimelineEventPostBody /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] public string ClientToken { get; set; } /// @@ -2901,8 +2893,7 @@ public class CreateTimelineEventPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="eventData")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(12000)] + [System.ComponentModel.DataAnnotations.Length(0, 12000)] public string EventData { get; set; } /// @@ -2911,8 +2902,7 @@ public class CreateTimelineEventPostBody /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="eventReferences")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(0, 10)] public EventReference[] EventReferences { get; set; } /// @@ -2931,8 +2921,7 @@ public class CreateTimelineEventPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="eventType")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string EventType { get; set; } /// @@ -2944,8 +2933,7 @@ public class CreateTimelineEventPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="incidentRecordArn")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws(-cn|-us-gov)?:[a-z0-9-]*:[a-z0-9-]*:([0-9]{12})?:.+$")] public string IncidentRecordArn { get; set; } } @@ -2962,8 +2950,7 @@ public class DeleteIncidentRecordPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="arn")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws(-cn|-us-gov)?:[a-z0-9-]*:[a-z0-9-]*:([0-9]{12})?:.+$")] public string Arn { get; set; } } @@ -2979,8 +2966,7 @@ public class DeleteResourcePolicyPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="policyId")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string PolicyId { get; set; } /// @@ -2992,8 +2978,7 @@ public class DeleteResourcePolicyPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="resourceArn")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws(-cn|-us-gov)?:[a-z0-9-]*:[a-z0-9-]*:([0-9]{12})?:.+$")] public string ResourceArn { get; set; } } @@ -3010,8 +2995,7 @@ public class DeleteResponsePlanPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="arn")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws(-cn|-us-gov)?:[a-z0-9-]*:[a-z0-9-]*:([0-9]{12})?:.+$")] public string Arn { get; set; } } @@ -3027,8 +3011,7 @@ public class DeleteTimelineEventPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="eventId")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public string EventId { get; set; } /// @@ -3040,8 +3023,7 @@ public class DeleteTimelineEventPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="incidentRecordArn")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws(-cn|-us-gov)?:[a-z0-9-]*:[a-z0-9-]*:([0-9]{12})?:.+$")] public string IncidentRecordArn { get; set; } } @@ -3064,8 +3046,7 @@ public class GetResourcePoliciesPostBody /// Max length: 2000 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2000)] + [System.ComponentModel.DataAnnotations.Length(0, 2000)] public string NextToken { get; set; } } @@ -3078,8 +3059,7 @@ public class ListIncidentRecordsPostBody /// Maximum items: 5 /// [System.Runtime.Serialization.DataMember(Name="filters")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(0, 5)] public Filter[] Filters { get; set; } /// @@ -3097,8 +3077,7 @@ public class ListIncidentRecordsPostBody /// Max length: 2000 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2000)] + [System.ComponentModel.DataAnnotations.Length(0, 2000)] public string NextToken { get; set; } } @@ -3114,8 +3093,7 @@ public class ListRelatedItemsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="incidentRecordArn")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws(-cn|-us-gov)?:[a-z0-9-]*:[a-z0-9-]*:([0-9]{12})?:.+$")] public string IncidentRecordArn { get; set; } @@ -3134,8 +3112,7 @@ public class ListRelatedItemsPostBody /// Max length: 2000 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2000)] + [System.ComponentModel.DataAnnotations.Length(0, 2000)] public string NextToken { get; set; } } @@ -3157,8 +3134,7 @@ public class ListReplicationSetsPostBody /// Max length: 2000 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2000)] + [System.ComponentModel.DataAnnotations.Length(0, 2000)] public string NextToken { get; set; } } @@ -3180,8 +3156,7 @@ public class ListResponsePlansPostBody /// Max length: 2000 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2000)] + [System.ComponentModel.DataAnnotations.Length(0, 2000)] public string NextToken { get; set; } } @@ -3206,8 +3181,7 @@ public class ListTimelineEventsPostBody /// Maximum items: 5 /// [System.Runtime.Serialization.DataMember(Name="filters")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(0, 5)] public Filter[] Filters { get; set; } /// @@ -3219,8 +3193,7 @@ public class ListTimelineEventsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="incidentRecordArn")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws(-cn|-us-gov)?:[a-z0-9-]*:[a-z0-9-]*:([0-9]{12})?:.+$")] public string IncidentRecordArn { get; set; } @@ -3239,8 +3212,7 @@ public class ListTimelineEventsPostBody /// Max length: 2000 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2000)] + [System.ComponentModel.DataAnnotations.Length(0, 2000)] public string NextToken { get; set; } /// @@ -3267,8 +3239,7 @@ public class PutResourcePolicyPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="policy")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4000)] + [System.ComponentModel.DataAnnotations.Length(0, 4000)] public string Policy { get; set; } /// @@ -3280,8 +3251,7 @@ public class PutResourcePolicyPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="resourceArn")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws(-cn|-us-gov)?:[a-z0-9-]*:[a-z0-9-]*:([0-9]{12})?:.+$")] public string ResourceArn { get; set; } } @@ -3295,8 +3265,7 @@ public class StartIncidentPostBody /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] public string ClientToken { get; set; } /// @@ -3314,8 +3283,7 @@ public class StartIncidentPostBody /// Maximum items: 100 /// [System.Runtime.Serialization.DataMember(Name="relatedItems")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public RelatedItem[] RelatedItems { get; set; } /// @@ -3327,8 +3295,7 @@ public class StartIncidentPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="responsePlanArn")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws(-cn|-us-gov)?:[a-z0-9-]*:[a-z0-9-]*:([0-9]{12})?:.+$")] public string ResponsePlanArn { get; set; } @@ -3338,8 +3305,7 @@ public class StartIncidentPostBody /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="title")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public string Title { get; set; } /// @@ -3377,8 +3343,7 @@ public class UpdateDeletionProtectionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="arn")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws(-cn|-us-gov)?:[a-z0-9-]*:[a-z0-9-]*:([0-9]{12})?:.+$")] public string Arn { get; set; } @@ -3388,8 +3353,7 @@ public class UpdateDeletionProtectionPostBody /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] public string ClientToken { get; set; } /// @@ -3413,8 +3377,7 @@ public class UpdateIncidentRecordPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="arn")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws(-cn|-us-gov)?:[a-z0-9-]*:[a-z0-9-]*:([0-9]{12})?:.+$")] public string Arn { get; set; } @@ -3430,8 +3393,7 @@ public class UpdateIncidentRecordPostBody /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] public string ClientToken { get; set; } /// @@ -3449,8 +3411,7 @@ public class UpdateIncidentRecordPostBody /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="notificationTargets")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(0, 10)] public NotificationTargetItem[] NotificationTargets { get; set; } /// @@ -3465,8 +3426,7 @@ public class UpdateIncidentRecordPostBody /// Max length: 8000 /// [System.Runtime.Serialization.DataMember(Name="summary")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(8000)] + [System.ComponentModel.DataAnnotations.Length(0, 8000)] public string Summary { get; set; } /// @@ -3475,8 +3435,7 @@ public class UpdateIncidentRecordPostBody /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="title")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public string Title { get; set; } } @@ -3499,8 +3458,7 @@ public class UpdateRelatedItemsPostBody /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] public string ClientToken { get; set; } /// @@ -3512,8 +3470,7 @@ public class UpdateRelatedItemsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="incidentRecordArn")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws(-cn|-us-gov)?:[a-z0-9-]*:[a-z0-9-]*:([0-9]{12})?:.+$")] public string IncidentRecordArn { get; set; } @@ -3547,8 +3504,7 @@ public class UpdateReplicationSetPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="actions")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public UpdateReplicationSetAction[] Actions { get; set; } /// @@ -3560,8 +3516,7 @@ public class UpdateReplicationSetPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="arn")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws(-cn|-us-gov)?:[a-z0-9-]*:[a-z0-9-]*:([0-9]{12})?:.+$")] public string Arn { get; set; } @@ -3571,8 +3526,7 @@ public class UpdateReplicationSetPostBody /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] public string ClientToken { get; set; } } @@ -3585,8 +3539,7 @@ public class UpdateResponsePlanPostBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember(Name="actions")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(0, 1)] public Action[] Actions { get; set; } /// @@ -3598,8 +3551,7 @@ public class UpdateResponsePlanPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="arn")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws(-cn|-us-gov)?:[a-z0-9-]*:[a-z0-9-]*:([0-9]{12})?:.+$")] public string Arn { get; set; } @@ -3615,8 +3567,7 @@ public class UpdateResponsePlanPostBody /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] public string ClientToken { get; set; } /// @@ -3625,8 +3576,7 @@ public class UpdateResponsePlanPostBody /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="displayName")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public string DisplayName { get; set; } /// @@ -3635,8 +3585,7 @@ public class UpdateResponsePlanPostBody /// Maximum items: 5 /// [System.Runtime.Serialization.DataMember(Name="engagements")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(0, 5)] public string[] Engagements { get; set; } /// @@ -3645,8 +3594,7 @@ public class UpdateResponsePlanPostBody /// Max length: 1000 /// [System.Runtime.Serialization.DataMember(Name="incidentTemplateDedupeString")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] public string IncidentTemplateDedupeString { get; set; } /// @@ -3664,8 +3612,7 @@ public class UpdateResponsePlanPostBody /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="incidentTemplateNotificationTargets")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(0, 10)] public NotificationTargetItem[] IncidentTemplateNotificationTargets { get; set; } /// @@ -3674,8 +3621,7 @@ public class UpdateResponsePlanPostBody /// Max length: 8000 /// [System.Runtime.Serialization.DataMember(Name="incidentTemplateSummary")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(8000)] + [System.ComponentModel.DataAnnotations.Length(0, 8000)] public string IncidentTemplateSummary { get; set; } /// @@ -3690,8 +3636,7 @@ public class UpdateResponsePlanPostBody /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="incidentTemplateTitle")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public string IncidentTemplateTitle { get; set; } /// @@ -3700,8 +3645,7 @@ public class UpdateResponsePlanPostBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember(Name="integrations")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(0, 1)] public Integration[] Integrations { get; set; } } @@ -3724,8 +3668,7 @@ public class UpdateTimelineEventPostBody /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] public string ClientToken { get; set; } /// @@ -3734,8 +3677,7 @@ public class UpdateTimelineEventPostBody /// Max length: 12000 /// [System.Runtime.Serialization.DataMember(Name="eventData")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(12000)] + [System.ComponentModel.DataAnnotations.Length(0, 12000)] public string EventData { get; set; } /// @@ -3746,8 +3688,7 @@ public class UpdateTimelineEventPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="eventId")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public string EventId { get; set; } /// @@ -3756,8 +3697,7 @@ public class UpdateTimelineEventPostBody /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="eventReferences")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(0, 10)] public EventReference[] EventReferences { get; set; } /// @@ -3772,8 +3712,7 @@ public class UpdateTimelineEventPostBody /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="eventType")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string EventType { get; set; } /// @@ -3785,8 +3724,7 @@ public class UpdateTimelineEventPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="incidentRecordArn")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws(-cn|-us-gov)?:[a-z0-9-]*:[a-z0-9-]*:([0-9]{12})?:.+$")] public string IncidentRecordArn { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_ssm_sap_2018_05_10_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_ssm_sap_2018_05_10_.cs index 6ebbbd52..aca87b43 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_ssm_sap_2018_05_10_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_ssm_sap_2018_05_10_.cs @@ -1982,8 +1982,7 @@ public class ListOperationsPostBody /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public Filter[] Filters { get; set; } } @@ -2060,8 +2059,7 @@ public class RegisterApplicationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public string[] Instances { get; set; } /// @@ -2094,8 +2092,7 @@ public class RegisterApplicationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(1, 20)] public ApplicationCredential[] Credentials { get; set; } } @@ -2132,8 +2129,7 @@ public class UpdateApplicationSettingsPostBody /// Maximum items: 20 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(1, 20)] public ApplicationCredential[] CredentialsToAddOrUpdate { get; set; } /// @@ -2142,8 +2138,7 @@ public class UpdateApplicationSettingsPostBody /// Maximum items: 20 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(1, 20)] public ApplicationCredential[] CredentialsToRemove { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_storagegateway_2013_06_30_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_storagegateway_2013_06_30_.cs index c73e0bf7..e521aee1 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_storagegateway_2013_06_30_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_storagegateway_2013_06_30_.cs @@ -31,8 +31,7 @@ public class ActivateGatewayOutput /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -126,8 +125,7 @@ public class AddCacheOutput /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -143,8 +141,7 @@ public class AddCacheInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } /// @@ -198,8 +195,7 @@ public class AddUploadBufferOutput /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -215,8 +211,7 @@ public class AddUploadBufferInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } /// @@ -240,8 +235,7 @@ public class AddWorkingStorageOutput /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -260,8 +254,7 @@ public class AddWorkingStorageInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } /// @@ -343,8 +336,7 @@ public class AssociateFileSystemInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } /// @@ -467,8 +459,7 @@ public class CancelArchivalInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } /// @@ -505,8 +496,7 @@ public class CancelRetrievalInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } /// @@ -540,8 +530,7 @@ public class CreateCachediSCSIVolumeInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } /// @@ -971,8 +960,7 @@ public class CreateStorediSCSIVolumeInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } /// @@ -1211,8 +1199,7 @@ public class DeleteAutomaticTapeCreationPolicyOutput /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -1228,8 +1215,7 @@ public class DeleteAutomaticTapeCreationPolicyInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -1246,8 +1232,7 @@ public class DeleteBandwidthRateLimitOutput /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -1266,8 +1251,7 @@ public class DeleteBandwidthRateLimitInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } /// @@ -1356,8 +1340,7 @@ public class DeleteGatewayOutput /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -1376,8 +1359,7 @@ public class DeleteGatewayInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -1522,8 +1504,7 @@ public class DescribeAvailabilityMonitorTestOutput /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } [System.Runtime.Serialization.DataMember()] @@ -1559,8 +1540,7 @@ public class DescribeAvailabilityMonitorTestInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -1577,8 +1557,7 @@ public class DescribeBandwidthRateLimitOutput /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } [System.Runtime.Serialization.DataMember()] @@ -1603,8 +1582,7 @@ public class DescribeBandwidthRateLimitInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -1618,8 +1596,7 @@ public class DescribeBandwidthRateLimitScheduleOutput /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } [System.Runtime.Serialization.DataMember()] @@ -1687,8 +1664,7 @@ public class DescribeBandwidthRateLimitScheduleInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -1702,8 +1678,7 @@ public class DescribeCacheOutput /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } [System.Runtime.Serialization.DataMember()] @@ -1737,8 +1712,7 @@ public class DescribeCacheInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -1800,8 +1774,7 @@ public class CachediSCSIVolume /// Pattern: (^arn:(aws|aws-cn|aws-us-gov):kms:([a-zA-Z0-9-]+):([0-9]+):(key|alias)/(\S+)$)|(^alias/(\S+)$) /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(7, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(^arn:(aws|aws-cn|aws-us-gov):kms:([a-zA-Z0-9-]+):([0-9]+):(key|alias)/(\S+)$)|(^alias/(\S+)$)")] public string KMSKey { get; set; } @@ -1923,8 +1896,7 @@ public class FileSystemAssociationInfo /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } [System.Runtime.Serialization.DataMember()] @@ -1979,8 +1951,7 @@ public class DescribeGatewayInformationOutput /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } [System.Runtime.Serialization.DataMember()] @@ -2113,8 +2084,7 @@ public class DescribeGatewayInformationInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -2131,8 +2101,7 @@ public class DescribeMaintenanceStartTimeOutput /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } [System.Runtime.Serialization.DataMember()] @@ -2166,8 +2135,7 @@ public class DescribeMaintenanceStartTimeInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -2201,8 +2169,7 @@ public class NFSFileShareInfo /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string FileShareARN { get; set; } /// @@ -2211,8 +2178,7 @@ public class NFSFileShareInfo /// Max length: 30 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(30)] + [System.ComponentModel.DataAnnotations.Length(12, 30)] public string FileShareId { get; set; } /// @@ -2221,8 +2187,7 @@ public class NFSFileShareInfo /// Max length: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(3, 50)] public string FileShareStatus { get; set; } /// @@ -2231,8 +2196,7 @@ public class NFSFileShareInfo /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } [System.Runtime.Serialization.DataMember()] @@ -2245,8 +2209,7 @@ public class NFSFileShareInfo /// Pattern: (^arn:(aws|aws-cn|aws-us-gov):kms:([a-zA-Z0-9-]+):([0-9]+):(key|alias)/(\S+)$)|(^alias/(\S+)$) /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(7, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(^arn:(aws|aws-cn|aws-us-gov):kms:([a-zA-Z0-9-]+):([0-9]+):(key|alias)/(\S+)$)|(^alias/(\S+)$)")] public string KMSKey { get; set; } @@ -2263,8 +2226,7 @@ public class NFSFileShareInfo /// Pattern: ^arn:(aws|aws-cn|aws-us-gov):iam::([0-9]+):role/(\S+)$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:(aws|aws-cn|aws-us-gov):iam::([0-9]+):role/(\S+)$")] public string Role { get; set; } @@ -2274,8 +2236,7 @@ public class NFSFileShareInfo /// Max length: 1400 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(16)] - [System.ComponentModel.DataAnnotations.MaxLength(1400)] + [System.ComponentModel.DataAnnotations.Length(16, 1400)] public string LocationARN { get; set; } [System.Runtime.Serialization.DataMember()] @@ -2293,8 +2254,7 @@ public class NFSFileShareInfo /// Maximum items: 100 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] ClientList { get; set; } /// @@ -2303,8 +2263,7 @@ public class NFSFileShareInfo /// Max length: 15 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(15)] + [System.ComponentModel.DataAnnotations.Length(5, 15)] public string Squash { get; set; } [System.Runtime.Serialization.DataMember()] @@ -2403,8 +2362,7 @@ public class SMBFileShareInfo /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string FileShareARN { get; set; } /// @@ -2413,8 +2371,7 @@ public class SMBFileShareInfo /// Max length: 30 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(30)] + [System.ComponentModel.DataAnnotations.Length(12, 30)] public string FileShareId { get; set; } /// @@ -2423,8 +2380,7 @@ public class SMBFileShareInfo /// Max length: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(3, 50)] public string FileShareStatus { get; set; } /// @@ -2433,8 +2389,7 @@ public class SMBFileShareInfo /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } [System.Runtime.Serialization.DataMember()] @@ -2447,8 +2402,7 @@ public class SMBFileShareInfo /// Pattern: (^arn:(aws|aws-cn|aws-us-gov):kms:([a-zA-Z0-9-]+):([0-9]+):(key|alias)/(\S+)$)|(^alias/(\S+)$) /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(7, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(^arn:(aws|aws-cn|aws-us-gov):kms:([a-zA-Z0-9-]+):([0-9]+):(key|alias)/(\S+)$)|(^alias/(\S+)$)")] public string KMSKey { get; set; } @@ -2462,8 +2416,7 @@ public class SMBFileShareInfo /// Pattern: ^arn:(aws|aws-cn|aws-us-gov):iam::([0-9]+):role/(\S+)$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:(aws|aws-cn|aws-us-gov):iam::([0-9]+):role/(\S+)$")] public string Role { get; set; } @@ -2473,8 +2426,7 @@ public class SMBFileShareInfo /// Max length: 1400 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(16)] - [System.ComponentModel.DataAnnotations.MaxLength(1400)] + [System.ComponentModel.DataAnnotations.Length(16, 1400)] public string LocationARN { get; set; } [System.Runtime.Serialization.DataMember()] @@ -2519,8 +2471,7 @@ public class SMBFileShareInfo /// Max length: 15 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(15)] + [System.ComponentModel.DataAnnotations.Length(5, 15)] public string Authentication { get; set; } [System.Runtime.Serialization.DataMember()] @@ -2599,8 +2550,7 @@ public class DescribeSMBSettingsOutput /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } [System.Runtime.Serialization.DataMember()] @@ -2685,8 +2635,7 @@ public class DescribeSMBSettingsInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -2789,8 +2738,7 @@ public class StorediSCSIVolume /// Pattern: (^arn:(aws|aws-cn|aws-us-gov):kms:([a-zA-Z0-9-]+):([0-9]+):(key|alias)/(\S+)$)|(^alias/(\S+)$) /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(7, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(^arn:(aws|aws-cn|aws-us-gov):kms:([a-zA-Z0-9-]+):([0-9]+):(key|alias)/(\S+)$)|(^alias/(\S+)$)")] public string KMSKey { get; set; } @@ -2865,8 +2813,7 @@ public class TapeArchive /// Pattern: (^arn:(aws|aws-cn|aws-us-gov):kms:([a-zA-Z0-9-]+):([0-9]+):(key|alias)/(\S+)$)|(^alias/(\S+)$) /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(7, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(^arn:(aws|aws-cn|aws-us-gov):kms:([a-zA-Z0-9-]+):([0-9]+):(key|alias)/(\S+)$)|(^alias/(\S+)$)")] public string KMSKey { get; set; } @@ -2913,8 +2860,7 @@ public class DescribeTapeRecoveryPointsOutput /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } [System.Runtime.Serialization.DataMember()] @@ -2959,8 +2905,7 @@ public class DescribeTapeRecoveryPointsInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } [System.Runtime.Serialization.DataMember()] @@ -3022,8 +2967,7 @@ public class Tape /// Pattern: (^arn:(aws|aws-cn|aws-us-gov):kms:([a-zA-Z0-9-]+):([0-9]+):(key|alias)/(\S+)$)|(^alias/(\S+)$) /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(7, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(^arn:(aws|aws-cn|aws-us-gov):kms:([a-zA-Z0-9-]+):([0-9]+):(key|alias)/(\S+)$)|(^alias/(\S+)$)")] public string KMSKey { get; set; } @@ -3055,8 +2999,7 @@ public class DescribeTapesInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } [System.Runtime.Serialization.DataMember()] @@ -3079,8 +3022,7 @@ public class DescribeUploadBufferOutput /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } [System.Runtime.Serialization.DataMember()] @@ -3105,8 +3047,7 @@ public class DescribeUploadBufferInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -3123,8 +3064,7 @@ public class DescribeVTLDevicesOutput /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } [System.Runtime.Serialization.DataMember()] @@ -3192,8 +3132,7 @@ public class DescribeVTLDevicesInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } [System.Runtime.Serialization.DataMember()] @@ -3219,8 +3158,7 @@ public class DescribeWorkingStorageOutput /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } [System.Runtime.Serialization.DataMember()] @@ -3248,8 +3186,7 @@ public class DescribeWorkingStorageInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -3308,8 +3245,7 @@ public class DisableGatewayInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -3419,8 +3355,7 @@ public class AutomaticTapeCreationPolicyInfo /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -3473,8 +3408,7 @@ public class ListAutomaticTapeCreationPoliciesInput /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -3514,8 +3448,7 @@ public class FileShareInfo /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string FileShareARN { get; set; } /// @@ -3524,8 +3457,7 @@ public class FileShareInfo /// Max length: 30 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(30)] + [System.ComponentModel.DataAnnotations.Length(12, 30)] public string FileShareId { get; set; } /// @@ -3534,8 +3466,7 @@ public class FileShareInfo /// Max length: 50 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(3, 50)] public string FileShareStatus { get; set; } /// @@ -3544,8 +3475,7 @@ public class FileShareInfo /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -3613,8 +3543,7 @@ public class FileSystemAssociationSummary /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -3628,8 +3557,7 @@ public class ListFileSystemAssociationsInput /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } [System.Runtime.Serialization.DataMember()] @@ -3709,8 +3637,7 @@ public class ListLocalDisksOutput /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } [System.Runtime.Serialization.DataMember()] @@ -3745,8 +3672,7 @@ public class Disk /// Max length: 100 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(3, 100)] public string DiskAllocationType { get; set; } [System.Runtime.Serialization.DataMember()] @@ -3758,8 +3684,7 @@ public class Disk /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(0, 10)] public string[] DiskAttributeList { get; set; } } @@ -3778,8 +3703,7 @@ public class ListLocalDisksInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -3988,8 +3912,7 @@ public class ListVolumeRecoveryPointsOutput /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } [System.Runtime.Serialization.DataMember()] @@ -4028,8 +3951,7 @@ public class ListVolumeRecoveryPointsInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -4046,8 +3968,7 @@ public class ListVolumesOutput /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } [System.Runtime.Serialization.DataMember()] @@ -4076,8 +3997,7 @@ public class VolumeInfo /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } [System.Runtime.Serialization.DataMember()] @@ -4106,8 +4026,7 @@ public class ListVolumesInput /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } [System.Runtime.Serialization.DataMember()] @@ -4127,8 +4046,7 @@ public class NotifyWhenUploadedOutput /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string FileShareARN { get; set; } /// @@ -4137,8 +4055,7 @@ public class NotifyWhenUploadedOutput /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string NotificationId { get; set; } } @@ -4154,8 +4071,7 @@ public class NotifyWhenUploadedInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string FileShareARN { get; set; } } @@ -4172,8 +4088,7 @@ public class RefreshCacheOutput /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string FileShareARN { get; set; } /// @@ -4182,8 +4097,7 @@ public class RefreshCacheOutput /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string NotificationId { get; set; } } @@ -4251,8 +4165,7 @@ public class ResetCacheOutput /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -4268,8 +4181,7 @@ public class ResetCacheInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -4339,8 +4251,7 @@ public class RetrieveTapeRecoveryPointInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -4354,8 +4265,7 @@ public class SetLocalConsolePasswordOutput /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -4374,8 +4284,7 @@ public class SetLocalConsolePasswordInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } /// @@ -4396,8 +4305,7 @@ public class SetSMBGuestPasswordOutput /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -4436,8 +4344,7 @@ public class ShutdownGatewayOutput /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -4456,8 +4363,7 @@ public class ShutdownGatewayInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -4471,8 +4377,7 @@ public class StartAvailabilityMonitorTestOutput /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -4488,8 +4393,7 @@ public class StartAvailabilityMonitorTestInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -4506,8 +4410,7 @@ public class StartGatewayOutput /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -4526,8 +4429,7 @@ public class StartGatewayInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -4541,8 +4443,7 @@ public class UpdateAutomaticTapeCreationPolicyOutput /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -4565,8 +4466,7 @@ public class UpdateAutomaticTapeCreationPolicyInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -4583,8 +4483,7 @@ public class UpdateBandwidthRateLimitOutput /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -4603,8 +4502,7 @@ public class UpdateBandwidthRateLimitInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } [System.Runtime.Serialization.DataMember()] @@ -4624,8 +4522,7 @@ public class UpdateBandwidthRateLimitScheduleOutput /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -4641,8 +4538,7 @@ public class UpdateBandwidthRateLimitScheduleInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } /// @@ -4747,8 +4643,7 @@ public class UpdateGatewayInformationOutput /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } [System.Runtime.Serialization.DataMember()] @@ -4767,8 +4662,7 @@ public class UpdateGatewayInformationInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } /// @@ -4778,8 +4672,7 @@ public class UpdateGatewayInformationInput /// Pattern: ^[ -\.0-\[\]-~]*[!-\.0-\[\]-~][ -\.0-\[\]-~]*$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(2, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[ -\.0-\[\]-~]*[!-\.0-\[\]-~][ -\.0-\[\]-~]*$")] public string GatewayName { get; set; } @@ -4806,8 +4699,7 @@ public class UpdateGatewaySoftwareNowOutput /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -4826,8 +4718,7 @@ public class UpdateGatewaySoftwareNowInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -4844,8 +4735,7 @@ public class UpdateMaintenanceStartTimeOutput /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -4864,8 +4754,7 @@ public class UpdateMaintenanceStartTimeInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } /// @@ -5047,8 +4936,7 @@ public class UpdateSMBFileShareVisibilityOutput /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -5064,8 +4952,7 @@ public class UpdateSMBFileShareVisibilityInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } /// @@ -5086,8 +4973,7 @@ public class UpdateSMBLocalGroupsOutput /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -5103,8 +4989,7 @@ public class UpdateSMBLocalGroupsInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } /// @@ -5125,8 +5010,7 @@ public class UpdateSMBSecurityStrategyOutput /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } } @@ -5142,8 +5026,7 @@ public class UpdateSMBSecurityStrategyInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(50, 500)] public string GatewayARN { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_support_app_2021_08_20_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_support_app_2021_08_20_.cs index d2ebb577..7a25046d 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_support_app_2021_08_20_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_support_app_2021_08_20_.cs @@ -709,8 +709,7 @@ public class CreateSlackChannelConfigurationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="channelId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\S+$")] public string ChannelId { get; set; } @@ -721,8 +720,7 @@ public class CreateSlackChannelConfigurationPostBody /// Pattern: ^.+$ /// [System.Runtime.Serialization.DataMember(Name="channelName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^.+$")] public string ChannelName { get; set; } @@ -735,8 +733,7 @@ public class CreateSlackChannelConfigurationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="channelRoleArn")] - [System.ComponentModel.DataAnnotations.MinLength(31)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(31, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:iam::[0-9]{12}:role/(.+)$")] public string ChannelRoleArn { get; set; } @@ -775,8 +772,7 @@ public class CreateSlackChannelConfigurationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="teamId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\S+$")] public string TeamId { get; set; } } @@ -793,8 +789,7 @@ public class DeleteSlackChannelConfigurationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="channelId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\S+$")] public string ChannelId { get; set; } @@ -807,8 +802,7 @@ public class DeleteSlackChannelConfigurationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="teamId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\S+$")] public string TeamId { get; set; } } @@ -825,8 +819,7 @@ public class DeleteSlackWorkspaceConfigurationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="teamId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\S+$")] public string TeamId { get; set; } } @@ -841,8 +834,7 @@ public class ListSlackChannelConfigurationsPostBody /// Pattern: ^\S+$ /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\S+$")] public string NextToken { get; set; } } @@ -857,8 +849,7 @@ public class ListSlackWorkspaceConfigurationsPostBody /// Pattern: ^\S+$ /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\S+$")] public string NextToken { get; set; } } @@ -875,8 +866,7 @@ public class PutAccountAliasPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="accountAlias")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(30)] + [System.ComponentModel.DataAnnotations.Length(1, 30)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[\w\- ]+$")] public string AccountAlias { get; set; } } @@ -893,8 +883,7 @@ public class RegisterSlackWorkspaceForOrganizationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="teamId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\S+$")] public string TeamId { get; set; } } @@ -911,8 +900,7 @@ public class UpdateSlackChannelConfigurationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="channelId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\S+$")] public string ChannelId { get; set; } @@ -923,8 +911,7 @@ public class UpdateSlackChannelConfigurationPostBody /// Pattern: ^.+$ /// [System.Runtime.Serialization.DataMember(Name="channelName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^.+$")] public string ChannelName { get; set; } @@ -935,8 +922,7 @@ public class UpdateSlackChannelConfigurationPostBody /// Pattern: ^arn:aws:iam::[0-9]{12}:role/(.+)$ /// [System.Runtime.Serialization.DataMember(Name="channelRoleArn")] - [System.ComponentModel.DataAnnotations.MinLength(31)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(31, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:aws:iam::[0-9]{12}:role/(.+)$")] public string ChannelRoleArn { get; set; } @@ -973,8 +959,7 @@ public class UpdateSlackChannelConfigurationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="teamId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\S+$")] public string TeamId { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_synthetics_2017_10_11_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_synthetics_2017_10_11_.cs index 469ef1e4..3a7b9ed4 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_synthetics_2017_10_11_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_synthetics_2017_10_11_.cs @@ -1783,8 +1783,7 @@ public class AssociateResourcePatchBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:(aws[a-zA-Z-]*)?:synthetics:[a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\d{1}:\d{12}:canary:[0-9a-z_\-]{1,21}")] public string ResourceArn { get; set; } } @@ -1801,8 +1800,7 @@ public class CreateCanaryPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(21)] + [System.ComponentModel.DataAnnotations.Length(1, 21)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-z_\-]+$")] public string Name { get; set; } @@ -1822,8 +1820,7 @@ public class CreateCanaryPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string ArtifactS3Location { get; set; } /// @@ -1835,8 +1832,7 @@ public class CreateCanaryPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:(aws[a-zA-Z-]*)?:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+")] public string ExecutionRoleArn { get; set; } @@ -1880,8 +1876,7 @@ public class CreateCanaryPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string RuntimeVersion { get; set; } /// @@ -1976,8 +1971,7 @@ public class CreateGroupPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string Name { get; set; } /// @@ -2003,8 +1997,7 @@ public class UpdateCanaryPatchBody /// Pattern: arn:(aws[a-zA-Z-]*)?:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:(aws[a-zA-Z-]*)?:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+")] public string ExecutionRoleArn { get; set; } @@ -2014,8 +2007,7 @@ public class UpdateCanaryPatchBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string RuntimeVersion { get; set; } /// @@ -2066,8 +2058,7 @@ public class UpdateCanaryPatchBody /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string ArtifactS3Location { get; set; } /// @@ -2158,8 +2149,7 @@ public class DescribeCanariesPostBody /// Max length: 252 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(4)] - [System.ComponentModel.DataAnnotations.MaxLength(252)] + [System.ComponentModel.DataAnnotations.Length(4, 252)] public string NextToken { get; set; } /// @@ -2177,8 +2167,7 @@ public class DescribeCanariesPostBody /// Maximum items: 5 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(1, 5)] public string[] Names { get; set; } } @@ -2191,8 +2180,7 @@ public class DescribeCanariesLastRunPostBody /// Max length: 252 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(4)] - [System.ComponentModel.DataAnnotations.MaxLength(252)] + [System.ComponentModel.DataAnnotations.Length(4, 252)] public string NextToken { get; set; } /// @@ -2210,8 +2198,7 @@ public class DescribeCanariesLastRunPostBody /// Maximum items: 5 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(1, 5)] public string[] Names { get; set; } } @@ -2224,8 +2211,7 @@ public class DescribeRuntimeVersionsPostBody /// Max length: 252 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(4)] - [System.ComponentModel.DataAnnotations.MaxLength(252)] + [System.ComponentModel.DataAnnotations.Length(4, 252)] public string NextToken { get; set; } /// @@ -2250,8 +2236,7 @@ public class DisassociateResourcePatchBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:(aws[a-zA-Z-]*)?:synthetics:[a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\d{1}:\d{12}:canary:[0-9a-z_\-]{1,21}")] public string ResourceArn { get; set; } } @@ -2265,8 +2250,7 @@ public class GetCanaryRunsPostBody /// Max length: 252 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(4)] - [System.ComponentModel.DataAnnotations.MaxLength(252)] + [System.ComponentModel.DataAnnotations.Length(4, 252)] public string NextToken { get; set; } /// @@ -2289,8 +2273,7 @@ public class ListAssociatedGroupsPostBody /// Pattern: ^.+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^.+$")] public string NextToken { get; set; } @@ -2314,8 +2297,7 @@ public class ListGroupResourcesPostBody /// Pattern: ^.+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^.+$")] public string NextToken { get; set; } @@ -2339,8 +2321,7 @@ public class ListGroupsPostBody /// Pattern: ^.+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^.+$")] public string NextToken { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_tnb_2008_10_21_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_tnb_2008_10_21_.cs index f8cca74c..0a8f2082 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_tnb_2008_10_21_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_tnb_2008_10_21_.cs @@ -3094,8 +3094,7 @@ public class CreateSolNetworkInstancePostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="nsDescription")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string NsDescription { get; set; } /// @@ -3106,8 +3105,7 @@ public class CreateSolNetworkInstancePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="nsName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string NsName { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_vpc_lattice_2022_11_30_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_vpc_lattice_2022_11_30_.cs index e50ba36b..c32b12c7 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_vpc_lattice_2022_11_30_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_vpc_lattice_2022_11_30_.cs @@ -4270,8 +4270,7 @@ public class BatchUpdateRulePatchBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="rules")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(1, 5)] public RuleUpdate[] Rules { get; set; } } @@ -4293,8 +4292,7 @@ public class CreateRulePostBody /// Pattern: [!-~]+ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[!-~]+")] public string ClientToken { get; set; } @@ -4315,8 +4313,7 @@ public class CreateRulePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(3, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?!rule-)(?![-])(?!.*[-]$)(?!.*[-]{2})[a-z0-9-]+$")] public string Name { get; set; } @@ -4365,8 +4362,7 @@ public class CreateAccessLogSubscriptionPostBody /// Pattern: [!-~]+ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[!-~]+")] public string ClientToken { get; set; } @@ -4379,8 +4375,7 @@ public class CreateAccessLogSubscriptionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="destinationArn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn(:[a-z0-9]+([.-][a-z0-9]+)*){2}(:([a-z0-9]+([.-][a-z0-9]+)*)?){2}:([^/].*)?$")] public string DestinationArn { get; set; } @@ -4393,8 +4388,7 @@ public class CreateAccessLogSubscriptionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="resourceIdentifier")] - [System.ComponentModel.DataAnnotations.MinLength(17)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(17, 200)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^((((sn)|(svc))-[0-9a-z]{17})|(arn(:[a-z0-9]+([.-][a-z0-9]+)*){2}(:([a-z0-9]+([.-][a-z0-9]+)*)?){2}:((servicenetwork/sn)|(service/svc))-[0-9a-z]{17}))$")] public string ResourceIdentifier { get; set; } @@ -4415,8 +4409,7 @@ public class CreateListenerPostBody /// Pattern: [!-~]+ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[!-~]+")] public string ClientToken { get; set; } @@ -4437,8 +4430,7 @@ public class CreateListenerPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(3, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?!listener-)(?![-])(?!.*[-]$)(?!.*[-]{2})[a-z0-9-]+$")] public string Name { get; set; } @@ -4492,8 +4484,7 @@ public class CreateServicePostBody /// Pattern: ^(arn(:[a-z0-9]+([.-][a-z0-9]+)*){2}(:([a-z0-9]+([.-][a-z0-9]+)*)?){2}:certificate/[0-9a-z-]+)?$ /// [System.Runtime.Serialization.DataMember(Name="certificateArn")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(arn(:[a-z0-9]+([.-][a-z0-9]+)*){2}(:([a-z0-9]+([.-][a-z0-9]+)*)?){2}:certificate/[0-9a-z-]+)?$")] public string CertificateArn { get; set; } @@ -4504,8 +4495,7 @@ public class CreateServicePostBody /// Pattern: [!-~]+ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[!-~]+")] public string ClientToken { get; set; } @@ -4515,8 +4505,7 @@ public class CreateServicePostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="customDomainName")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(3, 255)] public string CustomDomainName { get; set; } /// @@ -4528,8 +4517,7 @@ public class CreateServicePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(3, 40)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?!svc-)(?![-])(?!.*[-]$)(?!.*[-]{2})[a-z0-9-]+$")] public string Name { get; set; } @@ -4556,8 +4544,7 @@ public class CreateServiceNetworkPostBody /// Pattern: [!-~]+ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[!-~]+")] public string ClientToken { get; set; } @@ -4570,8 +4557,7 @@ public class CreateServiceNetworkPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(3, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?!servicenetwork-)(?![-])(?!.*[-]$)(?!.*[-]{2})[a-z0-9-]+$")] public string Name { get; set; } @@ -4592,8 +4578,7 @@ public class CreateServiceNetworkServiceAssociationPostBody /// Pattern: [!-~]+ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[!-~]+")] public string ClientToken { get; set; } @@ -4606,8 +4591,7 @@ public class CreateServiceNetworkServiceAssociationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="serviceIdentifier")] - [System.ComponentModel.DataAnnotations.MinLength(17)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(17, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^((svc-[0-9a-z]{17})|(arn:[a-z0-9\-]+:vpc-lattice:[a-zA-Z0-9\-]+:\d{12}:service/svc-[0-9a-z]{17}))$")] public string ServiceIdentifier { get; set; } @@ -4620,8 +4604,7 @@ public class CreateServiceNetworkServiceAssociationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="serviceNetworkIdentifier")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(3, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^((sn-[0-9a-z]{17})|(arn:[a-z0-9\-]+:vpc-lattice:[a-zA-Z0-9\-]+:\d{12}:servicenetwork/sn-[0-9a-z]{17}))$")] public string ServiceNetworkIdentifier { get; set; } @@ -4642,8 +4625,7 @@ public class CreateServiceNetworkVpcAssociationPostBody /// Pattern: [!-~]+ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[!-~]+")] public string ClientToken { get; set; } @@ -4653,8 +4635,7 @@ public class CreateServiceNetworkVpcAssociationPostBody /// Maximum items: 5 /// [System.Runtime.Serialization.DataMember(Name="securityGroupIds")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(0, 5)] public string[] SecurityGroupIds { get; set; } /// @@ -4666,8 +4647,7 @@ public class CreateServiceNetworkVpcAssociationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="serviceNetworkIdentifier")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(3, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^((sn-[0-9a-z]{17})|(arn:[a-z0-9\-]+:vpc-lattice:[a-zA-Z0-9\-]+:\d{12}:servicenetwork/sn-[0-9a-z]{17}))$")] public string ServiceNetworkIdentifier { get; set; } @@ -4686,8 +4666,7 @@ public class CreateServiceNetworkVpcAssociationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="vpcIdentifier")] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(5, 50)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^vpc-(([0-9a-z]{8})|([0-9a-z]{17}))$")] public string VpcIdentifier { get; set; } } @@ -4702,8 +4681,7 @@ public class CreateTargetGroupPostBody /// Pattern: [!-~]+ /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[!-~]+")] public string ClientToken { get; set; } @@ -4722,8 +4700,7 @@ public class CreateTargetGroupPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(3, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(?!tg-)(?![-])(?!.*[-]$)(?!.*[-]{2})[a-z0-9-]+$")] public string Name { get; set; } @@ -4776,8 +4753,7 @@ public class UpdateAccessLogSubscriptionPatchBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="destinationArn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn(:[a-z0-9]+([.-][a-z0-9]+)*){2}(:([a-z0-9]+([.-][a-z0-9]+)*)?){2}:([^/].*)?$")] public string DestinationArn { get; set; } } @@ -4794,8 +4770,7 @@ public class PutAuthPolicyPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="policy")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10000)] + [System.ComponentModel.DataAnnotations.Length(0, 10000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^.*\S.*$")] public string Policy { get; set; } } @@ -4834,8 +4809,7 @@ public class PutResourcePolicyPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="policy")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10000)] + [System.ComponentModel.DataAnnotations.Length(1, 10000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^.*\S.*$")] public string Policy { get; set; } } @@ -4898,8 +4872,7 @@ public class UpdateServicePatchBody /// Pattern: ^(arn(:[a-z0-9]+([.-][a-z0-9]+)*){2}(:([a-z0-9]+([.-][a-z0-9]+)*)?){2}:certificate/[0-9a-z-]+)?$ /// [System.Runtime.Serialization.DataMember(Name="certificateArn")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^(arn(:[a-z0-9]+([.-][a-z0-9]+)*){2}(:([a-z0-9]+([.-][a-z0-9]+)*)?){2}:certificate/[0-9a-z-]+)?$")] public string CertificateArn { get; set; } } @@ -4927,8 +4900,7 @@ public class UpdateServiceNetworkVpcAssociationPatchBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="securityGroupIds")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(1, 5)] public string[] SecurityGroupIds { get; set; } } @@ -4989,8 +4961,7 @@ public class DeregisterTargetsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="targets")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public Target[] Targets { get; set; } } @@ -5015,8 +4986,7 @@ public class ListTargetsPostBody /// Maximum items: 20 /// [System.Runtime.Serialization.DataMember(Name="targets")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(0, 20)] public Target[] Targets { get; set; } } @@ -5031,8 +5001,7 @@ public class RegisterTargetsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="targets")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public Target[] Targets { get; set; } } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_wellarchitected_2020_03_31_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_wellarchitected_2020_03_31_.cs index 14d58110..61400e02 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_wellarchitected_2020_03_31_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_wellarchitected_2020_03_31_.cs @@ -91,8 +91,7 @@ public class CreateMilestoneOutput /// Pattern: [0-9a-f]{32} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(32)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(32, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9a-f]{32}")] public string WorkloadId { get; set; } @@ -130,8 +129,7 @@ public class ProfileQuestionUpdate /// Max length: 128 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string QuestionId { get; set; } [System.Runtime.Serialization.DataMember()] @@ -168,8 +166,7 @@ public class CreateWorkloadOutput /// Pattern: [0-9a-f]{32} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(32)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(32, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9a-f]{32}")] public string WorkloadId { get; set; } @@ -216,8 +213,7 @@ public class CreateWorkloadShareOutput /// Pattern: [0-9a-f]{32} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(32)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(32, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9a-f]{32}")] public string WorkloadId { get; set; } @@ -252,8 +248,7 @@ public class GetAnswerOutput /// Pattern: [0-9a-f]{32} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(32)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(32, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9a-f]{32}")] public string WorkloadId { get; set; } @@ -272,8 +267,7 @@ public class GetAnswerOutput /// Max length: 128 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string LensAlias { get; set; } [System.Runtime.Serialization.DataMember()] @@ -299,8 +293,7 @@ public class Answer /// Max length: 128 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string QuestionId { get; set; } /// @@ -309,8 +302,7 @@ public class Answer /// Max length: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string PillarId { get; set; } /// @@ -319,8 +311,7 @@ public class Answer /// Max length: 512 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] public string QuestionTitle { get; set; } /// @@ -329,8 +320,7 @@ public class Answer /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string QuestionDescription { get; set; } /// @@ -339,8 +329,7 @@ public class Answer /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string ImprovementPlanUrl { get; set; } /// @@ -349,8 +338,7 @@ public class Answer /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string HelpfulResourceUrl { get; set; } [System.Runtime.Serialization.DataMember()] @@ -408,8 +396,7 @@ public class Choice /// Max length: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string ChoiceId { get; set; } /// @@ -418,8 +405,7 @@ public class Choice /// Max length: 512 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] public string Title { get; set; } /// @@ -428,8 +414,7 @@ public class Choice /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string Description { get; set; } [System.Runtime.Serialization.DataMember()] @@ -494,8 +479,7 @@ public class ChoiceAnswer /// Max length: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string ChoiceId { get; set; } [System.Runtime.Serialization.DataMember()] @@ -605,8 +589,7 @@ public class ConsolidatedReportMetric /// Pattern: [0-9a-f]{32} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(32)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(32, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9a-f]{32}")] public string WorkloadId { get; set; } @@ -616,8 +599,7 @@ public class ConsolidatedReportMetric /// Max length: 100 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(3, 100)] public string WorkloadName { get; set; } /// @@ -688,8 +670,7 @@ public class PillarMetric /// Max length: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string PillarId { get; set; } /// @@ -715,8 +696,7 @@ public class QuestionMetric /// Max length: 128 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string QuestionId { get; set; } /// @@ -742,8 +722,7 @@ public class BestPractice /// Max length: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string ChoiceId { get; set; } /// @@ -752,8 +731,7 @@ public class BestPractice /// Max length: 512 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] public string ChoiceTitle { get; set; } } @@ -784,8 +762,7 @@ public class Lens /// Max length: 128 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Name { get; set; } /// @@ -794,8 +771,7 @@ public class Lens /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string Description { get; set; } [System.Runtime.Serialization.DataMember()] @@ -827,8 +803,7 @@ public class GetLensReviewOutput /// Pattern: [0-9a-f]{32} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(32)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(32, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9a-f]{32}")] public string WorkloadId { get; set; } @@ -861,8 +836,7 @@ public class LensReview /// Max length: 128 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string LensAlias { get; set; } [System.Runtime.Serialization.DataMember()] @@ -877,8 +851,7 @@ public class LensReview /// Max length: 128 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string LensName { get; set; } [System.Runtime.Serialization.DataMember()] @@ -959,8 +932,7 @@ public class PillarReviewSummary /// Max length: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string PillarId { get; set; } /// @@ -969,8 +941,7 @@ public class PillarReviewSummary /// Max length: 128 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string PillarName { get; set; } /// @@ -1022,8 +993,7 @@ public class GetLensReviewReportOutput /// Pattern: [0-9a-f]{32} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(32)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(32, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9a-f]{32}")] public string WorkloadId { get; set; } @@ -1056,8 +1026,7 @@ public class LensReviewReport /// Max length: 128 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string LensAlias { get; set; } [System.Runtime.Serialization.DataMember()] @@ -1080,8 +1049,7 @@ public class GetLensVersionDifferenceOutput /// Max length: 128 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string LensAlias { get; set; } [System.Runtime.Serialization.DataMember()] @@ -1127,8 +1095,7 @@ public class PillarDifference /// Max length: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string PillarId { get; set; } /// @@ -1137,8 +1104,7 @@ public class PillarDifference /// Max length: 128 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string PillarName { get; set; } [System.Runtime.Serialization.DataMember()] @@ -1175,8 +1141,7 @@ public class QuestionDifference /// Max length: 128 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string QuestionId { get; set; } /// @@ -1185,8 +1150,7 @@ public class QuestionDifference /// Max length: 512 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] public string QuestionTitle { get; set; } [System.Runtime.Serialization.DataMember()] @@ -1207,8 +1171,7 @@ public class GetMilestoneOutput /// Pattern: [0-9a-f]{32} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(32)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(32, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9a-f]{32}")] public string WorkloadId { get; set; } @@ -1241,8 +1204,7 @@ public class Milestone /// Max length: 100 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(3, 100)] public string MilestoneName { get; set; } /// @@ -1272,8 +1234,7 @@ public class Workload /// Pattern: [0-9a-f]{32} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(32)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(32, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9a-f]{32}")] public string WorkloadId { get; set; } @@ -1289,8 +1250,7 @@ public class Workload /// Max length: 100 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(3, 100)] public string WorkloadName { get; set; } /// @@ -1299,8 +1259,7 @@ public class Workload /// Max length: 250 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(3, 250)] public string Description { get; set; } /// @@ -1355,8 +1314,7 @@ public class Workload /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(3, 255)] public string ReviewOwner { get; set; } /// @@ -1423,8 +1381,7 @@ public class Workload /// Pattern: [0-9]{12} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12}")] public string Owner { get; set; } @@ -1532,8 +1489,7 @@ public class Profile /// Pattern: [0-9]{12} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12}")] public string Owner { get; set; } @@ -1569,8 +1525,7 @@ public class ProfileQuestion /// Max length: 128 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string QuestionId { get; set; } /// @@ -1579,8 +1534,7 @@ public class ProfileQuestion /// Max length: 512 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] public string QuestionTitle { get; set; } /// @@ -1589,8 +1543,7 @@ public class ProfileQuestion /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string QuestionDescription { get; set; } [System.Runtime.Serialization.DataMember()] @@ -1619,8 +1572,7 @@ public class ProfileChoice /// Max length: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string ChoiceId { get; set; } /// @@ -1629,8 +1581,7 @@ public class ProfileChoice /// Max length: 512 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] public string ChoiceTitle { get; set; } /// @@ -1639,8 +1590,7 @@ public class ProfileChoice /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string ChoiceDescription { get; set; } } @@ -1691,8 +1641,7 @@ public class ProfileTemplateQuestion /// Max length: 128 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string QuestionId { get; set; } /// @@ -1701,8 +1650,7 @@ public class ProfileTemplateQuestion /// Max length: 512 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] public string QuestionTitle { get; set; } /// @@ -1711,8 +1659,7 @@ public class ProfileTemplateQuestion /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string QuestionDescription { get; set; } [System.Runtime.Serialization.DataMember()] @@ -1738,8 +1685,7 @@ public class ProfileTemplateChoice /// Max length: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string ChoiceId { get; set; } /// @@ -1748,8 +1694,7 @@ public class ProfileTemplateChoice /// Max length: 512 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] public string ChoiceTitle { get; set; } /// @@ -1758,8 +1703,7 @@ public class ProfileTemplateChoice /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string ChoiceDescription { get; set; } } @@ -1816,8 +1760,7 @@ public class ListAnswersOutput /// Pattern: [0-9a-f]{32} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(32)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(32, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9a-f]{32}")] public string WorkloadId { get; set; } @@ -1836,8 +1779,7 @@ public class ListAnswersOutput /// Max length: 128 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string LensAlias { get; set; } [System.Runtime.Serialization.DataMember()] @@ -1869,8 +1811,7 @@ public class AnswerSummary /// Max length: 128 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string QuestionId { get; set; } /// @@ -1879,8 +1820,7 @@ public class AnswerSummary /// Max length: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string PillarId { get; set; } /// @@ -1889,8 +1829,7 @@ public class AnswerSummary /// Max length: 512 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] public string QuestionTitle { get; set; } /// @@ -1940,8 +1879,7 @@ public class ChoiceAnswerSummary /// Max length: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string ChoiceId { get; set; } [System.Runtime.Serialization.DataMember()] @@ -2004,8 +1942,7 @@ public class CheckDetail /// Max length: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string PillarId { get; set; } /// @@ -2014,8 +1951,7 @@ public class CheckDetail /// Max length: 128 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string QuestionId { get; set; } /// @@ -2024,8 +1960,7 @@ public class CheckDetail /// Max length: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string ChoiceId { get; set; } [System.Runtime.Serialization.DataMember()] @@ -2038,8 +1973,7 @@ public class CheckDetail /// Pattern: [0-9]{12} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12}")] public string AccountId { get; set; } @@ -2149,8 +2083,7 @@ public class CheckSummary /// Max length: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string PillarId { get; set; } /// @@ -2159,8 +2092,7 @@ public class CheckSummary /// Max length: 128 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string QuestionId { get; set; } /// @@ -2169,8 +2101,7 @@ public class CheckSummary /// Max length: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string ChoiceId { get; set; } [System.Runtime.Serialization.DataMember()] @@ -2202,8 +2133,7 @@ public class ListLensReviewImprovementsOutput /// Pattern: [0-9a-f]{32} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(32)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(32, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9a-f]{32}")] public string WorkloadId { get; set; } @@ -2222,8 +2152,7 @@ public class ListLensReviewImprovementsOutput /// Max length: 128 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string LensAlias { get; set; } [System.Runtime.Serialization.DataMember()] @@ -2255,8 +2184,7 @@ public class ImprovementSummary /// Max length: 128 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string QuestionId { get; set; } /// @@ -2265,8 +2193,7 @@ public class ImprovementSummary /// Max length: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string PillarId { get; set; } /// @@ -2275,8 +2202,7 @@ public class ImprovementSummary /// Max length: 512 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] public string QuestionTitle { get; set; } /// @@ -2291,8 +2217,7 @@ public class ImprovementSummary /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string ImprovementPlanUrl { get; set; } [System.Runtime.Serialization.DataMember()] @@ -2312,8 +2237,7 @@ public class ChoiceImprovementPlan /// Max length: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string ChoiceId { get; set; } [System.Runtime.Serialization.DataMember()] @@ -2325,8 +2249,7 @@ public class ChoiceImprovementPlan /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string ImprovementPlanUrl { get; set; } } @@ -2344,8 +2267,7 @@ public class ListLensReviewsOutput /// Pattern: [0-9a-f]{32} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(32)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(32, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9a-f]{32}")] public string WorkloadId { get; set; } @@ -2384,8 +2306,7 @@ public class LensReviewSummary /// Max length: 128 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string LensAlias { get; set; } [System.Runtime.Serialization.DataMember()] @@ -2400,8 +2321,7 @@ public class LensReviewSummary /// Max length: 128 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string LensName { get; set; } [System.Runtime.Serialization.DataMember()] @@ -2464,8 +2384,7 @@ public class LensShareSummary /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(12, 2048)] public string SharedWith { get; set; } /// @@ -2543,8 +2462,7 @@ public class LensSummary /// Max length: 128 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string LensAlias { get; set; } /// @@ -2553,8 +2471,7 @@ public class LensSummary /// Max length: 128 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string LensName { get; set; } [System.Runtime.Serialization.DataMember()] @@ -2566,8 +2483,7 @@ public class LensSummary /// Max length: 1024 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string Description { get; set; } /// @@ -2592,8 +2508,7 @@ public class LensSummary /// Pattern: [0-9]{12} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12}")] public string Owner { get; set; } @@ -2629,8 +2544,7 @@ public class ListMilestonesOutput /// Pattern: [0-9a-f]{32} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(32)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(32, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9a-f]{32}")] public string WorkloadId { get; set; } @@ -2669,8 +2583,7 @@ public class MilestoneSummary /// Max length: 100 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(3, 100)] public string MilestoneName { get; set; } /// @@ -2700,8 +2613,7 @@ public class WorkloadSummary /// Pattern: [0-9a-f]{32} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(32)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(32, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9a-f]{32}")] public string WorkloadId { get; set; } @@ -2717,8 +2629,7 @@ public class WorkloadSummary /// Max length: 100 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(3, 100)] public string WorkloadName { get; set; } /// @@ -2728,8 +2639,7 @@ public class WorkloadSummary /// Pattern: [0-9]{12} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12}")] public string Owner { get; set; } @@ -2820,8 +2730,7 @@ public class LensUpgradeSummary /// Pattern: [0-9a-f]{32} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(32)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(32, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9a-f]{32}")] public string WorkloadId { get; set; } @@ -2831,8 +2740,7 @@ public class LensUpgradeSummary /// Max length: 100 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(3, 100)] public string WorkloadName { get; set; } /// @@ -2841,8 +2749,7 @@ public class LensUpgradeSummary /// Max length: 128 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string LensAlias { get; set; } [System.Runtime.Serialization.DataMember()] @@ -2898,8 +2805,7 @@ public class ProfileNotificationSummary /// Pattern: [0-9a-f]{32} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(32)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(32, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9a-f]{32}")] public string WorkloadId { get; set; } @@ -2909,8 +2815,7 @@ public class ProfileNotificationSummary /// Max length: 100 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(3, 100)] public string WorkloadName { get; set; } } @@ -2960,8 +2865,7 @@ public class ProfileShareSummary /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(12, 2048)] public string SharedWith { get; set; } /// @@ -3014,8 +2918,7 @@ public class ProfileSummary /// Pattern: [0-9]{12} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12}")] public string Owner { get; set; } @@ -3066,8 +2969,7 @@ public class ShareInvitationSummary /// Pattern: [0-9]{12} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12}")] public string SharedBy { get; set; } @@ -3077,8 +2979,7 @@ public class ShareInvitationSummary /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(12, 2048)] public string SharedWith { get; set; } /// @@ -3096,8 +2997,7 @@ public class ShareInvitationSummary /// Max length: 100 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(3, 100)] public string WorkloadName { get; set; } /// @@ -3107,8 +3007,7 @@ public class ShareInvitationSummary /// Pattern: [0-9a-f]{32} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(32)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(32, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9a-f]{32}")] public string WorkloadId { get; set; } @@ -3118,8 +3017,7 @@ public class ShareInvitationSummary /// Max length: 128 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string LensName { get; set; } [System.Runtime.Serialization.DataMember()] @@ -3179,8 +3077,7 @@ public class ListWorkloadSharesOutput /// Pattern: [0-9a-f]{32} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(32)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(32, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9a-f]{32}")] public string WorkloadId { get; set; } @@ -3218,8 +3115,7 @@ public class WorkloadShareSummary /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(12, 2048)] public string SharedWith { get; set; } /// @@ -3282,8 +3178,7 @@ public class UpdateAnswerOutput /// Pattern: [0-9a-f]{32} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(32)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(32, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9a-f]{32}")] public string WorkloadId { get; set; } @@ -3293,8 +3188,7 @@ public class UpdateAnswerOutput /// Max length: 128 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string LensAlias { get; set; } [System.Runtime.Serialization.DataMember()] @@ -3342,8 +3236,7 @@ public class UpdateLensReviewOutput /// Pattern: [0-9a-f]{32} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(32)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(32, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9a-f]{32}")] public string WorkloadId { get; set; } @@ -3390,8 +3283,7 @@ public class ShareInvitation /// Pattern: [0-9a-f]{32} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(32)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(32, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9a-f]{32}")] public string WorkloadId { get; set; } @@ -3401,8 +3293,7 @@ public class ShareInvitation /// Max length: 128 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string LensAlias { get; set; } [System.Runtime.Serialization.DataMember()] @@ -3440,8 +3331,7 @@ public class UpdateWorkloadShareOutput /// Pattern: [0-9a-f]{32} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(32)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(32, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9a-f]{32}")] public string WorkloadId { get; set; } @@ -3474,8 +3364,7 @@ public class WorkloadShare /// Pattern: [0-9]{12} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9]{12}")] public string SharedBy { get; set; } @@ -3485,8 +3374,7 @@ public class WorkloadShare /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(12, 2048)] public string SharedWith { get; set; } /// @@ -3507,8 +3395,7 @@ public class WorkloadShare /// Max length: 100 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(3, 100)] public string WorkloadName { get; set; } /// @@ -3518,8 +3405,7 @@ public class WorkloadShare /// Pattern: [0-9a-f]{32} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(32)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(32, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9a-f]{32}")] public string WorkloadId { get; set; } } @@ -3614,8 +3500,7 @@ public class CreateLensShareInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(12, 2048)] public string SharedWith { get; set; } /// @@ -3626,8 +3511,7 @@ public class CreateLensShareInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string ClientRequestToken { get; set; } } @@ -3653,8 +3537,7 @@ public class CreateLensVersionInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string ClientRequestToken { get; set; } } @@ -3673,8 +3556,7 @@ public class CreateMilestoneInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(3, 100)] public string MilestoneName { get; set; } /// @@ -3685,8 +3567,7 @@ public class CreateMilestoneInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string ClientRequestToken { get; set; } } @@ -3723,8 +3604,7 @@ public class CreateProfileInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string ClientRequestToken { get; set; } [System.Runtime.Serialization.DataMember()] @@ -3743,8 +3623,7 @@ public class CreateProfileShareInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(12, 2048)] public string SharedWith { get; set; } /// @@ -3755,8 +3634,7 @@ public class CreateProfileShareInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string ClientRequestToken { get; set; } } @@ -3775,8 +3653,7 @@ public class CreateWorkloadInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(3, 100)] public string WorkloadName { get; set; } /// @@ -3787,8 +3664,7 @@ public class CreateWorkloadInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(3, 250)] public string Description { get; set; } /// @@ -3845,8 +3721,7 @@ public class CreateWorkloadInput /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(3, 255)] public string ReviewOwner { get; set; } /// @@ -3889,8 +3764,7 @@ public class CreateWorkloadInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string ClientRequestToken { get; set; } [System.Runtime.Serialization.DataMember()] @@ -3935,8 +3809,7 @@ public class CreateWorkloadShareInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(12, 2048)] public string SharedWith { get; set; } /// @@ -3955,8 +3828,7 @@ public class CreateWorkloadShareInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string ClientRequestToken { get; set; } } @@ -4142,8 +4014,7 @@ public class ImportLensInput /// Max length: 128 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string LensAlias { get; set; } /// @@ -4161,8 +4032,7 @@ public class ImportLensInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string ClientRequestToken { get; set; } [System.Runtime.Serialization.DataMember()] @@ -4254,8 +4124,7 @@ public class ListCheckDetailsInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string PillarId { get; set; } /// @@ -4266,8 +4135,7 @@ public class ListCheckDetailsInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string QuestionId { get; set; } /// @@ -4278,8 +4146,7 @@ public class ListCheckDetailsInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string ChoiceId { get; set; } } @@ -4317,8 +4184,7 @@ public class ListCheckSummariesInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string PillarId { get; set; } /// @@ -4329,8 +4195,7 @@ public class ListCheckSummariesInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string QuestionId { get; set; } /// @@ -4341,8 +4206,7 @@ public class ListCheckSummariesInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string ChoiceId { get; set; } } @@ -4409,8 +4273,7 @@ public class ListNotificationsInput /// Pattern: [0-9a-f]{32} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(32)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(32, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9a-f]{32}")] public string WorkloadId { get; set; } @@ -4653,8 +4516,7 @@ public class UpdateWorkloadInput /// Max length: 100 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(3, 100)] public string WorkloadName { get; set; } /// @@ -4663,8 +4525,7 @@ public class UpdateWorkloadInput /// Max length: 250 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(3, 250)] public string Description { get; set; } /// @@ -4719,8 +4580,7 @@ public class UpdateWorkloadInput /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(3, 255)] public string ReviewOwner { get; set; } [System.Runtime.Serialization.DataMember()] @@ -4791,8 +4651,7 @@ public class UpgradeLensReviewInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(3, 100)] public string MilestoneName { get; set; } /// @@ -4801,8 +4660,7 @@ public class UpgradeLensReviewInput /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string ClientRequestToken { get; set; } } @@ -4816,8 +4674,7 @@ public class UpgradeProfileVersionInput /// Max length: 100 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(3, 100)] public string MilestoneName { get; set; } /// @@ -4826,8 +4683,7 @@ public class UpgradeProfileVersionInput /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string ClientRequestToken { get; set; } } @@ -6737,8 +6593,7 @@ public class CreateLensSharePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(12, 2048)] public string SharedWith { get; set; } /// @@ -6749,8 +6604,7 @@ public class CreateLensSharePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string ClientRequestToken { get; set; } } @@ -6765,8 +6619,7 @@ public class CreateLensVersionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] public string LensVersion { get; set; } /// @@ -6783,8 +6636,7 @@ public class CreateLensVersionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string ClientRequestToken { get; set; } } @@ -6799,8 +6651,7 @@ public class CreateMilestonePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(3, 100)] public string MilestoneName { get; set; } /// @@ -6811,8 +6662,7 @@ public class CreateMilestonePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string ClientRequestToken { get; set; } } @@ -6828,8 +6678,7 @@ public class CreateProfilePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(3, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Za-z0-9-_.,:/()@!&?#+'’\s]+$")] public string ProfileName { get; set; } @@ -6842,8 +6691,7 @@ public class CreateProfilePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(3, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Za-z0-9-_.,:/()@!&?#+'’\s]+$")] public string ProfileDescription { get; set; } @@ -6863,8 +6711,7 @@ public class CreateProfilePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string ClientRequestToken { get; set; } /// @@ -6885,8 +6732,7 @@ public class CreateProfileSharePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(12, 2048)] public string SharedWith { get; set; } /// @@ -6897,8 +6743,7 @@ public class CreateProfileSharePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string ClientRequestToken { get; set; } } @@ -6913,8 +6758,7 @@ public class CreateWorkloadPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(3, 100)] public string WorkloadName { get; set; } /// @@ -6925,8 +6769,7 @@ public class CreateWorkloadPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(3, 250)] public string Description { get; set; } /// @@ -6983,8 +6826,7 @@ public class CreateWorkloadPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(3, 255)] public string ReviewOwner { get; set; } /// @@ -7027,8 +6869,7 @@ public class CreateWorkloadPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string ClientRequestToken { get; set; } /// @@ -7081,8 +6922,7 @@ public class CreateWorkloadSharePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(12, 2048)] public string SharedWith { get; set; } /// @@ -7101,8 +6941,7 @@ public class CreateWorkloadSharePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string ClientRequestToken { get; set; } } @@ -7198,8 +7037,7 @@ public class UpdateProfilePatchBody /// Pattern: ^[A-Za-z0-9-_.,:/()@!&?#+'’\s]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(3, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Za-z0-9-_.,:/()@!&?#+'’\s]+$")] public string ProfileDescription { get; set; } @@ -7219,8 +7057,7 @@ public class UpdateWorkloadPatchBody /// Max length: 100 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(3, 100)] public string WorkloadName { get; set; } /// @@ -7229,8 +7066,7 @@ public class UpdateWorkloadPatchBody /// Max length: 250 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(3, 250)] public string Description { get; set; } /// @@ -7285,8 +7121,7 @@ public class UpdateWorkloadPatchBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(3, 255)] public string ReviewOwner { get; set; } /// @@ -7359,8 +7194,7 @@ public class ImportLensPutBody /// Max length: 128 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string LensAlias { get; set; } /// @@ -7371,8 +7205,7 @@ public class ImportLensPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(500000)] + [System.ComponentModel.DataAnnotations.Length(2, 500000)] public string JSONString { get; set; } /// @@ -7383,8 +7216,7 @@ public class ImportLensPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string ClientRequestToken { get; set; } /// @@ -7428,8 +7260,7 @@ public class ListCheckDetailsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string PillarId { get; set; } /// @@ -7440,8 +7271,7 @@ public class ListCheckDetailsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string QuestionId { get; set; } /// @@ -7452,8 +7282,7 @@ public class ListCheckDetailsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string ChoiceId { get; set; } } @@ -7491,8 +7320,7 @@ public class ListCheckSummariesPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string PillarId { get; set; } /// @@ -7503,8 +7331,7 @@ public class ListCheckSummariesPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string QuestionId { get; set; } /// @@ -7515,8 +7342,7 @@ public class ListCheckSummariesPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string ChoiceId { get; set; } } @@ -7549,8 +7375,7 @@ public class ListNotificationsPostBody /// Pattern: [0-9a-f]{32} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(32)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(32, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9a-f]{32}")] public string WorkloadId { get; set; } @@ -7660,8 +7485,7 @@ public class UpgradeLensReviewPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(3, 100)] public string MilestoneName { get; set; } /// @@ -7670,8 +7494,7 @@ public class UpgradeLensReviewPutBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string ClientRequestToken { get; set; } } @@ -7684,8 +7507,7 @@ public class UpgradeProfileVersionPutBody /// Max length: 100 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(3, 100)] public string MilestoneName { get; set; } /// @@ -7694,8 +7516,7 @@ public class UpgradeProfileVersionPutBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string ClientRequestToken { get; set; } } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_wisdom_2020_10_19_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_wisdom_2020_10_19_.cs index e2404954..486bb29c 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_wisdom_2020_10_19_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_wisdom_2020_10_19_.cs @@ -2809,8 +2809,7 @@ public class CreateAssistantPostBody /// Max length: 4096 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4096)] + [System.ComponentModel.DataAnnotations.Length(1, 4096)] public string ClientToken { get; set; } /// @@ -2820,8 +2819,7 @@ public class CreateAssistantPostBody /// Pattern: ^[a-zA-Z0-9\s_.,-]+ /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9\s_.,-]+")] public string Description { get; set; } @@ -2834,8 +2832,7 @@ public class CreateAssistantPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9\s_.,-]+")] public string Name { get; set; } @@ -2892,8 +2889,7 @@ public class CreateAssistantAssociationPostBody /// Max length: 4096 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4096)] + [System.ComponentModel.DataAnnotations.Length(1, 4096)] public string ClientToken { get; set; } /// @@ -2919,8 +2915,7 @@ public class CreateContentPostBody /// Max length: 4096 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4096)] + [System.ComponentModel.DataAnnotations.Length(1, 4096)] public string ClientToken { get; set; } /// @@ -2938,8 +2933,7 @@ public class CreateContentPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9\s_.,-]+")] public string Name { get; set; } @@ -2949,8 +2943,7 @@ public class CreateContentPostBody /// Max length: 4096 /// [System.Runtime.Serialization.DataMember(Name="overrideLinkOutUri")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4096)] + [System.ComponentModel.DataAnnotations.Length(1, 4096)] public string OverrideLinkOutUri { get; set; } /// @@ -2965,8 +2958,7 @@ public class CreateContentPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="title")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Title { get; set; } /// @@ -2977,8 +2969,7 @@ public class CreateContentPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="uploadId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1200)] + [System.ComponentModel.DataAnnotations.Length(1, 1200)] public string UploadId { get; set; } } @@ -2991,8 +2982,7 @@ public class CreateKnowledgeBasePostBody /// Max length: 4096 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4096)] + [System.ComponentModel.DataAnnotations.Length(1, 4096)] public string ClientToken { get; set; } /// @@ -3002,8 +2992,7 @@ public class CreateKnowledgeBasePostBody /// Pattern: ^[a-zA-Z0-9\s_.,-]+ /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9\s_.,-]+")] public string Description { get; set; } @@ -3024,8 +3013,7 @@ public class CreateKnowledgeBasePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9\s_.,-]+")] public string Name { get; set; } @@ -3084,8 +3072,7 @@ public class CreateSessionPostBody /// Max length: 4096 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4096)] + [System.ComponentModel.DataAnnotations.Length(1, 4096)] public string ClientToken { get; set; } /// @@ -3095,8 +3082,7 @@ public class CreateSessionPostBody /// Pattern: ^[a-zA-Z0-9\s_.,-]+ /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9\s_.,-]+")] public string Description { get; set; } @@ -3109,8 +3095,7 @@ public class CreateSessionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9\s_.,-]+")] public string Name { get; set; } @@ -3136,8 +3121,7 @@ public class UpdateContentPostBody /// Max length: 4096 /// [System.Runtime.Serialization.DataMember(Name="overrideLinkOutUri")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4096)] + [System.ComponentModel.DataAnnotations.Length(1, 4096)] public string OverrideLinkOutUri { get; set; } /// @@ -3152,8 +3136,7 @@ public class UpdateContentPostBody /// Max length: 4096 /// [System.Runtime.Serialization.DataMember(Name="revisionId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4096)] + [System.ComponentModel.DataAnnotations.Length(1, 4096)] public string RevisionId { get; set; } /// @@ -3162,8 +3145,7 @@ public class UpdateContentPostBody /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="title")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Title { get; set; } /// @@ -3172,8 +3154,7 @@ public class UpdateContentPostBody /// Max length: 1200 /// [System.Runtime.Serialization.DataMember(Name="uploadId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1200)] + [System.ComponentModel.DataAnnotations.Length(1, 1200)] public string UploadId { get; set; } } @@ -3219,8 +3200,7 @@ public class QueryAssistantPostBody /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="nextToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string NextToken { get; set; } /// @@ -3243,8 +3223,7 @@ public class UpdateKnowledgeBaseTemplateUriPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="templateUri")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4096)] + [System.ComponentModel.DataAnnotations.Length(1, 4096)] public string TemplateUri { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_workdocs_2016_05_01_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_workdocs_2016_05_01_.cs index 9a04da73..25827ead 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_workdocs_2016_05_01_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_workdocs_2016_05_01_.cs @@ -3819,8 +3819,7 @@ public class CreateCommentPostBody /// Pattern: [\w+-.@]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\w+-.@]+")] public string ParentId { get; set; } @@ -3831,8 +3830,7 @@ public class CreateCommentPostBody /// Pattern: [\w+-.@]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\w+-.@]+")] public string ThreadId { get; set; } @@ -3844,8 +3842,7 @@ public class CreateCommentPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string Text { get; set; } /// @@ -3883,8 +3880,7 @@ public class CreateFolderPostBody /// Pattern: [\u0020-\u202D\u202F-\uFFFF]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\u0020-\u202D\u202F-\uFFFF]+")] public string Name { get; set; } @@ -3897,8 +3893,7 @@ public class CreateFolderPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\w+-.@]+")] public string ParentFolderId { get; set; } } @@ -3928,8 +3923,7 @@ public class CreateNotificationSubscriptionPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Endpoint { get; set; } /// @@ -3959,8 +3953,7 @@ public class CreateUserPostBody /// Pattern: [&\w+-.@]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[&\w+-.@]+")] public string OrganizationId { get; set; } @@ -3973,8 +3966,7 @@ public class CreateUserPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\w\-+.]+(@[a-zA-Z0-9.\-]+\.[a-zA-Z]+)?")] public string Username { get; set; } @@ -3985,8 +3977,7 @@ public class CreateUserPostBody /// Pattern: [a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,} /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}")] public string EmailAddress { get; set; } @@ -3998,8 +3989,7 @@ public class CreateUserPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string GivenName { get; set; } /// @@ -4010,8 +4000,7 @@ public class CreateUserPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string Surname { get; set; } /// @@ -4023,8 +4012,7 @@ public class CreateUserPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(4)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(4, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\u0020-\u00FF]+")] public string Password { get; set; } @@ -4034,8 +4022,7 @@ public class CreateUserPostBody /// Max length: 256 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string TimeZoneId { get; set; } /// @@ -4065,8 +4052,7 @@ public class UpdateDocumentPatchBody /// Pattern: [\u0020-\u202D\u202F-\uFFFF]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\u0020-\u202D\u202F-\uFFFF]+")] public string Name { get; set; } @@ -4077,8 +4063,7 @@ public class UpdateDocumentPatchBody /// Pattern: [\w+-.@]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\w+-.@]+")] public string ParentFolderId { get; set; } @@ -4099,8 +4084,7 @@ public class UpdateFolderPatchBody /// Pattern: [\u0020-\u202D\u202F-\uFFFF]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\u0020-\u202D\u202F-\uFFFF]+")] public string Name { get; set; } @@ -4111,8 +4095,7 @@ public class UpdateFolderPatchBody /// Pattern: [\w+-.@]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\w+-.@]+")] public string ParentFolderId { get; set; } @@ -4132,8 +4115,7 @@ public class UpdateUserPatchBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string GivenName { get; set; } /// @@ -4142,8 +4124,7 @@ public class UpdateUserPatchBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string Surname { get; set; } /// @@ -4164,8 +4145,7 @@ public class UpdateUserPatchBody /// Max length: 256 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string TimeZoneId { get; set; } /// @@ -4239,8 +4219,7 @@ public class InitiateDocumentVersionUploadPostBody /// Pattern: [\w+-.@]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\w+-.@]+")] public string Id { get; set; } @@ -4251,8 +4230,7 @@ public class InitiateDocumentVersionUploadPostBody /// Pattern: [\u0020-\u202D\u202F-\uFFFF]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\u0020-\u202D\u202F-\uFFFF]+")] public string Name { get; set; } @@ -4274,8 +4252,7 @@ public class InitiateDocumentVersionUploadPostBody /// Max length: 128 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string ContentType { get; set; } /// @@ -4291,8 +4268,7 @@ public class InitiateDocumentVersionUploadPostBody /// Pattern: [\w+-.@]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\w+-.@]+")] public string ParentFolderId { get; set; } } @@ -4307,8 +4283,7 @@ public class SearchResourcesPostBody /// Pattern: [\u0020-\uFFFF]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\u0020-\uFFFF]+")] public string QueryText { get; set; } @@ -4327,8 +4302,7 @@ public class SearchResourcesPostBody /// Pattern: [&\w+-.@]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[&\w+-.@]+")] public string OrganizationId { get; set; } @@ -4368,8 +4342,7 @@ public class SearchResourcesPostBody /// Pattern: [\d]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\d]+")] public string Marker { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_worklink_2018_09_25_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_worklink_2018_09_25_.cs index 7dad5fb4..bacbdb02 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_worklink_2018_09_25_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_worklink_2018_09_25_.cs @@ -2134,8 +2134,7 @@ public class AssociateDomainPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string FleetArn { get; set; } /// @@ -2147,8 +2146,7 @@ public class AssociateDomainPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(253)] + [System.ComponentModel.DataAnnotations.Length(1, 253)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9]?((?!-)([A-Za-z0-9-]*[A-Za-z0-9])\.)+[a-zA-Z0-9]+$")] public string DomainName { get; set; } @@ -2182,8 +2180,7 @@ public class AssociateWebsiteAuthorizationProviderPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string FleetArn { get; set; } /// @@ -2201,8 +2198,7 @@ public class AssociateWebsiteAuthorizationProviderPostBody /// Pattern: ^[a-zA-Z0-9]?((?!-)([A-Za-z0-9-]*[A-Za-z0-9])\.)+[a-zA-Z0-9]+$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(253)] + [System.ComponentModel.DataAnnotations.Length(1, 253)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9]?((?!-)([A-Za-z0-9-]*[A-Za-z0-9])\.)+[a-zA-Z0-9]+$")] public string DomainName { get; set; } } @@ -2218,8 +2214,7 @@ public class AssociateWebsiteCertificateAuthorityPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string FleetArn { get; set; } /// @@ -2231,8 +2226,7 @@ public class AssociateWebsiteCertificateAuthorityPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(8192)] + [System.ComponentModel.DataAnnotations.Length(1, 8192)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"-{5}BEGIN CERTIFICATE-{5}\u000D?\u000A([A-Za-z0-9/+]{64}\u000D?\u000A)*[A-Za-z0-9/+]{1,64}={0,2}\u000D?\u000A-{5}END CERTIFICATE-{5}(\u000D?\u000A)?")] public string Certificate { get; set; } @@ -2257,8 +2251,7 @@ public class CreateFleetPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(48)] + [System.ComponentModel.DataAnnotations.Length(1, 48)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-z0-9](?:[a-z0-9\-]{0,46}[a-z0-9])?$")] public string FleetName { get; set; } @@ -2294,8 +2287,7 @@ public class DeleteFleetPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string FleetArn { get; set; } } @@ -2310,8 +2302,7 @@ public class DescribeAuditStreamConfigurationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string FleetArn { get; set; } } @@ -2326,8 +2317,7 @@ public class DescribeCompanyNetworkConfigurationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string FleetArn { get; set; } } @@ -2342,8 +2332,7 @@ public class DescribeDevicePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string FleetArn { get; set; } /// @@ -2354,8 +2343,7 @@ public class DescribeDevicePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string DeviceId { get; set; } } @@ -2370,8 +2358,7 @@ public class DescribeDevicePolicyConfigurationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string FleetArn { get; set; } } @@ -2386,8 +2373,7 @@ public class DescribeDomainPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string FleetArn { get; set; } /// @@ -2399,8 +2385,7 @@ public class DescribeDomainPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(253)] + [System.ComponentModel.DataAnnotations.Length(1, 253)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9]?((?!-)([A-Za-z0-9-]*[A-Za-z0-9])\.)+[a-zA-Z0-9]+$")] public string DomainName { get; set; } } @@ -2416,8 +2401,7 @@ public class DescribeFleetMetadataPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string FleetArn { get; set; } } @@ -2432,8 +2416,7 @@ public class DescribeIdentityProviderConfigurationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string FleetArn { get; set; } } @@ -2448,8 +2431,7 @@ public class DescribeWebsiteCertificateAuthorityPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string FleetArn { get; set; } /// @@ -2460,8 +2442,7 @@ public class DescribeWebsiteCertificateAuthorityPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string WebsiteCaId { get; set; } } @@ -2476,8 +2457,7 @@ public class DisassociateDomainPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string FleetArn { get; set; } /// @@ -2489,8 +2469,7 @@ public class DisassociateDomainPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(253)] + [System.ComponentModel.DataAnnotations.Length(1, 253)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9]?((?!-)([A-Za-z0-9-]*[A-Za-z0-9])\.)+[a-zA-Z0-9]+$")] public string DomainName { get; set; } } @@ -2506,8 +2485,7 @@ public class DisassociateWebsiteAuthorizationProviderPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string FleetArn { get; set; } /// @@ -2518,8 +2496,7 @@ public class DisassociateWebsiteAuthorizationProviderPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string AuthorizationProviderId { get; set; } } @@ -2534,8 +2511,7 @@ public class DisassociateWebsiteCertificateAuthorityPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string FleetArn { get; set; } /// @@ -2546,8 +2522,7 @@ public class DisassociateWebsiteCertificateAuthorityPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string WebsiteCaId { get; set; } } @@ -2562,8 +2537,7 @@ public class ListDevicesPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string FleetArn { get; set; } /// @@ -2573,8 +2547,7 @@ public class ListDevicesPostBody /// Pattern: [\w\-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4096)] + [System.ComponentModel.DataAnnotations.Length(1, 4096)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\w\-]+")] public string NextToken { get; set; } @@ -2598,8 +2571,7 @@ public class ListDomainsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string FleetArn { get; set; } /// @@ -2609,8 +2581,7 @@ public class ListDomainsPostBody /// Pattern: [\w\-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4096)] + [System.ComponentModel.DataAnnotations.Length(1, 4096)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\w\-]+")] public string NextToken { get; set; } @@ -2633,8 +2604,7 @@ public class ListFleetsPostBody /// Pattern: [\w\-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4096)] + [System.ComponentModel.DataAnnotations.Length(1, 4096)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\w\-]+")] public string NextToken { get; set; } @@ -2670,8 +2640,7 @@ public class ListWebsiteAuthorizationProvidersPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string FleetArn { get; set; } /// @@ -2681,8 +2650,7 @@ public class ListWebsiteAuthorizationProvidersPostBody /// Pattern: [\w\-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4096)] + [System.ComponentModel.DataAnnotations.Length(1, 4096)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\w\-]+")] public string NextToken { get; set; } @@ -2706,8 +2674,7 @@ public class ListWebsiteCertificateAuthoritiesPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string FleetArn { get; set; } /// @@ -2725,8 +2692,7 @@ public class ListWebsiteCertificateAuthoritiesPostBody /// Pattern: [\w\-]+ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4096)] + [System.ComponentModel.DataAnnotations.Length(1, 4096)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\w\-]+")] public string NextToken { get; set; } } @@ -2742,8 +2708,7 @@ public class RestoreDomainAccessPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string FleetArn { get; set; } /// @@ -2755,8 +2720,7 @@ public class RestoreDomainAccessPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(253)] + [System.ComponentModel.DataAnnotations.Length(1, 253)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9]?((?!-)([A-Za-z0-9-]*[A-Za-z0-9])\.)+[a-zA-Z0-9]+$")] public string DomainName { get; set; } } @@ -2772,8 +2736,7 @@ public class RevokeDomainAccessPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string FleetArn { get; set; } /// @@ -2785,8 +2748,7 @@ public class RevokeDomainAccessPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(253)] + [System.ComponentModel.DataAnnotations.Length(1, 253)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9]?((?!-)([A-Za-z0-9-]*[A-Za-z0-9])\.)+[a-zA-Z0-9]+$")] public string DomainName { get; set; } } @@ -2802,8 +2764,7 @@ public class SignOutUserPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string FleetArn { get; set; } /// @@ -2814,8 +2775,7 @@ public class SignOutUserPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Username { get; set; } } @@ -2830,8 +2790,7 @@ public class UpdateAuditStreamConfigurationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string FleetArn { get; set; } /// @@ -2854,8 +2813,7 @@ public class UpdateCompanyNetworkConfigurationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string FleetArn { get; set; } /// @@ -2898,8 +2856,7 @@ public class UpdateDevicePolicyConfigurationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string FleetArn { get; set; } /// @@ -2909,8 +2866,7 @@ public class UpdateDevicePolicyConfigurationPostBody /// Pattern: (-{5}BEGIN CERTIFICATE-{5}\u000D?\u000A([A-Za-z0-9/+]{64}\u000D?\u000A)*[A-Za-z0-9/+]{1,64}={0,2}\u000D?\u000A-{5}END CERTIFICATE-{5}\u000D?\u000A)*-{5}BEGIN CERTIFICATE-{5}\u000D?\u000A([A-Za-z0-9/+]{64}\u000D?\u000A)*[A-Za-z0-9/+]{1,64}={0,2}\u000D?\u000A-{5}END CERTIFICATE-{5}(\u000D?\u000A)? /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32768)] + [System.ComponentModel.DataAnnotations.Length(1, 32768)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"(-{5}BEGIN CERTIFICATE-{5}\u000D?\u000A([A-Za-z0-9/+]{64}\u000D?\u000A)*[A-Za-z0-9/+]{1,64}={0,2}\u000D?\u000A-{5}END CERTIFICATE-{5}\u000D?\u000A)*-{5}BEGIN CERTIFICATE-{5}\u000D?\u000A([A-Za-z0-9/+]{64}\u000D?\u000A)*[A-Za-z0-9/+]{1,64}={0,2}\u000D?\u000A-{5}END CERTIFICATE-{5}(\u000D?\u000A)?")] public string DeviceCaCertificate { get; set; } } @@ -2926,8 +2882,7 @@ public class UpdateDomainMetadataPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string FleetArn { get; set; } /// @@ -2939,8 +2894,7 @@ public class UpdateDomainMetadataPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(253)] + [System.ComponentModel.DataAnnotations.Length(1, 253)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9]?((?!-)([A-Za-z0-9-]*[A-Za-z0-9])\.)+[a-zA-Z0-9]+$")] public string DomainName { get; set; } @@ -2964,8 +2918,7 @@ public class UpdateFleetMetadataPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string FleetArn { get; set; } /// @@ -2994,8 +2947,7 @@ public class UpdateIdentityProviderConfigurationPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] public string FleetArn { get; set; } /// @@ -3012,8 +2964,7 @@ public class UpdateIdentityProviderConfigurationPostBody /// Max length: 204800 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(204800)] + [System.ComponentModel.DataAnnotations.Length(1, 204800)] public string IdentityProviderSamlMetadata { get; set; } } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_workspaces_web_2020_07_08_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_workspaces_web_2020_07_08_.cs index 1e027b3d..edf68cee 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_workspaces_web_2020_07_08_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_workspaces_web_2020_07_08_.cs @@ -3674,8 +3674,7 @@ public class CreateBrowserSettingsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="browserPolicy")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(131072)] + [System.ComponentModel.DataAnnotations.Length(2, 131072)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\{[\S\s]*\}\s*")] public string BrowserPolicy { get; set; } @@ -3685,8 +3684,7 @@ public class CreateBrowserSettingsPostBody /// Max length: 512 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] public string ClientToken { get; set; } /// @@ -3696,8 +3694,7 @@ public class CreateBrowserSettingsPostBody /// Pattern: ^arn:[\w+=\/,.@-]+:kms:[a-zA-Z0-9\-]*:[a-zA-Z0-9]{1,12}:key\/[a-zA-Z0-9-]+$ /// [System.Runtime.Serialization.DataMember(Name="customerManagedKey")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:[\w+=\/,.@-]+:kms:[a-zA-Z0-9\-]*:[a-zA-Z0-9]{1,12}:key\/[a-zA-Z0-9-]+$")] public string CustomerManagedKey { get; set; } @@ -3707,8 +3704,7 @@ public class CreateBrowserSettingsPostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } } @@ -3721,8 +3717,7 @@ public class CreateIdentityProviderPostBody /// Max length: 512 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] public string ClientToken { get; set; } /// @@ -3742,8 +3737,7 @@ public class CreateIdentityProviderPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="identityProviderName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[^_][\p{L}\p{M}\p{S}\p{N}\p{P}][^_]+$")] public string IdentityProviderName { get; set; } @@ -3764,8 +3758,7 @@ public class CreateIdentityProviderPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="portalArn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:[\w+=\/,.@-]+:[a-zA-Z0-9\-]+:[a-zA-Z0-9\-]*:[a-zA-Z0-9]{1,12}:[a-zA-Z]+(\/[a-fA-F0-9\-]{36})+$")] public string PortalArn { get; set; } } @@ -3785,8 +3778,7 @@ public class CreateIpAccessSettingsPostBody /// Max length: 512 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] public string ClientToken { get; set; } /// @@ -3796,8 +3788,7 @@ public class CreateIpAccessSettingsPostBody /// Pattern: ^arn:[\w+=\/,.@-]+:kms:[a-zA-Z0-9\-]*:[a-zA-Z0-9]{1,12}:key\/[a-zA-Z0-9-]+$ /// [System.Runtime.Serialization.DataMember(Name="customerManagedKey")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:[\w+=\/,.@-]+:kms:[a-zA-Z0-9\-]*:[a-zA-Z0-9]{1,12}:key\/[a-zA-Z0-9-]+$")] public string CustomerManagedKey { get; set; } @@ -3808,8 +3799,7 @@ public class CreateIpAccessSettingsPostBody /// Pattern: ^.+$ /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^.+$")] public string Description { get; set; } @@ -3820,8 +3810,7 @@ public class CreateIpAccessSettingsPostBody /// Pattern: ^.+$ /// [System.Runtime.Serialization.DataMember(Name="displayName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^.+$")] public string DisplayName { get; set; } @@ -3833,8 +3822,7 @@ public class CreateIpAccessSettingsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="ipRules")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public IpRule[] IpRules { get; set; } /// @@ -3843,8 +3831,7 @@ public class CreateIpAccessSettingsPostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } } @@ -3857,8 +3844,7 @@ public class CreateNetworkSettingsPostBody /// Max length: 512 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] public string ClientToken { get; set; } /// @@ -3869,8 +3855,7 @@ public class CreateNetworkSettingsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="securityGroupIds")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(1, 5)] public string[] SecurityGroupIds { get; set; } /// @@ -3881,8 +3866,7 @@ public class CreateNetworkSettingsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="subnetIds")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(2, 3)] public string[] SubnetIds { get; set; } /// @@ -3891,8 +3875,7 @@ public class CreateNetworkSettingsPostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } /// @@ -3904,8 +3887,7 @@ public class CreateNetworkSettingsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="vpcId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^vpc-[0-9a-z]*$")] public string VpcId { get; set; } } @@ -3931,8 +3913,7 @@ public class CreatePortalPostBody /// Max length: 512 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] public string ClientToken { get; set; } /// @@ -3942,8 +3923,7 @@ public class CreatePortalPostBody /// Pattern: ^arn:[\w+=\/,.@-]+:kms:[a-zA-Z0-9\-]*:[a-zA-Z0-9]{1,12}:key\/[a-zA-Z0-9-]+$ /// [System.Runtime.Serialization.DataMember(Name="customerManagedKey")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^arn:[\w+=\/,.@-]+:kms:[a-zA-Z0-9\-]*:[a-zA-Z0-9]{1,12}:key\/[a-zA-Z0-9-]+$")] public string CustomerManagedKey { get; set; } @@ -3954,8 +3934,7 @@ public class CreatePortalPostBody /// Pattern: ^.+$ /// [System.Runtime.Serialization.DataMember(Name="displayName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^.+$")] public string DisplayName { get; set; } @@ -3965,8 +3944,7 @@ public class CreatePortalPostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } } @@ -3987,8 +3965,7 @@ public class CreateTrustStorePostBody /// Max length: 512 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] public string ClientToken { get; set; } /// @@ -3997,8 +3974,7 @@ public class CreateTrustStorePostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } } @@ -4011,8 +3987,7 @@ public class CreateUserAccessLoggingSettingsPostBody /// Max length: 512 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] public string ClientToken { get; set; } /// @@ -4024,8 +3999,7 @@ public class CreateUserAccessLoggingSettingsPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="kinesisStreamArn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[\w+=/,.@-]+:kinesis:[a-zA-Z0-9\-]*:[a-zA-Z0-9]{1,12}:stream/.+")] public string KinesisStreamArn { get; set; } @@ -4035,8 +4009,7 @@ public class CreateUserAccessLoggingSettingsPostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } } @@ -4049,8 +4022,7 @@ public class CreateUserSettingsPostBody /// Max length: 512 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] public string ClientToken { get; set; } /// @@ -4109,8 +4081,7 @@ public class CreateUserSettingsPostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } /// @@ -4132,8 +4103,7 @@ public class UpdateBrowserSettingsPatchBody /// Pattern: \{[\S\s]*\}\s* /// [System.Runtime.Serialization.DataMember(Name="browserPolicy")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(131072)] + [System.ComponentModel.DataAnnotations.Length(2, 131072)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\{[\S\s]*\}\s*")] public string BrowserPolicy { get; set; } @@ -4143,8 +4113,7 @@ public class UpdateBrowserSettingsPatchBody /// Max length: 512 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] public string ClientToken { get; set; } } @@ -4157,8 +4126,7 @@ public class UpdateIdentityProviderPatchBody /// Max length: 512 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] public string ClientToken { get; set; } /// @@ -4174,8 +4142,7 @@ public class UpdateIdentityProviderPatchBody /// Pattern: ^[^_][\p{L}\p{M}\p{S}\p{N}\p{P}][^_]+$ /// [System.Runtime.Serialization.DataMember(Name="identityProviderName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[^_][\p{L}\p{M}\p{S}\p{N}\p{P}][^_]+$")] public string IdentityProviderName { get; set; } @@ -4195,8 +4162,7 @@ public class UpdateIpAccessSettingsPatchBody /// Max length: 512 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] public string ClientToken { get; set; } /// @@ -4206,8 +4172,7 @@ public class UpdateIpAccessSettingsPatchBody /// Pattern: ^.+$ /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^.+$")] public string Description { get; set; } @@ -4218,8 +4183,7 @@ public class UpdateIpAccessSettingsPatchBody /// Pattern: ^.+$ /// [System.Runtime.Serialization.DataMember(Name="displayName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^.+$")] public string DisplayName { get; set; } @@ -4229,8 +4193,7 @@ public class UpdateIpAccessSettingsPatchBody /// Maximum items: 100 /// [System.Runtime.Serialization.DataMember(Name="ipRules")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public IpRule[] IpRules { get; set; } } @@ -4243,8 +4206,7 @@ public class UpdateNetworkSettingsPatchBody /// Max length: 512 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] public string ClientToken { get; set; } /// @@ -4253,8 +4215,7 @@ public class UpdateNetworkSettingsPatchBody /// Maximum items: 5 /// [System.Runtime.Serialization.DataMember(Name="securityGroupIds")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(1, 5)] public string[] SecurityGroupIds { get; set; } /// @@ -4263,8 +4224,7 @@ public class UpdateNetworkSettingsPatchBody /// Maximum items: 3 /// [System.Runtime.Serialization.DataMember(Name="subnetIds")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(2, 3)] public string[] SubnetIds { get; set; } /// @@ -4274,8 +4234,7 @@ public class UpdateNetworkSettingsPatchBody /// Pattern: ^vpc-[0-9a-z]*$ /// [System.Runtime.Serialization.DataMember(Name="vpcId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^vpc-[0-9a-z]*$")] public string VpcId { get; set; } } @@ -4296,8 +4255,7 @@ public class UpdatePortalPutBody /// Pattern: ^.+$ /// [System.Runtime.Serialization.DataMember(Name="displayName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^.+$")] public string DisplayName { get; set; } } @@ -4323,8 +4281,7 @@ public class UpdateTrustStorePatchBody /// Max length: 512 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] public string ClientToken { get; set; } } @@ -4337,8 +4294,7 @@ public class UpdateUserAccessLoggingSettingsPatchBody /// Max length: 512 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] public string ClientToken { get; set; } /// @@ -4348,8 +4304,7 @@ public class UpdateUserAccessLoggingSettingsPatchBody /// Pattern: arn:[\w+=/,.@-]+:kinesis:[a-zA-Z0-9\-]*:[a-zA-Z0-9]{1,12}:stream/.+ /// [System.Runtime.Serialization.DataMember(Name="kinesisStreamArn")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(20, 2048)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"arn:[\w+=/,.@-]+:kinesis:[a-zA-Z0-9\-]*:[a-zA-Z0-9]{1,12}:stream/.+")] public string KinesisStreamArn { get; set; } } @@ -4363,8 +4318,7 @@ public class UpdateUserSettingsPatchBody /// Max length: 512 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] public string ClientToken { get; set; } /// @@ -4425,8 +4379,7 @@ public class TagResourcePostBody /// Max length: 512 /// [System.Runtime.Serialization.DataMember(Name="clientToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] public string ClientToken { get; set; } /// @@ -4437,8 +4390,7 @@ public class TagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } } } diff --git a/Tests/CsOpenApi3TestsResults/amazonaws_com_xray_2016_04_12_.cs b/Tests/CsOpenApi3TestsResults/amazonaws_com_xray_2016_04_12_.cs index db6022ee..fd9c1b55 100644 --- a/Tests/CsOpenApi3TestsResults/amazonaws_com_xray_2016_04_12_.cs +++ b/Tests/CsOpenApi3TestsResults/amazonaws_com_xray_2016_04_12_.cs @@ -3166,8 +3166,7 @@ public class CreateGroupPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] public string GroupName { get; set; } /// @@ -3188,8 +3187,7 @@ public class CreateGroupPostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } } @@ -3220,8 +3218,7 @@ public class CreateSamplingRulePostBody /// Maximum items: 200 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } } @@ -3277,8 +3274,7 @@ public class DeleteGroupPostBody /// Max length: 32 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] public string GroupName { get; set; } /// @@ -3287,8 +3283,7 @@ public class DeleteGroupPostBody /// Max length: 400 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(400)] + [System.ComponentModel.DataAnnotations.Length(1, 400)] public string GroupARN { get; set; } } @@ -3304,8 +3299,7 @@ public class DeleteResourcePolicyPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\w+=,.@-]+")] public string PolicyName { get; set; } @@ -3341,8 +3335,7 @@ public class GetGroupPostBody /// Max length: 32 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] public string GroupName { get; set; } /// @@ -3351,8 +3344,7 @@ public class GetGroupPostBody /// Max length: 400 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(400)] + [System.ComponentModel.DataAnnotations.Length(1, 400)] public string GroupARN { get; set; } } @@ -3365,8 +3357,7 @@ public class GetGroupsPostBody /// Max length: 100 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string NextToken { get; set; } } @@ -3412,8 +3403,7 @@ public class GetInsightEventsPostBody /// Max length: 2000 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2000)] + [System.ComponentModel.DataAnnotations.Length(1, 2000)] public string NextToken { get; set; } } @@ -3452,8 +3442,7 @@ public class GetInsightImpactGraphPostBody /// Max length: 2000 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2000)] + [System.ComponentModel.DataAnnotations.Length(1, 2000)] public string NextToken { get; set; } } @@ -3466,8 +3455,7 @@ public class GetInsightSummariesPostBody /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(0, 1)] public InsightState[] States { get; set; } /// @@ -3476,8 +3464,7 @@ public class GetInsightSummariesPostBody /// Max length: 400 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(400)] + [System.ComponentModel.DataAnnotations.Length(1, 400)] public string GroupARN { get; set; } /// @@ -3486,8 +3473,7 @@ public class GetInsightSummariesPostBody /// Max length: 32 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] public string GroupName { get; set; } /// @@ -3521,8 +3507,7 @@ public class GetInsightSummariesPostBody /// Max length: 2000 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2000)] + [System.ComponentModel.DataAnnotations.Length(1, 2000)] public string NextToken { get; set; } } @@ -3585,8 +3570,7 @@ public class GetServiceGraphPostBody /// Max length: 32 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] public string GroupName { get; set; } /// @@ -3595,8 +3579,7 @@ public class GetServiceGraphPostBody /// Max length: 400 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(400)] + [System.ComponentModel.DataAnnotations.Length(1, 400)] public string GroupARN { get; set; } /// @@ -3631,8 +3614,7 @@ public class GetTimeSeriesServiceStatisticsPostBody /// Max length: 32 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] public string GroupName { get; set; } /// @@ -3641,8 +3623,7 @@ public class GetTimeSeriesServiceStatisticsPostBody /// Max length: 400 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(400)] + [System.ComponentModel.DataAnnotations.Length(1, 400)] public string GroupARN { get; set; } /// @@ -3651,8 +3632,7 @@ public class GetTimeSeriesServiceStatisticsPostBody /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(1, 500)] public string EntitySelectorExpression { get; set; } /// @@ -3761,8 +3741,7 @@ public class ListResourcePoliciesPostBody /// Max length: 100 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string NextToken { get; set; } } @@ -3777,8 +3756,7 @@ public class ListTagsForResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] public string ResourceARN { get; set; } /// @@ -3797,8 +3775,7 @@ public class PutEncryptionConfigPostBody /// Max length: 3000 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(3000)] + [System.ComponentModel.DataAnnotations.Length(1, 3000)] public string KeyId { get; set; } /// @@ -3822,8 +3799,7 @@ public class PutResourcePolicyPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[\w+=,.@-]+")] public string PolicyName { get; set; } @@ -3907,8 +3883,7 @@ public class TagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] public string ResourceARN { get; set; } /// @@ -3919,8 +3894,7 @@ public class TagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public Tag[] Tags { get; set; } } @@ -3935,8 +3909,7 @@ public class UntagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1011)] + [System.ComponentModel.DataAnnotations.Length(1, 1011)] public string ResourceARN { get; set; } /// @@ -3947,8 +3920,7 @@ public class UntagResourcePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public string[] TagKeys { get; set; } } @@ -3961,8 +3933,7 @@ public class UpdateGroupPostBody /// Max length: 32 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] public string GroupName { get; set; } /// @@ -3971,8 +3942,7 @@ public class UpdateGroupPostBody /// Max length: 400 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(400)] + [System.ComponentModel.DataAnnotations.Length(1, 400)] public string GroupARN { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/apideck_com_hris_10_0_0_.cs b/Tests/CsOpenApi3TestsResults/apideck_com_hris_10_0_0_.cs index b4cf9535..cfb162e1 100644 --- a/Tests/CsOpenApi3TestsResults/apideck_com_hris_10_0_0_.cs +++ b/Tests/CsOpenApi3TestsResults/apideck_com_hris_10_0_0_.cs @@ -2147,8 +2147,7 @@ public class Employee /// Max length: 2 /// [System.Runtime.Serialization.DataMember(Name="country_of_birth")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] public string Country_of_birth { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/apideck_com_pos_10_0_0_.cs b/Tests/CsOpenApi3TestsResults/apideck_com_pos_10_0_0_.cs index c22c9b39..d829b723 100644 --- a/Tests/CsOpenApi3TestsResults/apideck_com_pos_10_0_0_.cs +++ b/Tests/CsOpenApi3TestsResults/apideck_com_pos_10_0_0_.cs @@ -4931,8 +4931,7 @@ public class PosBankAccount /// Max length: 2 /// [System.Runtime.Serialization.DataMember(Name="country")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] public string Country { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/apple_com_sirikit_cloud_media_1_0_2_.cs b/Tests/CsOpenApi3TestsResults/apple_com_sirikit_cloud_media_1_0_2_.cs index 93f86fd4..039cf1d0 100644 --- a/Tests/CsOpenApi3TestsResults/apple_com_sirikit_cloud_media_1_0_2_.cs +++ b/Tests/CsOpenApi3TestsResults/apple_com_sirikit_cloud_media_1_0_2_.cs @@ -800,8 +800,7 @@ public class Content /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="identifier")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] public string Identifier { get; set; } [System.Runtime.Serialization.DataMember(Name="isLive")] @@ -958,8 +957,7 @@ public class ExtensionConfig /// Max length: 2000 /// [System.Runtime.Serialization.DataMember(Name="url")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2000)] + [System.ComponentModel.DataAnnotations.Length(1, 2000)] public string Url { get; set; } /// @@ -1045,8 +1043,7 @@ public class ExtensionConfigMediaQueuesPlayMedia /// [System.ComponentModel.DefaultValue("/queues/playMedia")] [System.Runtime.Serialization.DataMember(Name="url")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4000)] + [System.ComponentModel.DataAnnotations.Length(1, 4000)] public string Url { get; set; } = "/queues/playMedia"; } @@ -1062,8 +1059,7 @@ public class ExtensionConfigMediaQueuesUpdateActivity /// [System.ComponentModel.DefaultValue("/queues/updateActivity")] [System.Runtime.Serialization.DataMember(Name="url")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4000)] + [System.ComponentModel.DataAnnotations.Length(1, 4000)] public string Url { get; set; } = "/queues/updateActivity"; } @@ -1079,8 +1075,7 @@ public class ExtensionEndpointConfig /// Max length: 2000 /// [System.Runtime.Serialization.DataMember(Name="url")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2000)] + [System.ComponentModel.DataAnnotations.Length(0, 2000)] public string Url { get; set; } } @@ -1232,8 +1227,7 @@ public class Session /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="identifier")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Identifier { get; set; } [System.Runtime.Serialization.DataMember(Name="playerContext")] @@ -1272,8 +1266,7 @@ public class PlayerContext /// Max length: 1000 /// [System.Runtime.Serialization.DataMember(Name="contentIdentifier")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] public string ContentIdentifier { get; set; } [System.Runtime.Serialization.DataMember(Name="offsetInMillis")] @@ -1287,8 +1280,7 @@ public class PlayerContext /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="queueIdentifier")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string QueueIdentifier { get; set; } } @@ -1417,8 +1409,7 @@ public class MediaDestinationPlaylist /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="playlistName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] public string PlaylistName { get; set; } } @@ -2351,8 +2342,7 @@ public class Queue /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="identifier")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string Identifier { get; set; } [System.Runtime.Serialization.DataMember(Name="insertPointer")] @@ -2363,8 +2353,7 @@ public class Queue /// Max length: 2000 /// [System.Runtime.Serialization.DataMember(Name="nextContentUrl")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2000)] + [System.ComponentModel.DataAnnotations.Length(1, 2000)] public string NextContentUrl { get; set; } [System.Runtime.Serialization.DataMember(Name="playPointer")] @@ -2378,8 +2367,7 @@ public class Queue /// Max length: 2000 /// [System.Runtime.Serialization.DataMember(Name="previousContentUrl")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2000)] + [System.ComponentModel.DataAnnotations.Length(1, 2000)] public string PreviousContentUrl { get; set; } [System.Runtime.Serialization.DataMember(Name="skipsRemaining")] @@ -2418,8 +2406,7 @@ public class QueuePlayPointer /// Max length: 1000 /// [System.Runtime.Serialization.DataMember(Name="contentIdentifier")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] public string ContentIdentifier { get; set; } [System.Runtime.Serialization.DataMember(Name="offsetInMillis")] @@ -2485,8 +2472,7 @@ public class QueueInsertPointer /// Max length: 1000 /// [System.Runtime.Serialization.DataMember(Name="afterIdentifier")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] public string AfterIdentifier { get; set; } [System.Runtime.Serialization.DataMember(Name="replace")] diff --git a/Tests/CsOpenApi3TestsResults/bbc_com_1_0_0_.cs b/Tests/CsOpenApi3TestsResults/bbc_com_1_0_0_.cs index 314626a1..8006b3ca 100644 --- a/Tests/CsOpenApi3TestsResults/bbc_com_1_0_0_.cs +++ b/Tests/CsOpenApi3TestsResults/bbc_com_1_0_0_.cs @@ -2276,8 +2276,7 @@ public class Chapter /// Max length: 32 /// [System.Runtime.Serialization.DataMember(Name="catalogue_number")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] public string Catalogue_number { get; set; } [System.Runtime.Serialization.DataMember(Name="contributions_mixin")] @@ -2303,8 +2302,7 @@ public class Chapter /// Max length: 8 /// [System.Runtime.Serialization.DataMember(Name="music_code")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(8)] + [System.ComponentModel.DataAnnotations.Length(1, 8)] public string Music_code { get; set; } [System.Runtime.Serialization.DataMember(Name="offsets")] @@ -2336,8 +2334,7 @@ public class Chapter /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="publisher")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Publisher { get; set; } /// @@ -2345,8 +2342,7 @@ public class Chapter /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="record_label")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Record_label { get; set; } /// @@ -2354,8 +2350,7 @@ public class Chapter /// Max length: 10 /// [System.Runtime.Serialization.DataMember(Name="recording_date")] - [System.ComponentModel.DataAnnotations.MinLength(4)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(4, 10)] public string Recording_date { get; set; } /// @@ -2363,8 +2358,7 @@ public class Chapter /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="release_title")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Release_title { get; set; } [System.Runtime.Serialization.DataMember(Name="snippet_url")] @@ -2375,8 +2369,7 @@ public class Chapter /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="source_media")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string Source_media { get; set; } [System.Runtime.Serialization.DataMember(Name="synopses")] @@ -2390,8 +2383,7 @@ public class Chapter /// Max length: 8 /// [System.Runtime.Serialization.DataMember(Name="track_number")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(8)] + [System.ComponentModel.DataAnnotations.Length(1, 8)] public string Track_number { get; set; } /// @@ -2399,8 +2391,7 @@ public class Chapter /// Max length: 8 /// [System.Runtime.Serialization.DataMember(Name="track_side")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(8)] + [System.ComponentModel.DataAnnotations.Length(1, 8)] public string Track_side { get; set; } [System.Runtime.Serialization.DataMember(Name="type")] @@ -4386,8 +4377,7 @@ public class Highlight /// Max length: 32 /// [System.Runtime.Serialization.DataMember(Name="catalogue_number")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] public string Catalogue_number { get; set; } [System.Runtime.Serialization.DataMember(Name="contributions_mixin")] @@ -4413,8 +4403,7 @@ public class Highlight /// Max length: 8 /// [System.Runtime.Serialization.DataMember(Name="music_code")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(8)] + [System.ComponentModel.DataAnnotations.Length(1, 8)] public string Music_code { get; set; } [System.Runtime.Serialization.DataMember(Name="offsets")] @@ -4446,8 +4435,7 @@ public class Highlight /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="publisher")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Publisher { get; set; } /// @@ -4455,8 +4443,7 @@ public class Highlight /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="record_label")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Record_label { get; set; } /// @@ -4464,8 +4451,7 @@ public class Highlight /// Max length: 10 /// [System.Runtime.Serialization.DataMember(Name="recording_date")] - [System.ComponentModel.DataAnnotations.MinLength(4)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(4, 10)] public string Recording_date { get; set; } /// @@ -4473,8 +4459,7 @@ public class Highlight /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="release_title")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Release_title { get; set; } [System.Runtime.Serialization.DataMember(Name="snippet_url")] @@ -4485,8 +4470,7 @@ public class Highlight /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="source_media")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string Source_media { get; set; } [System.Runtime.Serialization.DataMember(Name="synopses")] @@ -4500,8 +4484,7 @@ public class Highlight /// Max length: 8 /// [System.Runtime.Serialization.DataMember(Name="track_number")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(8)] + [System.ComponentModel.DataAnnotations.Length(1, 8)] public string Track_number { get; set; } /// @@ -4509,8 +4492,7 @@ public class Highlight /// Max length: 8 /// [System.Runtime.Serialization.DataMember(Name="track_side")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(8)] + [System.ComponentModel.DataAnnotations.Length(1, 8)] public string Track_side { get; set; } [System.Runtime.Serialization.DataMember(Name="type")] @@ -4622,8 +4604,7 @@ public class Item /// Max length: 32 /// [System.Runtime.Serialization.DataMember(Name="catalogue_number")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] public string Catalogue_number { get; set; } [System.Runtime.Serialization.DataMember(Name="contributions_mixin")] @@ -4649,8 +4630,7 @@ public class Item /// Max length: 8 /// [System.Runtime.Serialization.DataMember(Name="music_code")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(8)] + [System.ComponentModel.DataAnnotations.Length(1, 8)] public string Music_code { get; set; } [System.Runtime.Serialization.DataMember(Name="offsets")] @@ -4682,8 +4662,7 @@ public class Item /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="publisher")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Publisher { get; set; } /// @@ -4691,8 +4670,7 @@ public class Item /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="record_label")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Record_label { get; set; } /// @@ -4700,8 +4678,7 @@ public class Item /// Max length: 10 /// [System.Runtime.Serialization.DataMember(Name="recording_date")] - [System.ComponentModel.DataAnnotations.MinLength(4)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(4, 10)] public string Recording_date { get; set; } /// @@ -4709,8 +4686,7 @@ public class Item /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="release_title")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Release_title { get; set; } [System.Runtime.Serialization.DataMember(Name="snippet_url")] @@ -4721,8 +4697,7 @@ public class Item /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="source_media")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string Source_media { get; set; } [System.Runtime.Serialization.DataMember(Name="synopses")] @@ -4736,8 +4711,7 @@ public class Item /// Max length: 8 /// [System.Runtime.Serialization.DataMember(Name="track_number")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(8)] + [System.ComponentModel.DataAnnotations.Length(1, 8)] public string Track_number { get; set; } /// @@ -4745,8 +4719,7 @@ public class Item /// Max length: 8 /// [System.Runtime.Serialization.DataMember(Name="track_side")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(8)] + [System.ComponentModel.DataAnnotations.Length(1, 8)] public string Track_side { get; set; } [System.Runtime.Serialization.DataMember(Name="type")] @@ -4909,8 +4882,7 @@ public class Music /// Max length: 32 /// [System.Runtime.Serialization.DataMember(Name="catalogue_number")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] public string Catalogue_number { get; set; } [System.Runtime.Serialization.DataMember(Name="contributions_mixin")] @@ -4936,8 +4908,7 @@ public class Music /// Max length: 8 /// [System.Runtime.Serialization.DataMember(Name="music_code")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(8)] + [System.ComponentModel.DataAnnotations.Length(1, 8)] public string Music_code { get; set; } [System.Runtime.Serialization.DataMember(Name="offsets")] @@ -4969,8 +4940,7 @@ public class Music /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="publisher")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Publisher { get; set; } /// @@ -4978,8 +4948,7 @@ public class Music /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="record_label")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Record_label { get; set; } /// @@ -4987,8 +4956,7 @@ public class Music /// Max length: 10 /// [System.Runtime.Serialization.DataMember(Name="recording_date")] - [System.ComponentModel.DataAnnotations.MinLength(4)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(4, 10)] public string Recording_date { get; set; } /// @@ -4996,8 +4964,7 @@ public class Music /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="release_title")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Release_title { get; set; } [System.Runtime.Serialization.DataMember(Name="snippet_url")] @@ -5008,8 +4975,7 @@ public class Music /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="source_media")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string Source_media { get; set; } [System.Runtime.Serialization.DataMember(Name="synopses")] @@ -5023,8 +4989,7 @@ public class Music /// Max length: 8 /// [System.Runtime.Serialization.DataMember(Name="track_number")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(8)] + [System.ComponentModel.DataAnnotations.Length(1, 8)] public string Track_number { get; set; } /// @@ -5032,8 +4997,7 @@ public class Music /// Max length: 8 /// [System.Runtime.Serialization.DataMember(Name="track_side")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(8)] + [System.ComponentModel.DataAnnotations.Length(1, 8)] public string Track_side { get; set; } [System.Runtime.Serialization.DataMember(Name="type")] @@ -5817,8 +5781,7 @@ public class Other /// Max length: 32 /// [System.Runtime.Serialization.DataMember(Name="catalogue_number")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] public string Catalogue_number { get; set; } [System.Runtime.Serialization.DataMember(Name="contributions_mixin")] @@ -5844,8 +5807,7 @@ public class Other /// Max length: 8 /// [System.Runtime.Serialization.DataMember(Name="music_code")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(8)] + [System.ComponentModel.DataAnnotations.Length(1, 8)] public string Music_code { get; set; } [System.Runtime.Serialization.DataMember(Name="offsets")] @@ -5877,8 +5839,7 @@ public class Other /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="publisher")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Publisher { get; set; } /// @@ -5886,8 +5847,7 @@ public class Other /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="record_label")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Record_label { get; set; } /// @@ -5895,8 +5855,7 @@ public class Other /// Max length: 10 /// [System.Runtime.Serialization.DataMember(Name="recording_date")] - [System.ComponentModel.DataAnnotations.MinLength(4)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(4, 10)] public string Recording_date { get; set; } /// @@ -5904,8 +5863,7 @@ public class Other /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="release_title")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Release_title { get; set; } [System.Runtime.Serialization.DataMember(Name="snippet_url")] @@ -5916,8 +5874,7 @@ public class Other /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="source_media")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string Source_media { get; set; } [System.Runtime.Serialization.DataMember(Name="synopses")] @@ -5931,8 +5888,7 @@ public class Other /// Max length: 8 /// [System.Runtime.Serialization.DataMember(Name="track_number")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(8)] + [System.ComponentModel.DataAnnotations.Length(1, 8)] public string Track_number { get; set; } /// @@ -5940,8 +5896,7 @@ public class Other /// Max length: 8 /// [System.Runtime.Serialization.DataMember(Name="track_side")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(8)] + [System.ComponentModel.DataAnnotations.Length(1, 8)] public string Track_side { get; set; } [System.Runtime.Serialization.DataMember(Name="type")] @@ -6154,8 +6109,7 @@ public class Speech /// Max length: 32 /// [System.Runtime.Serialization.DataMember(Name="catalogue_number")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] public string Catalogue_number { get; set; } [System.Runtime.Serialization.DataMember(Name="contributions_mixin")] @@ -6181,8 +6135,7 @@ public class Speech /// Max length: 8 /// [System.Runtime.Serialization.DataMember(Name="music_code")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(8)] + [System.ComponentModel.DataAnnotations.Length(1, 8)] public string Music_code { get; set; } [System.Runtime.Serialization.DataMember(Name="offsets")] @@ -6214,8 +6167,7 @@ public class Speech /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="publisher")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Publisher { get; set; } /// @@ -6223,8 +6175,7 @@ public class Speech /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="record_label")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Record_label { get; set; } /// @@ -6232,8 +6183,7 @@ public class Speech /// Max length: 10 /// [System.Runtime.Serialization.DataMember(Name="recording_date")] - [System.ComponentModel.DataAnnotations.MinLength(4)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(4, 10)] public string Recording_date { get; set; } /// @@ -6241,8 +6191,7 @@ public class Speech /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="release_title")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Release_title { get; set; } [System.Runtime.Serialization.DataMember(Name="snippet_url")] @@ -6253,8 +6202,7 @@ public class Speech /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="source_media")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string Source_media { get; set; } [System.Runtime.Serialization.DataMember(Name="synopses")] @@ -6268,8 +6216,7 @@ public class Speech /// Max length: 8 /// [System.Runtime.Serialization.DataMember(Name="track_number")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(8)] + [System.ComponentModel.DataAnnotations.Length(1, 8)] public string Track_number { get; set; } /// @@ -6277,8 +6224,7 @@ public class Speech /// Max length: 8 /// [System.Runtime.Serialization.DataMember(Name="track_side")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(8)] + [System.ComponentModel.DataAnnotations.Length(1, 8)] public string Track_side { get; set; } [System.Runtime.Serialization.DataMember(Name="type")] diff --git a/Tests/CsOpenApi3TestsResults/configcat_com_v1_.cs b/Tests/CsOpenApi3TestsResults/configcat_com_v1_.cs index 1e92241b..cb04a629 100644 --- a/Tests/CsOpenApi3TestsResults/configcat_com_v1_.cs +++ b/Tests/CsOpenApi3TestsResults/configcat_com_v1_.cs @@ -65,8 +65,7 @@ public class AddOrUpdateJiraIntegrationLinkModel /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientKey")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string ClientKey { get; set; } /// @@ -74,8 +73,7 @@ public class AddOrUpdateJiraIntegrationLinkModel /// Max length: 1000 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] public string Description { get; set; } /// @@ -85,8 +83,7 @@ public class AddOrUpdateJiraIntegrationLinkModel /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="jiraJwtToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(15000)] + [System.ComponentModel.DataAnnotations.Length(0, 15000)] public string JiraJwtToken { get; set; } /// @@ -94,8 +91,7 @@ public class AddOrUpdateJiraIntegrationLinkModel /// Max length: 1000 /// [System.Runtime.Serialization.DataMember(Name="url")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] public string Url { get; set; } } @@ -631,8 +627,7 @@ public class CodeReferenceRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="branch")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Branch { get; set; } /// @@ -641,8 +636,7 @@ public class CodeReferenceRequest /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="commitHash")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string CommitHash { get; set; } /// @@ -651,8 +645,7 @@ public class CodeReferenceRequest /// Max length: 1000 /// [System.Runtime.Serialization.DataMember(Name="commitUrl")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] public string CommitUrl { get; set; } /// @@ -677,8 +670,7 @@ public class CodeReferenceRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="repository")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Repository { get; set; } /// @@ -687,8 +679,7 @@ public class CodeReferenceRequest /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="uploader")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Uploader { get; set; } } @@ -727,8 +718,7 @@ public class ReferenceLines /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="file")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string File { get; set; } /// @@ -737,8 +727,7 @@ public class ReferenceLines /// Max length: 1000 /// [System.Runtime.Serialization.DataMember(Name="fileUrl")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] public string FileUrl { get; set; } /// @@ -780,8 +769,7 @@ public class ReferenceLine /// Max length: 1000 /// [System.Runtime.Serialization.DataMember(Name="lineText")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] public string LineText { get; set; } } @@ -1073,8 +1061,7 @@ public class RolloutRuleModel /// Max length: 1000 /// [System.Runtime.Serialization.DataMember(Name="comparisonAttribute")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] public string ComparisonAttribute { get; set; } /// @@ -1083,8 +1070,7 @@ public class RolloutRuleModel /// Max length: 65535 /// [System.Runtime.Serialization.DataMember(Name="comparisonValue")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(65535)] + [System.ComponentModel.DataAnnotations.Length(0, 65535)] public string ComparisonValue { get; set; } [System.Runtime.Serialization.DataMember(Name="segmentComparator")] @@ -1307,8 +1293,7 @@ public class ConnectRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientKey")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string ClientKey { get; set; } /// @@ -1318,8 +1303,7 @@ public class ConnectRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="jiraJwtToken")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(15000)] + [System.ComponentModel.DataAnnotations.Length(0, 15000)] public string JiraJwtToken { get; set; } } @@ -1333,8 +1317,7 @@ public class CreateConfigRequest /// Max length: 1000 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] public string Description { get; set; } /// @@ -1344,8 +1327,7 @@ public class CreateConfigRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Name { get; set; } } @@ -1359,8 +1341,7 @@ public class CreateEnvironmentModel /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="color")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Color { get; set; } /// @@ -1368,8 +1349,7 @@ public class CreateEnvironmentModel /// Max length: 1000 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] public string Description { get; set; } /// @@ -1379,8 +1359,7 @@ public class CreateEnvironmentModel /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Name { get; set; } } @@ -1505,8 +1484,7 @@ public class CreatePermissionGroupRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Name { get; set; } [System.Runtime.Serialization.DataMember(Name="newEnvironmentAccessType")] @@ -1523,8 +1501,7 @@ public class CreateProductRequest /// Max length: 1000 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] public string Description { get; set; } /// @@ -1534,8 +1511,7 @@ public class CreateProductRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] public string Name { get; set; } } @@ -1558,8 +1534,7 @@ public class CreateSegmentModel /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="comparisonAttribute")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] public string ComparisonAttribute { get; set; } /// @@ -1569,8 +1544,7 @@ public class CreateSegmentModel /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="comparisonValue")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(65535)] + [System.ComponentModel.DataAnnotations.Length(0, 65535)] public string ComparisonValue { get; set; } /// @@ -1578,8 +1552,7 @@ public class CreateSegmentModel /// Max length: 1000 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] public string Description { get; set; } /// @@ -1589,8 +1562,7 @@ public class CreateSegmentModel /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Name { get; set; } } @@ -1605,8 +1577,7 @@ public class CreateSettingInitialValues /// Max length: 1000 /// [System.Runtime.Serialization.DataMember(Name="hint")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] public string Hint { get; set; } /// @@ -1624,8 +1595,7 @@ public class CreateSettingInitialValues /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="key")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z]+[a-zA-Z0-9_]*")] public string Key { get; set; } @@ -1637,8 +1607,7 @@ public class CreateSettingInitialValues /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Name { get; set; } /// @@ -1702,8 +1671,7 @@ public class CreateTagModel /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="color")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Color { get; set; } /// @@ -1713,8 +1681,7 @@ public class CreateTagModel /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Name { get; set; } } @@ -1738,8 +1705,7 @@ public class DeleteRepositoryReportsRequest /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="branch")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Branch { get; set; } /// @@ -1758,8 +1724,7 @@ public class DeleteRepositoryReportsRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="repository")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Repository { get; set; } /// @@ -3855,8 +3820,7 @@ public class UpdateConfigRequest /// Max length: 1000 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] public string Description { get; set; } /// @@ -3864,8 +3828,7 @@ public class UpdateConfigRequest /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Name { get; set; } } @@ -3879,8 +3842,7 @@ public class UpdateEnvironmentModel /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="color")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Color { get; set; } /// @@ -3888,8 +3850,7 @@ public class UpdateEnvironmentModel /// Max length: 1000 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] public string Description { get; set; } /// @@ -3897,8 +3858,7 @@ public class UpdateEnvironmentModel /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Name { get; set; } } @@ -3978,8 +3938,7 @@ public class UpdatePermissionGroupRequest /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Name { get; set; } [System.Runtime.Serialization.DataMember(Name="newEnvironmentAccessType")] @@ -3996,8 +3955,7 @@ public class UpdateProductRequest /// Max length: 1000 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] public string Description { get; set; } /// @@ -4005,8 +3963,7 @@ public class UpdateProductRequest /// Max length: 1000 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] public string Name { get; set; } } @@ -4023,8 +3980,7 @@ public class UpdateSegmentModel /// Max length: 1000 /// [System.Runtime.Serialization.DataMember(Name="comparisonAttribute")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] public string ComparisonAttribute { get; set; } /// @@ -4032,8 +3988,7 @@ public class UpdateSegmentModel /// Max length: 65535 /// [System.Runtime.Serialization.DataMember(Name="comparisonValue")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(65535)] + [System.ComponentModel.DataAnnotations.Length(0, 65535)] public string ComparisonValue { get; set; } /// @@ -4041,8 +3996,7 @@ public class UpdateSegmentModel /// Max length: 1000 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] public string Description { get; set; } /// @@ -4050,8 +4004,7 @@ public class UpdateSegmentModel /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Name { get; set; } } @@ -4131,8 +4084,7 @@ public class UpdateTagModel /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="color")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Color { get; set; } /// @@ -4140,8 +4092,7 @@ public class UpdateTagModel /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Name { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/credas_co_uk_pi_v1_.cs b/Tests/CsOpenApi3TestsResults/credas_co_uk_pi_v1_.cs index c4c4660e..f6b3877f 100644 --- a/Tests/CsOpenApi3TestsResults/credas_co_uk_pi_v1_.cs +++ b/Tests/CsOpenApi3TestsResults/credas_co_uk_pi_v1_.cs @@ -1567,8 +1567,7 @@ public class CredasApiModelsRegistrationsAddInstantRegistrationRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="forename")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string Forename { get; set; } /// @@ -1576,8 +1575,7 @@ public class CredasApiModelsRegistrationsAddInstantRegistrationRequest /// Max length: 50 /// [System.Runtime.Serialization.DataMember(Name="middleName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string MiddleName { get; set; } [System.Runtime.Serialization.DataMember(Name="parameters")] @@ -1588,8 +1586,7 @@ public class CredasApiModelsRegistrationsAddInstantRegistrationRequest /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="referenceId")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string ReferenceId { get; set; } /// @@ -1612,8 +1609,7 @@ public class CredasApiModelsRegistrationsAddInstantRegistrationRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="surname")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string Surname { get; set; } } @@ -1926,8 +1922,7 @@ public class CredasApiModelsRegistrationsAddRegistrationRequest /// Max length: 10 /// [System.Runtime.Serialization.DataMember(Name="diallingCode")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public string DiallingCode { get; set; } [System.Runtime.Serialization.DataMember(Name="duplicateAcknowledgement")] @@ -1938,8 +1933,7 @@ public class CredasApiModelsRegistrationsAddRegistrationRequest /// Max length: 250 /// [System.Runtime.Serialization.DataMember(Name="emailAddress")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(0, 250)] public string EmailAddress { get; set; } /// @@ -1949,8 +1943,7 @@ public class CredasApiModelsRegistrationsAddRegistrationRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="forename")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string Forename { get; set; } /// @@ -1958,8 +1951,7 @@ public class CredasApiModelsRegistrationsAddRegistrationRequest /// Max length: 50 /// [System.Runtime.Serialization.DataMember(Name="middleName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string MiddleName { get; set; } [System.Runtime.Serialization.DataMember(Name="parameters")] @@ -1970,8 +1962,7 @@ public class CredasApiModelsRegistrationsAddRegistrationRequest /// Max length: 20 /// [System.Runtime.Serialization.DataMember(Name="phoneNumber")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(1, 20)] public string PhoneNumber { get; set; } [System.Runtime.Serialization.DataMember(Name="provideWebJourneyLink")] @@ -1982,8 +1973,7 @@ public class CredasApiModelsRegistrationsAddRegistrationRequest /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="referenceId")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string ReferenceId { get; set; } /// @@ -2019,8 +2009,7 @@ public class CredasApiModelsRegistrationsAddRegistrationRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="surname")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string Surname { get; set; } } @@ -2655,8 +2644,7 @@ public class CredasApiModelsRegistrationsRegistrationSummary /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="referenceId")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string ReferenceId { get; set; } /// @@ -3381,8 +3369,7 @@ public class CredasApiModelsRegistrationsUpdateContactDetailsRequest /// Max length: 10 /// [System.Runtime.Serialization.DataMember(Name="diallingCode")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public string DiallingCode { get; set; } /// @@ -3390,8 +3377,7 @@ public class CredasApiModelsRegistrationsUpdateContactDetailsRequest /// Max length: 250 /// [System.Runtime.Serialization.DataMember(Name="email")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(0, 250)] public string Email { get; set; } /// @@ -3401,8 +3387,7 @@ public class CredasApiModelsRegistrationsUpdateContactDetailsRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="forename")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string Forename { get; set; } /// @@ -3410,8 +3395,7 @@ public class CredasApiModelsRegistrationsUpdateContactDetailsRequest /// Max length: 50 /// [System.Runtime.Serialization.DataMember(Name="middleName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string MiddleName { get; set; } /// @@ -3419,8 +3403,7 @@ public class CredasApiModelsRegistrationsUpdateContactDetailsRequest /// Max length: 20 /// [System.Runtime.Serialization.DataMember(Name="phoneNumber")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(1, 20)] public string PhoneNumber { get; set; } /// @@ -3430,8 +3413,7 @@ public class CredasApiModelsRegistrationsUpdateContactDetailsRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="surname")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string Surname { get; set; } } @@ -3502,8 +3484,7 @@ public class CredasApiModelsReportViewGetReportViewByReferenceIdRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="referenceId")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string ReferenceId { get; set; } /// @@ -3511,8 +3492,7 @@ public class CredasApiModelsReportViewGetReportViewByReferenceIdRequest /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="user")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public string User { get; set; } } @@ -3538,8 +3518,7 @@ public class CredasApiModelsReportViewGetReportViewByRegistrationIdRequest /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="user")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public string User { get; set; } } @@ -3682,8 +3661,7 @@ public class CredasApiModelsWebVerificationsGetWebVerificationsByReferenceIdRequ /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="referenceId")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string ReferenceId { get; set; } [System.Runtime.Serialization.DataMember(Name="returnUrls")] diff --git a/Tests/CsOpenApi3TestsResults/doqs_dev_1_0_.cs b/Tests/CsOpenApi3TestsResults/doqs_dev_1_0_.cs index 42c3beca..e8aebdea 100644 --- a/Tests/CsOpenApi3TestsResults/doqs_dev_1_0_.cs +++ b/Tests/CsOpenApi3TestsResults/doqs_dev_1_0_.cs @@ -317,8 +317,7 @@ public class DateField /// [System.ComponentModel.DefaultValue("en_US")] [System.Runtime.Serialization.DataMember(Name="locale")] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(5, 5)] public string Locale { get; set; } = "en_US"; /// @@ -710,8 +709,7 @@ public class ResponseOk_HttpUrl_ /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="results")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2083)] + [System.ComponentModel.DataAnnotations.Length(1, 2083)] public string Results { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/e_conomic_com_v20_0_0_.cs b/Tests/CsOpenApi3TestsResults/e_conomic_com_v20_0_0_.cs index 856543b1..1307e9ef 100644 --- a/Tests/CsOpenApi3TestsResults/e_conomic_com_v20_0_0_.cs +++ b/Tests/CsOpenApi3TestsResults/e_conomic_com_v20_0_0_.cs @@ -68,8 +68,7 @@ public class Activity /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string Name { get; set; } /// @@ -194,8 +193,7 @@ public class ActivityGroup /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string Name { get; set; } /// @@ -358,8 +356,7 @@ public class CostType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string Name { get; set; } /// @@ -440,8 +437,7 @@ public class CostTypeGroup /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string Name { get; set; } /// @@ -521,8 +517,7 @@ public class Employee /// Max length: 50 /// [System.Runtime.Serialization.DataMember(Name="email")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public string Email { get; set; } /// @@ -541,8 +536,7 @@ public class Employee /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string Name { get; set; } /// @@ -568,8 +562,7 @@ public class Employee /// Max length: 20 /// [System.Runtime.Serialization.DataMember(Name="phone")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(0, 20)] public string Phone { get; set; } } @@ -605,8 +598,7 @@ public class EmployeeGroup /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string Name { get; set; } /// @@ -922,8 +914,7 @@ public class Project /// Max length: 2500 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2500)] + [System.ComponentModel.DataAnnotations.Length(0, 2500)] public string Description { get; set; } /// @@ -988,8 +979,7 @@ public class Project /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string Name { get; set; } /// @@ -1149,8 +1139,7 @@ public class ProjectCustomer /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Name { get; set; } /// @@ -1201,8 +1190,7 @@ public class ProjectEmployee /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="address")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string Address { get; set; } /// @@ -1227,8 +1215,7 @@ public class ProjectEmployee /// Max length: 50 /// [System.Runtime.Serialization.DataMember(Name="city")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public string City { get; set; } /// @@ -1289,8 +1276,7 @@ public class ProjectEmployee /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string Name { get; set; } /// @@ -1334,8 +1320,7 @@ public class ProjectEmployee /// Max length: 50 /// [System.Runtime.Serialization.DataMember(Name="zipCode")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public string ZipCode { get; set; } } @@ -1371,8 +1356,7 @@ public class ProjectEmployeeGroup /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string Name { get; set; } /// @@ -1485,8 +1469,7 @@ public class ProjectGroup /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string Name { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/etsi_local_MEC010_2_AppPkgMgmt_2_1_1_.cs b/Tests/CsOpenApi3TestsResults/etsi_local_MEC010_2_AppPkgMgmt_2_1_1_.cs index 32c79eb6..40a5d543 100644 --- a/Tests/CsOpenApi3TestsResults/etsi_local_MEC010_2_AppPkgMgmt_2_1_1_.cs +++ b/Tests/CsOpenApi3TestsResults/etsi_local_MEC010_2_AppPkgMgmt_2_1_1_.cs @@ -517,8 +517,7 @@ public class TrafficRuleDescriptor /// Maximum items: 2 /// [System.Runtime.Serialization.DataMember(Name="dstInterface")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(0, 2)] public InterfaceDescriptor[] DstInterface { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/figshare_com_2_0_0_.cs b/Tests/CsOpenApi3TestsResults/figshare_com_2_0_0_.cs index 9605e4bb..ed26a34b 100644 --- a/Tests/CsOpenApi3TestsResults/figshare_com_2_0_0_.cs +++ b/Tests/CsOpenApi3TestsResults/figshare_com_2_0_0_.cs @@ -163,8 +163,7 @@ public class AccountCreate /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="email")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(150)] + [System.ComponentModel.DataAnnotations.Length(3, 150)] public string Email { get; set; } /// @@ -899,8 +898,7 @@ public class ArticleCreate /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="title")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(3, 1000)] public string Title { get; set; } } @@ -1227,8 +1225,7 @@ public class ArticleProjectCreate /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="title")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(3, 1000)] public string Title { get; set; } } @@ -1437,8 +1434,7 @@ public class ArticleUpdate /// Max length: 1000 /// [System.Runtime.Serialization.DataMember(Name="title")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(3, 1000)] public string Title { get; set; } } @@ -2274,8 +2270,7 @@ public class CollectionCreate /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="title")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(3, 1000)] public string Title { get; set; } } @@ -2512,8 +2507,7 @@ public class CollectionUpdate /// Max length: 1000 /// [System.Runtime.Serialization.DataMember(Name="title")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(3, 1000)] public string Title { get; set; } } @@ -2836,8 +2830,7 @@ public class CurationCommentCreate /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="text")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2000)] + [System.ComponentModel.DataAnnotations.Length(1, 2000)] public string Text { get; set; } } @@ -3998,8 +3991,7 @@ public class ProjectCreate /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="title")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(3, 1000)] public string Title { get; set; } } @@ -4172,8 +4164,7 @@ public class ProjectUpdate /// Max length: 1000 /// [System.Runtime.Serialization.DataMember(Name="title")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(3, 1000)] public string Title { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/fire_com_1_0_.cs b/Tests/CsOpenApi3TestsResults/fire_com_1_0_.cs index 27b5e3a6..ad161048 100644 --- a/Tests/CsOpenApi3TestsResults/fire_com_1_0_.cs +++ b/Tests/CsOpenApi3TestsResults/fire_com_1_0_.cs @@ -5334,8 +5334,7 @@ public class NewPaymentRequestReturn /// Max length: 8 /// [System.Runtime.Serialization.DataMember(Name="code")] - [System.ComponentModel.DataAnnotations.MinLength(8)] - [System.ComponentModel.DataAnnotations.MaxLength(8)] + [System.ComponentModel.DataAnnotations.Length(8, 8)] public string Code { get; set; } /// @@ -5417,8 +5416,7 @@ public class GetPaymentDetailsReturn /// Max length: 8 /// [System.Runtime.Serialization.DataMember(Name="paymentRequestCode")] - [System.ComponentModel.DataAnnotations.MinLength(8)] - [System.ComponentModel.DataAnnotations.MaxLength(8)] + [System.ComponentModel.DataAnnotations.Length(8, 8)] public string PaymentRequestCode { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/github_com_api_github_com_1_1_4_.cs b/Tests/CsOpenApi3TestsResults/github_com_api_github_com_1_1_4_.cs index b172650d..03362f76 100644 --- a/Tests/CsOpenApi3TestsResults/github_com_api_github_com_1_1_4_.cs +++ b/Tests/CsOpenApi3TestsResults/github_com_api_github_com_1_1_4_.cs @@ -7345,8 +7345,7 @@ public class Code_scanning_analysis /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="commit_sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-fA-F]+$")] public string Commit_sha { get; set; } @@ -17230,8 +17229,7 @@ public class Git_refObject /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] public string Sha { get; set; } /// @@ -31489,8 +31487,7 @@ public class Snapshot /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] public string Sha { get; set; } /// @@ -232297,8 +232294,7 @@ public class ActionsSlashadd_custom_labels_to_self_hosted_runner_for_orgPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] Labels { get; set; } } @@ -232331,8 +232327,7 @@ public class ActionsSlashset_custom_labels_for_self_hosted_runner_for_orgPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string[] Labels { get; set; } } @@ -234517,8 +234512,7 @@ public class ActionsSlashadd_custom_labels_to_self_hosted_runner_for_repoPostBod /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] Labels { get; set; } } @@ -234551,8 +234545,7 @@ public class ActionsSlashset_custom_labels_for_self_hosted_runner_for_repoPutBod /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string[] Labels { get; set; } } @@ -236010,8 +236003,7 @@ public class Code_scanningSlashupload_sarifPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="commit_sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-fA-F]+$")] public string Commit_sha { get; set; } @@ -236970,8 +236962,7 @@ public class ReposSlashcreate_dispatch_eventPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="event_type")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Event_type { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/github_com_api_github_com_2022_11_28_1_1_4_.cs b/Tests/CsOpenApi3TestsResults/github_com_api_github_com_2022_11_28_1_1_4_.cs index b172650d..03362f76 100644 --- a/Tests/CsOpenApi3TestsResults/github_com_api_github_com_2022_11_28_1_1_4_.cs +++ b/Tests/CsOpenApi3TestsResults/github_com_api_github_com_2022_11_28_1_1_4_.cs @@ -7345,8 +7345,7 @@ public class Code_scanning_analysis /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="commit_sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-fA-F]+$")] public string Commit_sha { get; set; } @@ -17230,8 +17229,7 @@ public class Git_refObject /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] public string Sha { get; set; } /// @@ -31489,8 +31487,7 @@ public class Snapshot /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] public string Sha { get; set; } /// @@ -232297,8 +232294,7 @@ public class ActionsSlashadd_custom_labels_to_self_hosted_runner_for_orgPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] Labels { get; set; } } @@ -232331,8 +232327,7 @@ public class ActionsSlashset_custom_labels_for_self_hosted_runner_for_orgPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string[] Labels { get; set; } } @@ -234517,8 +234512,7 @@ public class ActionsSlashadd_custom_labels_to_self_hosted_runner_for_repoPostBod /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] Labels { get; set; } } @@ -234551,8 +234545,7 @@ public class ActionsSlashset_custom_labels_for_self_hosted_runner_for_repoPutBod /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string[] Labels { get; set; } } @@ -236010,8 +236003,7 @@ public class Code_scanningSlashupload_sarifPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="commit_sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-fA-F]+$")] public string Commit_sha { get; set; } @@ -236970,8 +236962,7 @@ public class ReposSlashcreate_dispatch_eventPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="event_type")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Event_type { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/github_com_ghec_1_1_4_.cs b/Tests/CsOpenApi3TestsResults/github_com_ghec_1_1_4_.cs index df87a031..2f7e0175 100644 --- a/Tests/CsOpenApi3TestsResults/github_com_ghec_1_1_4_.cs +++ b/Tests/CsOpenApi3TestsResults/github_com_ghec_1_1_4_.cs @@ -7687,8 +7687,7 @@ public class Code_scanning_analysis /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="commit_sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-fA-F]+$")] public string Commit_sha { get; set; } @@ -17986,8 +17985,7 @@ public class Git_refObject /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] public string Sha { get; set; } /// @@ -33003,8 +33001,7 @@ public class Snapshot /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] public string Sha { get; set; } /// @@ -236625,8 +236622,7 @@ public class Enterprise_adminSlashadd_custom_labels_to_self_hosted_runner_for_en /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] Labels { get; set; } } @@ -236659,8 +236655,7 @@ public class Enterprise_adminSlashset_custom_labels_for_self_hosted_runner_for_e /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string[] Labels { get; set; } } @@ -237689,8 +237684,7 @@ public class ActionsSlashadd_custom_labels_to_self_hosted_runner_for_orgPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] Labels { get; set; } } @@ -237723,8 +237717,7 @@ public class ActionsSlashset_custom_labels_for_self_hosted_runner_for_orgPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string[] Labels { get; set; } } @@ -239952,8 +239945,7 @@ public class ActionsSlashadd_custom_labels_to_self_hosted_runner_for_repoPostBod /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] Labels { get; set; } } @@ -239986,8 +239978,7 @@ public class ActionsSlashset_custom_labels_for_self_hosted_runner_for_repoPutBod /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string[] Labels { get; set; } } @@ -241445,8 +241436,7 @@ public class Code_scanningSlashupload_sarifPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="commit_sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-fA-F]+$")] public string Commit_sha { get; set; } @@ -242405,8 +242395,7 @@ public class ReposSlashcreate_dispatch_eventPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="event_type")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Event_type { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/github_com_ghec_2022_11_28_1_1_4_.cs b/Tests/CsOpenApi3TestsResults/github_com_ghec_2022_11_28_1_1_4_.cs index df87a031..2f7e0175 100644 --- a/Tests/CsOpenApi3TestsResults/github_com_ghec_2022_11_28_1_1_4_.cs +++ b/Tests/CsOpenApi3TestsResults/github_com_ghec_2022_11_28_1_1_4_.cs @@ -7687,8 +7687,7 @@ public class Code_scanning_analysis /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="commit_sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-fA-F]+$")] public string Commit_sha { get; set; } @@ -17986,8 +17985,7 @@ public class Git_refObject /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] public string Sha { get; set; } /// @@ -33003,8 +33001,7 @@ public class Snapshot /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] public string Sha { get; set; } /// @@ -236625,8 +236622,7 @@ public class Enterprise_adminSlashadd_custom_labels_to_self_hosted_runner_for_en /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] Labels { get; set; } } @@ -236659,8 +236655,7 @@ public class Enterprise_adminSlashset_custom_labels_for_self_hosted_runner_for_e /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string[] Labels { get; set; } } @@ -237689,8 +237684,7 @@ public class ActionsSlashadd_custom_labels_to_self_hosted_runner_for_orgPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] Labels { get; set; } } @@ -237723,8 +237717,7 @@ public class ActionsSlashset_custom_labels_for_self_hosted_runner_for_orgPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string[] Labels { get; set; } } @@ -239952,8 +239945,7 @@ public class ActionsSlashadd_custom_labels_to_self_hosted_runner_for_repoPostBod /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] Labels { get; set; } } @@ -239986,8 +239978,7 @@ public class ActionsSlashset_custom_labels_for_self_hosted_runner_for_repoPutBod /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string[] Labels { get; set; } } @@ -241445,8 +241436,7 @@ public class Code_scanningSlashupload_sarifPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="commit_sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-fA-F]+$")] public string Commit_sha { get; set; } @@ -242405,8 +242395,7 @@ public class ReposSlashcreate_dispatch_eventPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="event_type")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Event_type { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/github_com_ghes_2_18_1_1_4_.cs b/Tests/CsOpenApi3TestsResults/github_com_ghes_2_18_1_1_4_.cs index 04ded445..e973b23a 100644 --- a/Tests/CsOpenApi3TestsResults/github_com_ghes_2_18_1_1_4_.cs +++ b/Tests/CsOpenApi3TestsResults/github_com_ghes_2_18_1_1_4_.cs @@ -12091,8 +12091,7 @@ public class Git_refObject /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] public string Sha { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/github_com_ghes_2_19_1_1_4_.cs b/Tests/CsOpenApi3TestsResults/github_com_ghes_2_19_1_1_4_.cs index bb11dbee..7cd15bf7 100644 --- a/Tests/CsOpenApi3TestsResults/github_com_ghes_2_19_1_1_4_.cs +++ b/Tests/CsOpenApi3TestsResults/github_com_ghes_2_19_1_1_4_.cs @@ -12205,8 +12205,7 @@ public class Git_refObject /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] public string Sha { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/github_com_ghes_2_20_1_1_4_.cs b/Tests/CsOpenApi3TestsResults/github_com_ghes_2_20_1_1_4_.cs index 98074a9a..1f167b3a 100644 --- a/Tests/CsOpenApi3TestsResults/github_com_ghes_2_20_1_1_4_.cs +++ b/Tests/CsOpenApi3TestsResults/github_com_ghes_2_20_1_1_4_.cs @@ -11918,8 +11918,7 @@ public class Git_refObject /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] public string Sha { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/github_com_ghes_2_21_1_1_4_.cs b/Tests/CsOpenApi3TestsResults/github_com_ghes_2_21_1_1_4_.cs index 8bf28df9..9ba5f652 100644 --- a/Tests/CsOpenApi3TestsResults/github_com_ghes_2_21_1_1_4_.cs +++ b/Tests/CsOpenApi3TestsResults/github_com_ghes_2_21_1_1_4_.cs @@ -11948,8 +11948,7 @@ public class Git_refObject /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] public string Sha { get; set; } /// @@ -45611,8 +45610,7 @@ public class ReposSlashcreate_dispatch_eventPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="event_type")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Event_type { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/github_com_ghes_2_22_1_1_4_.cs b/Tests/CsOpenApi3TestsResults/github_com_ghes_2_22_1_1_4_.cs index 9629f4c9..11301157 100644 --- a/Tests/CsOpenApi3TestsResults/github_com_ghes_2_22_1_1_4_.cs +++ b/Tests/CsOpenApi3TestsResults/github_com_ghes_2_22_1_1_4_.cs @@ -6823,8 +6823,7 @@ public class Code_scanning_analysis /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="commit_sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-fA-F]+$")] public string Commit_sha { get; set; } @@ -12799,8 +12798,7 @@ public class Git_refObject /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] public string Sha { get; set; } /// @@ -50461,8 +50459,7 @@ public class Code_scanningSlashupload_sarifPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="commit_sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-fA-F]+$")] public string Commit_sha { get; set; } @@ -51052,8 +51049,7 @@ public class ReposSlashcreate_dispatch_eventPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="event_type")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Event_type { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/github_com_ghes_3_0_1_1_4_.cs b/Tests/CsOpenApi3TestsResults/github_com_ghes_3_0_1_1_4_.cs index b4e80263..9d2b422c 100644 --- a/Tests/CsOpenApi3TestsResults/github_com_ghes_3_0_1_1_4_.cs +++ b/Tests/CsOpenApi3TestsResults/github_com_ghes_3_0_1_1_4_.cs @@ -7077,8 +7077,7 @@ public class Code_scanning_analysis /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="commit_sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-fA-F]+$")] public string Commit_sha { get; set; } @@ -12987,8 +12986,7 @@ public class Git_refObject /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] public string Sha { get; set; } /// @@ -52091,8 +52089,7 @@ public class Code_scanningSlashupload_sarifPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="commit_sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-fA-F]+$")] public string Commit_sha { get; set; } @@ -52682,8 +52679,7 @@ public class ReposSlashcreate_dispatch_eventPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="event_type")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Event_type { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/github_com_ghes_3_1_1_1_4_.cs b/Tests/CsOpenApi3TestsResults/github_com_ghes_3_1_1_1_4_.cs index a9a36882..a670fb2b 100644 --- a/Tests/CsOpenApi3TestsResults/github_com_ghes_3_1_1_1_4_.cs +++ b/Tests/CsOpenApi3TestsResults/github_com_ghes_3_1_1_1_4_.cs @@ -7181,8 +7181,7 @@ public class Code_scanning_analysis /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="commit_sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-fA-F]+$")] public string Commit_sha { get; set; } @@ -13158,8 +13157,7 @@ public class Git_refObject /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] public string Sha { get; set; } /// @@ -53691,8 +53689,7 @@ public class Code_scanningSlashupload_sarifPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="commit_sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-fA-F]+$")] public string Commit_sha { get; set; } @@ -54274,8 +54271,7 @@ public class ReposSlashcreate_dispatch_eventPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="event_type")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Event_type { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/github_com_ghes_3_2_1_1_4_.cs b/Tests/CsOpenApi3TestsResults/github_com_ghes_3_2_1_1_4_.cs index a9e1feff..8f3e8ca6 100644 --- a/Tests/CsOpenApi3TestsResults/github_com_ghes_3_2_1_1_4_.cs +++ b/Tests/CsOpenApi3TestsResults/github_com_ghes_3_2_1_1_4_.cs @@ -6250,8 +6250,7 @@ public class Code_scanning_analysis /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="commit_sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-fA-F]+$")] public string Commit_sha { get; set; } @@ -13545,8 +13544,7 @@ public class Git_refObject /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] public string Sha { get; set; } /// @@ -55907,8 +55905,7 @@ public class Code_scanningSlashupload_sarifPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="commit_sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-fA-F]+$")] public string Commit_sha { get; set; } @@ -56509,8 +56506,7 @@ public class ReposSlashcreate_dispatch_eventPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="event_type")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Event_type { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/github_com_ghes_3_3_1_1_4_.cs b/Tests/CsOpenApi3TestsResults/github_com_ghes_3_3_1_1_4_.cs index b8e63d68..7e344ef9 100644 --- a/Tests/CsOpenApi3TestsResults/github_com_ghes_3_3_1_1_4_.cs +++ b/Tests/CsOpenApi3TestsResults/github_com_ghes_3_3_1_1_4_.cs @@ -6502,8 +6502,7 @@ public class Code_scanning_analysis /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="commit_sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-fA-F]+$")] public string Commit_sha { get; set; } @@ -13842,8 +13841,7 @@ public class Git_refObject /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] public string Sha { get; set; } /// @@ -57345,8 +57343,7 @@ public class Code_scanningSlashupload_sarifPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="commit_sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-fA-F]+$")] public string Commit_sha { get; set; } @@ -57923,8 +57920,7 @@ public class ReposSlashcreate_dispatch_eventPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="event_type")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Event_type { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/github_com_ghes_3_4_1_1_4_.cs b/Tests/CsOpenApi3TestsResults/github_com_ghes_3_4_1_1_4_.cs index 2b275aaa..43aa3ed2 100644 --- a/Tests/CsOpenApi3TestsResults/github_com_ghes_3_4_1_1_4_.cs +++ b/Tests/CsOpenApi3TestsResults/github_com_ghes_3_4_1_1_4_.cs @@ -6642,8 +6642,7 @@ public class Code_scanning_analysis /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="commit_sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-fA-F]+$")] public string Commit_sha { get; set; } @@ -14006,8 +14005,7 @@ public class Git_refObject /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] public string Sha { get; set; } /// @@ -55919,8 +55917,7 @@ public class Enterprise_adminSlashadd_custom_labels_to_self_hosted_runner_for_en /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] Labels { get; set; } } @@ -55953,8 +55950,7 @@ public class Enterprise_adminSlashset_custom_labels_for_self_hosted_runner_for_e /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string[] Labels { get; set; } } @@ -56660,8 +56656,7 @@ public class ActionsSlashadd_custom_labels_to_self_hosted_runner_for_orgPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] Labels { get; set; } } @@ -56694,8 +56689,7 @@ public class ActionsSlashset_custom_labels_for_self_hosted_runner_for_orgPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string[] Labels { get; set; } } @@ -58321,8 +58315,7 @@ public class ActionsSlashadd_custom_labels_to_self_hosted_runner_for_repoPostBod /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] Labels { get; set; } } @@ -58355,8 +58348,7 @@ public class ActionsSlashset_custom_labels_for_self_hosted_runner_for_repoPutBod /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string[] Labels { get; set; } } @@ -59698,8 +59690,7 @@ public class Code_scanningSlashupload_sarifPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="commit_sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-fA-F]+$")] public string Commit_sha { get; set; } @@ -60288,8 +60279,7 @@ public class ReposSlashcreate_dispatch_eventPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="event_type")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Event_type { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/github_com_ghes_3_5_1_1_4_.cs b/Tests/CsOpenApi3TestsResults/github_com_ghes_3_5_1_1_4_.cs index 7c2d8776..c3938435 100644 --- a/Tests/CsOpenApi3TestsResults/github_com_ghes_3_5_1_1_4_.cs +++ b/Tests/CsOpenApi3TestsResults/github_com_ghes_3_5_1_1_4_.cs @@ -6805,8 +6805,7 @@ public class Code_scanning_analysis /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="commit_sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-fA-F]+$")] public string Commit_sha { get; set; } @@ -14771,8 +14770,7 @@ public class Git_refObject /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] public string Sha { get; set; } /// @@ -57149,8 +57147,7 @@ public class Enterprise_adminSlashadd_custom_labels_to_self_hosted_runner_for_en /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] Labels { get; set; } } @@ -57183,8 +57180,7 @@ public class Enterprise_adminSlashset_custom_labels_for_self_hosted_runner_for_e /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string[] Labels { get; set; } } @@ -57932,8 +57928,7 @@ public class ActionsSlashadd_custom_labels_to_self_hosted_runner_for_orgPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] Labels { get; set; } } @@ -57966,8 +57961,7 @@ public class ActionsSlashset_custom_labels_for_self_hosted_runner_for_orgPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string[] Labels { get; set; } } @@ -59603,8 +59597,7 @@ public class ActionsSlashadd_custom_labels_to_self_hosted_runner_for_repoPostBod /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] Labels { get; set; } } @@ -59637,8 +59630,7 @@ public class ActionsSlashset_custom_labels_for_self_hosted_runner_for_repoPutBod /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string[] Labels { get; set; } } @@ -60988,8 +60980,7 @@ public class Code_scanningSlashupload_sarifPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="commit_sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-fA-F]+$")] public string Commit_sha { get; set; } @@ -61578,8 +61569,7 @@ public class ReposSlashcreate_dispatch_eventPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="event_type")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Event_type { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/github_com_ghes_3_6_1_1_4_.cs b/Tests/CsOpenApi3TestsResults/github_com_ghes_3_6_1_1_4_.cs index 9d7585a5..2de8c6e0 100644 --- a/Tests/CsOpenApi3TestsResults/github_com_ghes_3_6_1_1_4_.cs +++ b/Tests/CsOpenApi3TestsResults/github_com_ghes_3_6_1_1_4_.cs @@ -6965,8 +6965,7 @@ public class Code_scanning_analysis /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="commit_sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-fA-F]+$")] public string Commit_sha { get; set; } @@ -15329,8 +15328,7 @@ public class Git_refObject /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] public string Sha { get; set; } /// @@ -59408,8 +59406,7 @@ public class Enterprise_adminSlashadd_custom_labels_to_self_hosted_runner_for_en /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] Labels { get; set; } } @@ -59442,8 +59439,7 @@ public class Enterprise_adminSlashset_custom_labels_for_self_hosted_runner_for_e /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string[] Labels { get; set; } } @@ -60207,8 +60203,7 @@ public class ActionsSlashadd_custom_labels_to_self_hosted_runner_for_orgPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] Labels { get; set; } } @@ -60241,8 +60236,7 @@ public class ActionsSlashset_custom_labels_for_self_hosted_runner_for_orgPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string[] Labels { get; set; } } @@ -61846,8 +61840,7 @@ public class ActionsSlashadd_custom_labels_to_self_hosted_runner_for_repoPostBod /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] Labels { get; set; } } @@ -61880,8 +61873,7 @@ public class ActionsSlashset_custom_labels_for_self_hosted_runner_for_repoPutBod /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string[] Labels { get; set; } } @@ -63259,8 +63251,7 @@ public class Code_scanningSlashupload_sarifPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="commit_sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-fA-F]+$")] public string Commit_sha { get; set; } @@ -63948,8 +63939,7 @@ public class ReposSlashcreate_dispatch_eventPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="event_type")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Event_type { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/github_com_ghes_3_7_1_1_4_.cs b/Tests/CsOpenApi3TestsResults/github_com_ghes_3_7_1_1_4_.cs index 2510dbf4..bf64808a 100644 --- a/Tests/CsOpenApi3TestsResults/github_com_ghes_3_7_1_1_4_.cs +++ b/Tests/CsOpenApi3TestsResults/github_com_ghes_3_7_1_1_4_.cs @@ -7368,8 +7368,7 @@ public class Code_scanning_analysis /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="commit_sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-fA-F]+$")] public string Commit_sha { get; set; } @@ -16747,8 +16746,7 @@ public class Git_refObject /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] public string Sha { get; set; } /// @@ -30256,8 +30254,7 @@ public class Snapshot /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] public string Sha { get; set; } /// @@ -221609,8 +221606,7 @@ public class Enterprise_adminSlashadd_custom_labels_to_self_hosted_runner_for_en /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] Labels { get; set; } } @@ -221643,8 +221639,7 @@ public class Enterprise_adminSlashset_custom_labels_for_self_hosted_runner_for_e /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string[] Labels { get; set; } } @@ -222468,8 +222463,7 @@ public class ActionsSlashadd_custom_labels_to_self_hosted_runner_for_orgPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] Labels { get; set; } } @@ -222502,8 +222496,7 @@ public class ActionsSlashset_custom_labels_for_self_hosted_runner_for_orgPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string[] Labels { get; set; } } @@ -224164,8 +224157,7 @@ public class ActionsSlashadd_custom_labels_to_self_hosted_runner_for_repoPostBod /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] Labels { get; set; } } @@ -224198,8 +224190,7 @@ public class ActionsSlashset_custom_labels_for_self_hosted_runner_for_repoPutBod /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string[] Labels { get; set; } } @@ -225577,8 +225568,7 @@ public class Code_scanningSlashupload_sarifPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="commit_sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-fA-F]+$")] public string Commit_sha { get; set; } @@ -226266,8 +226256,7 @@ public class ReposSlashcreate_dispatch_eventPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="event_type")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Event_type { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/github_com_ghes_3_8_1_1_4_.cs b/Tests/CsOpenApi3TestsResults/github_com_ghes_3_8_1_1_4_.cs index 7db67774..c20766d4 100644 --- a/Tests/CsOpenApi3TestsResults/github_com_ghes_3_8_1_1_4_.cs +++ b/Tests/CsOpenApi3TestsResults/github_com_ghes_3_8_1_1_4_.cs @@ -7559,8 +7559,7 @@ public class Code_scanning_analysis /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="commit_sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-fA-F]+$")] public string Commit_sha { get; set; } @@ -17092,8 +17091,7 @@ public class Git_refObject /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] public string Sha { get; set; } /// @@ -30970,8 +30968,7 @@ public class Snapshot /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] public string Sha { get; set; } /// @@ -224098,8 +224095,7 @@ public class Enterprise_adminSlashadd_custom_labels_to_self_hosted_runner_for_en /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] Labels { get; set; } } @@ -224132,8 +224128,7 @@ public class Enterprise_adminSlashset_custom_labels_for_self_hosted_runner_for_e /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string[] Labels { get; set; } } @@ -225112,8 +225107,7 @@ public class ActionsSlashadd_custom_labels_to_self_hosted_runner_for_orgPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] Labels { get; set; } } @@ -225146,8 +225140,7 @@ public class ActionsSlashset_custom_labels_for_self_hosted_runner_for_orgPutBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string[] Labels { get; set; } } @@ -227024,8 +227017,7 @@ public class ActionsSlashadd_custom_labels_to_self_hosted_runner_for_repoPostBod /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string[] Labels { get; set; } } @@ -227058,8 +227050,7 @@ public class ActionsSlashset_custom_labels_for_self_hosted_runner_for_repoPutBod /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="labels")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string[] Labels { get; set; } } @@ -228469,8 +228460,7 @@ public class Code_scanningSlashupload_sarifPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="commit_sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-fA-F]+$")] public string Commit_sha { get; set; } @@ -229223,8 +229213,7 @@ public class ReposSlashcreate_dispatch_eventPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="event_type")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Event_type { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/github_com_github_ae_1_1_4_.cs b/Tests/CsOpenApi3TestsResults/github_com_github_ae_1_1_4_.cs index 67e9773f..46221367 100644 --- a/Tests/CsOpenApi3TestsResults/github_com_github_ae_1_1_4_.cs +++ b/Tests/CsOpenApi3TestsResults/github_com_github_ae_1_1_4_.cs @@ -6857,8 +6857,7 @@ public class Code_scanning_analysis /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="commit_sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-fA-F]+$")] public string Commit_sha { get; set; } @@ -15274,8 +15273,7 @@ public class Git_refObject /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] public string Sha { get; set; } /// @@ -213655,8 +213653,7 @@ public class Code_scanningSlashupload_sarifPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="commit_sha")] - [System.ComponentModel.DataAnnotations.MinLength(40)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(40, 40)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9a-fA-F]+$")] public string Commit_sha { get; set; } @@ -214228,8 +214225,7 @@ public class ReposSlashcreate_dispatch_eventPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="event_type")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Event_type { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/here_com_positioning_2_1_1_.cs b/Tests/CsOpenApi3TestsResults/here_com_positioning_2_1_1_.cs index f5c721f6..17924632 100644 --- a/Tests/CsOpenApi3TestsResults/here_com_positioning_2_1_1_.cs +++ b/Tests/CsOpenApi3TestsResults/here_com_positioning_2_1_1_.cs @@ -125,8 +125,7 @@ public class Cdma /// Maximum items: 32 /// [System.Runtime.Serialization.DataMember(Name="nmr")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] public CdmaNmr[] Nmr { get; set; } /// @@ -254,8 +253,7 @@ public class ClientInfo /// Max length: 150 /// [System.Runtime.Serialization.DataMember(Name="firmware")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(150)] + [System.ComponentModel.DataAnnotations.Length(1, 150)] public string Firmware { get; set; } /// @@ -266,8 +264,7 @@ public class ClientInfo /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="manufacturer")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(2, 50)] public string Manufacturer { get; set; } /// @@ -278,8 +275,7 @@ public class ClientInfo /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="model")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string Model { get; set; } /// @@ -290,8 +286,7 @@ public class ClientInfo /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(3, 50)] public string Name { get; set; } /// @@ -300,8 +295,7 @@ public class ClientInfo /// Max length: 50 /// [System.Runtime.Serialization.DataMember(Name="platform")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(3, 50)] public string Platform { get; set; } /// @@ -312,8 +306,7 @@ public class ClientInfo /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="version")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(13)] + [System.ComponentModel.DataAnnotations.Length(3, 13)] public string Version { get; set; } } @@ -472,8 +465,7 @@ public class Gsm /// Maximum items: 32 /// [System.Runtime.Serialization.DataMember(Name="nmr")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] public GsmNmr[] Nmr { get; set; } /// @@ -619,8 +611,7 @@ public class Locate /// Maximum items: 16 /// [System.Runtime.Serialization.DataMember(Name="cdma")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(16)] + [System.ComponentModel.DataAnnotations.Length(1, 16)] public Cdma[] Cdma { get; set; } /// @@ -635,8 +626,7 @@ public class Locate /// Maximum items: 16 /// [System.Runtime.Serialization.DataMember(Name="gsm")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(16)] + [System.ComponentModel.DataAnnotations.Length(1, 16)] public Gsm[] Gsm { get; set; } /// @@ -645,8 +635,7 @@ public class Locate /// Maximum items: 16 /// [System.Runtime.Serialization.DataMember(Name="lte")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(16)] + [System.ComponentModel.DataAnnotations.Length(1, 16)] public Lte[] Lte { get; set; } /// @@ -655,8 +644,7 @@ public class Locate /// Maximum items: 16 /// [System.Runtime.Serialization.DataMember(Name="tdscdma")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(16)] + [System.ComponentModel.DataAnnotations.Length(1, 16)] public Tdscdma[] Tdscdma { get; set; } /// @@ -665,8 +653,7 @@ public class Locate /// Maximum items: 16 /// [System.Runtime.Serialization.DataMember(Name="wcdma")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(16)] + [System.ComponentModel.DataAnnotations.Length(1, 16)] public Wcdma[] Wcdma { get; set; } /// @@ -676,8 +663,7 @@ public class Locate /// Maximum items: 256 /// [System.Runtime.Serialization.DataMember(Name="wlan")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public WlanLocate[] Wlan { get; set; } } @@ -735,8 +721,7 @@ public class Lte /// Maximum items: 32 /// [System.Runtime.Serialization.DataMember(Name="nmr")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] public LteNmr[] Nmr { get; set; } /// @@ -932,8 +917,7 @@ public class Tdscdma /// Maximum items: 32 /// [System.Runtime.Serialization.DataMember(Name="nmr")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] public TdscdmaNmr[] Nmr { get; set; } /// @@ -1118,8 +1102,7 @@ public class Wcdma /// Maximum items: 32 /// [System.Runtime.Serialization.DataMember(Name="nmr")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] public WcdmaNmr[] Nmr { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/increase_com_0_0_1_.cs b/Tests/CsOpenApi3TestsResults/increase_com_0_0_1_.cs index 009f4c26..6079ee7f 100644 --- a/Tests/CsOpenApi3TestsResults/increase_com_0_0_1_.cs +++ b/Tests/CsOpenApi3TestsResults/increase_com_0_0_1_.cs @@ -1434,8 +1434,7 @@ public class Action_a_real_time_decision_parametersDigital_wallet_tokenApproval /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="email")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Email { get; set; } /// @@ -1444,8 +1443,7 @@ public class Action_a_real_time_decision_parametersDigital_wallet_tokenApproval /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="phone")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Phone { get; set; } } @@ -1458,8 +1456,7 @@ public class Action_a_real_time_decision_parametersDigital_wallet_tokenDecline /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="reason")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Reason { get; set; } } @@ -3439,8 +3436,7 @@ public class Create_a_bookkeeping_account_parameters /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Name { get; set; } } @@ -3509,8 +3505,7 @@ public class Create_a_card_dispute_parameters /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="explanation")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Explanation { get; set; } } @@ -3538,8 +3533,7 @@ public class Create_a_card_parameters /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Description { get; set; } /// @@ -3560,8 +3554,7 @@ public class Create_a_card_parametersBilling_address /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="city")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string City { get; set; } /// @@ -3572,8 +3565,7 @@ public class Create_a_card_parametersBilling_address /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="line1")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Line1 { get; set; } /// @@ -3582,8 +3574,7 @@ public class Create_a_card_parametersBilling_address /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="line2")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Line2 { get; set; } /// @@ -3594,8 +3585,7 @@ public class Create_a_card_parametersBilling_address /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="postal_code")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Postal_code { get; set; } /// @@ -3606,8 +3596,7 @@ public class Create_a_card_parametersBilling_address /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="state")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string State { get; set; } } @@ -3626,8 +3615,7 @@ public class Create_a_card_parametersDigital_wallet /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="email")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Email { get; set; } /// @@ -3636,8 +3624,7 @@ public class Create_a_card_parametersDigital_wallet /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="phone")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Phone { get; set; } } @@ -3653,8 +3640,7 @@ public class Create_a_card_profile_parameters /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Description { get; set; } /// @@ -3693,8 +3679,7 @@ public class Create_a_card_profile_parametersDigital_wallets /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="card_description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] public string Card_description { get; set; } /// @@ -3703,8 +3688,7 @@ public class Create_a_card_profile_parametersDigital_wallets /// Max length: 32 /// [System.Runtime.Serialization.DataMember(Name="contact_email")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] public string Contact_email { get; set; } /// @@ -3713,8 +3697,7 @@ public class Create_a_card_profile_parametersDigital_wallets /// Max length: 32 /// [System.Runtime.Serialization.DataMember(Name="contact_phone")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] public string Contact_phone { get; set; } /// @@ -3731,8 +3714,7 @@ public class Create_a_card_profile_parametersDigital_wallets /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="issuer_name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] public string Issuer_name { get; set; } /// @@ -3817,8 +3799,7 @@ public class Create_a_check_deposit_parameters /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="currency")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Currency { get; set; } /// @@ -3850,8 +3831,7 @@ public class Create_a_check_transfer_parameters /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="address_city")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(1, 250)] public string Address_city { get; set; } /// @@ -3862,8 +3842,7 @@ public class Create_a_check_transfer_parameters /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="address_line1")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(1, 250)] public string Address_line1 { get; set; } /// @@ -3872,8 +3851,7 @@ public class Create_a_check_transfer_parameters /// Max length: 250 /// [System.Runtime.Serialization.DataMember(Name="address_line2")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(1, 250)] public string Address_line2 { get; set; } /// @@ -3884,8 +3862,7 @@ public class Create_a_check_transfer_parameters /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="address_state")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Address_state { get; set; } /// @@ -3896,8 +3873,7 @@ public class Create_a_check_transfer_parameters /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="address_zip")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(1, 250)] public string Address_zip { get; set; } /// @@ -3918,8 +3894,7 @@ public class Create_a_check_transfer_parameters /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="message")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(73)] + [System.ComponentModel.DataAnnotations.Length(1, 73)] public string Message { get; set; } /// @@ -3928,8 +3903,7 @@ public class Create_a_check_transfer_parameters /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="note")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Note { get; set; } /// @@ -3940,8 +3914,7 @@ public class Create_a_check_transfer_parameters /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="recipient_name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(1, 250)] public string Recipient_name { get; set; } /// @@ -3968,8 +3941,7 @@ public class Create_a_check_transfer_parametersReturn_address /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="city")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string City { get; set; } /// @@ -3980,8 +3952,7 @@ public class Create_a_check_transfer_parametersReturn_address /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="line1")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Line1 { get; set; } /// @@ -3990,8 +3961,7 @@ public class Create_a_check_transfer_parametersReturn_address /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="line2")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Line2 { get; set; } /// @@ -4002,8 +3972,7 @@ public class Create_a_check_transfer_parametersReturn_address /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Name { get; set; } /// @@ -4014,8 +3983,7 @@ public class Create_a_check_transfer_parametersReturn_address /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="state")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string State { get; set; } /// @@ -4026,8 +3994,7 @@ public class Create_a_check_transfer_parametersReturn_address /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="zip")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Zip { get; set; } } @@ -4041,8 +4008,7 @@ public class Create_a_file_parameters /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Description { get; set; } /// @@ -4123,8 +4089,7 @@ public class Create_a_limit_parameters /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="model_id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Model_id { get; set; } /// @@ -4194,8 +4159,7 @@ public class Create_a_real_time_payments_transfer_parameters /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="creditor_name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Creditor_name { get; set; } /// @@ -4204,8 +4168,7 @@ public class Create_a_real_time_payments_transfer_parameters /// Max length: 34 /// [System.Runtime.Serialization.DataMember(Name="destination_account_number")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string Destination_account_number { get; set; } /// @@ -4214,8 +4177,7 @@ public class Create_a_real_time_payments_transfer_parameters /// Max length: 9 /// [System.Runtime.Serialization.DataMember(Name="destination_routing_number")] - [System.ComponentModel.DataAnnotations.MinLength(9)] - [System.ComponentModel.DataAnnotations.MaxLength(9)] + [System.ComponentModel.DataAnnotations.Length(9, 9)] public string Destination_routing_number { get; set; } /// @@ -4232,8 +4194,7 @@ public class Create_a_real_time_payments_transfer_parameters /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="remittance_information")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Remittance_information { get; set; } /// @@ -4294,8 +4255,7 @@ public class Create_a_wire_drawdown_request_parameters /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="message_to_recipient")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Message_to_recipient { get; set; } /// @@ -4306,8 +4266,7 @@ public class Create_a_wire_drawdown_request_parameters /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="recipient_account_number")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Recipient_account_number { get; set; } /// @@ -4316,8 +4275,7 @@ public class Create_a_wire_drawdown_request_parameters /// Max length: 35 /// [System.Runtime.Serialization.DataMember(Name="recipient_address_line1")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Recipient_address_line1 { get; set; } /// @@ -4326,8 +4284,7 @@ public class Create_a_wire_drawdown_request_parameters /// Max length: 35 /// [System.Runtime.Serialization.DataMember(Name="recipient_address_line2")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Recipient_address_line2 { get; set; } /// @@ -4336,8 +4293,7 @@ public class Create_a_wire_drawdown_request_parameters /// Max length: 35 /// [System.Runtime.Serialization.DataMember(Name="recipient_address_line3")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Recipient_address_line3 { get; set; } /// @@ -4348,8 +4304,7 @@ public class Create_a_wire_drawdown_request_parameters /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="recipient_name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Recipient_name { get; set; } /// @@ -4360,8 +4315,7 @@ public class Create_a_wire_drawdown_request_parameters /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="recipient_routing_number")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Recipient_routing_number { get; set; } } @@ -4383,8 +4337,7 @@ public class Create_a_wire_transfer_parameters /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="account_number")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Account_number { get; set; } /// @@ -4403,8 +4356,7 @@ public class Create_a_wire_transfer_parameters /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="beneficiary_address_line1")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Beneficiary_address_line1 { get; set; } /// @@ -4413,8 +4365,7 @@ public class Create_a_wire_transfer_parameters /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="beneficiary_address_line2")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Beneficiary_address_line2 { get; set; } /// @@ -4423,8 +4374,7 @@ public class Create_a_wire_transfer_parameters /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="beneficiary_address_line3")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Beneficiary_address_line3 { get; set; } /// @@ -4435,8 +4385,7 @@ public class Create_a_wire_transfer_parameters /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="beneficiary_name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Beneficiary_name { get; set; } /// @@ -4453,8 +4402,7 @@ public class Create_a_wire_transfer_parameters /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="message_to_recipient")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Message_to_recipient { get; set; } /// @@ -4469,8 +4417,7 @@ public class Create_a_wire_transfer_parameters /// Max length: 9 /// [System.Runtime.Serialization.DataMember(Name="routing_number")] - [System.ComponentModel.DataAnnotations.MinLength(9)] - [System.ComponentModel.DataAnnotations.MaxLength(9)] + [System.ComponentModel.DataAnnotations.Length(9, 9)] public string Routing_number { get; set; } } @@ -4494,8 +4441,7 @@ public class Create_an_account_number_parameters /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Name { get; set; } } @@ -4523,8 +4469,7 @@ public class Create_an_account_parameters /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Name { get; set; } /// @@ -4564,8 +4509,7 @@ public class Create_an_account_transfer_parameters /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Description { get; set; } /// @@ -4595,8 +4539,7 @@ public class Create_an_ach_prenotification_parameters /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="account_number")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Account_number { get; set; } /// @@ -4605,8 +4548,7 @@ public class Create_an_ach_prenotification_parameters /// Max length: 80 /// [System.Runtime.Serialization.DataMember(Name="addendum")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(80)] + [System.ComponentModel.DataAnnotations.Length(1, 80)] public string Addendum { get; set; } /// @@ -4615,8 +4557,7 @@ public class Create_an_ach_prenotification_parameters /// Max length: 6 /// [System.Runtime.Serialization.DataMember(Name="company_descriptive_date")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(6)] + [System.ComponentModel.DataAnnotations.Length(1, 6)] public string Company_descriptive_date { get; set; } /// @@ -4625,8 +4566,7 @@ public class Create_an_ach_prenotification_parameters /// Max length: 20 /// [System.Runtime.Serialization.DataMember(Name="company_discretionary_data")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(1, 20)] public string Company_discretionary_data { get; set; } /// @@ -4635,8 +4575,7 @@ public class Create_an_ach_prenotification_parameters /// Max length: 10 /// [System.Runtime.Serialization.DataMember(Name="company_entry_description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public string Company_entry_description { get; set; } /// @@ -4645,8 +4584,7 @@ public class Create_an_ach_prenotification_parameters /// Max length: 16 /// [System.Runtime.Serialization.DataMember(Name="company_name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(16)] + [System.ComponentModel.DataAnnotations.Length(1, 16)] public string Company_name { get; set; } /// @@ -4667,8 +4605,7 @@ public class Create_an_ach_prenotification_parameters /// Max length: 22 /// [System.Runtime.Serialization.DataMember(Name="individual_id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(22)] + [System.ComponentModel.DataAnnotations.Length(1, 22)] public string Individual_id { get; set; } /// @@ -4677,8 +4614,7 @@ public class Create_an_ach_prenotification_parameters /// Max length: 22 /// [System.Runtime.Serialization.DataMember(Name="individual_name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(22)] + [System.ComponentModel.DataAnnotations.Length(1, 22)] public string Individual_name { get; set; } /// @@ -4689,8 +4625,7 @@ public class Create_an_ach_prenotification_parameters /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="routing_number")] - [System.ComponentModel.DataAnnotations.MinLength(9)] - [System.ComponentModel.DataAnnotations.MaxLength(9)] + [System.ComponentModel.DataAnnotations.Length(9, 9)] public string Routing_number { get; set; } /// @@ -4768,8 +4703,7 @@ public class Create_an_ach_transfer_parameters /// Max length: 17 /// [System.Runtime.Serialization.DataMember(Name="account_number")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(17)] + [System.ComponentModel.DataAnnotations.Length(1, 17)] public string Account_number { get; set; } /// @@ -4778,8 +4712,7 @@ public class Create_an_ach_transfer_parameters /// Max length: 80 /// [System.Runtime.Serialization.DataMember(Name="addendum")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(80)] + [System.ComponentModel.DataAnnotations.Length(1, 80)] public string Addendum { get; set; } /// @@ -4796,8 +4729,7 @@ public class Create_an_ach_transfer_parameters /// Max length: 6 /// [System.Runtime.Serialization.DataMember(Name="company_descriptive_date")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(6)] + [System.ComponentModel.DataAnnotations.Length(1, 6)] public string Company_descriptive_date { get; set; } /// @@ -4806,8 +4738,7 @@ public class Create_an_ach_transfer_parameters /// Max length: 20 /// [System.Runtime.Serialization.DataMember(Name="company_discretionary_data")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(1, 20)] public string Company_discretionary_data { get; set; } /// @@ -4816,8 +4747,7 @@ public class Create_an_ach_transfer_parameters /// Max length: 10 /// [System.Runtime.Serialization.DataMember(Name="company_entry_description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public string Company_entry_description { get; set; } /// @@ -4826,8 +4756,7 @@ public class Create_an_ach_transfer_parameters /// Max length: 16 /// [System.Runtime.Serialization.DataMember(Name="company_name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(16)] + [System.ComponentModel.DataAnnotations.Length(1, 16)] public string Company_name { get; set; } /// @@ -4854,8 +4783,7 @@ public class Create_an_ach_transfer_parameters /// Max length: 15 /// [System.Runtime.Serialization.DataMember(Name="individual_id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(15)] + [System.ComponentModel.DataAnnotations.Length(1, 15)] public string Individual_id { get; set; } /// @@ -4864,8 +4792,7 @@ public class Create_an_ach_transfer_parameters /// Max length: 22 /// [System.Runtime.Serialization.DataMember(Name="individual_name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(22)] + [System.ComponentModel.DataAnnotations.Length(1, 22)] public string Individual_name { get; set; } /// @@ -4880,8 +4807,7 @@ public class Create_an_ach_transfer_parameters /// Max length: 9 /// [System.Runtime.Serialization.DataMember(Name="routing_number")] - [System.ComponentModel.DataAnnotations.MinLength(9)] - [System.ComponentModel.DataAnnotations.MaxLength(9)] + [System.ComponentModel.DataAnnotations.Length(9, 9)] public string Routing_number { get; set; } /// @@ -4898,8 +4824,7 @@ public class Create_an_ach_transfer_parameters /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="statement_descriptor")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Statement_descriptor { get; set; } } @@ -4919,8 +4844,7 @@ public class Create_an_entity_parameters /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Description { get; set; } /// @@ -4989,8 +4913,7 @@ public class Create_an_entity_parametersCorporation /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="incorporation_state")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Incorporation_state { get; set; } /// @@ -5001,8 +4924,7 @@ public class Create_an_entity_parametersCorporation /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Name { get; set; } /// @@ -5013,8 +4935,7 @@ public class Create_an_entity_parametersCorporation /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="tax_identifier")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Tax_identifier { get; set; } /// @@ -5035,8 +4956,7 @@ public class Create_an_entity_parametersCorporationAddress /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="city")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string City { get; set; } /// @@ -5047,8 +4967,7 @@ public class Create_an_entity_parametersCorporationAddress /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="line1")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Line1 { get; set; } /// @@ -5057,8 +4976,7 @@ public class Create_an_entity_parametersCorporationAddress /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="line2")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Line2 { get; set; } /// @@ -5069,8 +4987,7 @@ public class Create_an_entity_parametersCorporationAddress /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="state")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string State { get; set; } /// @@ -5081,8 +4998,7 @@ public class Create_an_entity_parametersCorporationAddress /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="zip")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Zip { get; set; } } @@ -5095,8 +5011,7 @@ public class Create_an_entity_parametersCorporationBeneficial_owners /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="company_title")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Company_title { get; set; } /// @@ -5157,8 +5072,7 @@ public class Create_an_entity_parametersCorporationBeneficial_ownersIndividual /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Name { get; set; } } @@ -5173,8 +5087,7 @@ public class Create_an_entity_parametersCorporationBeneficial_ownersIndividualAd /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="city")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string City { get; set; } /// @@ -5185,8 +5098,7 @@ public class Create_an_entity_parametersCorporationBeneficial_ownersIndividualAd /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="line1")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Line1 { get; set; } /// @@ -5195,8 +5107,7 @@ public class Create_an_entity_parametersCorporationBeneficial_ownersIndividualAd /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="line2")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Line2 { get; set; } /// @@ -5207,8 +5118,7 @@ public class Create_an_entity_parametersCorporationBeneficial_ownersIndividualAd /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="state")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string State { get; set; } /// @@ -5219,8 +5129,7 @@ public class Create_an_entity_parametersCorporationBeneficial_ownersIndividualAd /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="zip")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Zip { get; set; } } @@ -5249,8 +5158,7 @@ public class Create_an_entity_parametersCorporationBeneficial_ownersIndividualId /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="number")] - [System.ComponentModel.DataAnnotations.MinLength(4)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(4, 200)] public string Number { get; set; } /// @@ -5293,8 +5201,7 @@ public class Create_an_entity_parametersCorporationBeneficial_ownersIndividualId /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="state")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string State { get; set; } } @@ -5329,8 +5236,7 @@ public class Create_an_entity_parametersCorporationBeneficial_ownersIndividualId /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="country")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Country { get; set; } /// @@ -5341,8 +5247,7 @@ public class Create_an_entity_parametersCorporationBeneficial_ownersIndividualId /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Description { get; set; } /// @@ -5371,8 +5276,7 @@ public class Create_an_entity_parametersCorporationBeneficial_ownersIndividualId /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="country")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Country { get; set; } /// @@ -5420,8 +5324,7 @@ public class Create_an_entity_parametersJoint /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Name { get; set; } } @@ -5466,8 +5369,7 @@ public class Create_an_entity_parametersJointIndividuals /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Name { get; set; } } @@ -5482,8 +5384,7 @@ public class Create_an_entity_parametersJointIndividualsAddress /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="city")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string City { get; set; } /// @@ -5494,8 +5395,7 @@ public class Create_an_entity_parametersJointIndividualsAddress /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="line1")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Line1 { get; set; } /// @@ -5504,8 +5404,7 @@ public class Create_an_entity_parametersJointIndividualsAddress /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="line2")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Line2 { get; set; } /// @@ -5516,8 +5415,7 @@ public class Create_an_entity_parametersJointIndividualsAddress /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="state")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string State { get; set; } /// @@ -5528,8 +5426,7 @@ public class Create_an_entity_parametersJointIndividualsAddress /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="zip")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Zip { get; set; } } @@ -5558,8 +5455,7 @@ public class Create_an_entity_parametersJointIndividualsIdentification /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="number")] - [System.ComponentModel.DataAnnotations.MinLength(4)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(4, 200)] public string Number { get; set; } /// @@ -5602,8 +5498,7 @@ public class Create_an_entity_parametersJointIndividualsIdentificationDrivers_li /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="state")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string State { get; set; } } @@ -5618,8 +5513,7 @@ public class Create_an_entity_parametersJointIndividualsIdentificationOther /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="country")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Country { get; set; } /// @@ -5630,8 +5524,7 @@ public class Create_an_entity_parametersJointIndividualsIdentificationOther /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Description { get; set; } /// @@ -5660,8 +5553,7 @@ public class Create_an_entity_parametersJointIndividualsIdentificationPassport /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="country")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Country { get; set; } /// @@ -5722,8 +5614,7 @@ public class Create_an_entity_parametersNatural_person /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Name { get; set; } } @@ -5738,8 +5629,7 @@ public class Create_an_entity_parametersNatural_personAddress /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="city")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string City { get; set; } /// @@ -5750,8 +5640,7 @@ public class Create_an_entity_parametersNatural_personAddress /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="line1")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Line1 { get; set; } /// @@ -5760,8 +5649,7 @@ public class Create_an_entity_parametersNatural_personAddress /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="line2")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Line2 { get; set; } /// @@ -5772,8 +5660,7 @@ public class Create_an_entity_parametersNatural_personAddress /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="state")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string State { get; set; } /// @@ -5784,8 +5671,7 @@ public class Create_an_entity_parametersNatural_personAddress /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="zip")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Zip { get; set; } } @@ -5814,8 +5700,7 @@ public class Create_an_entity_parametersNatural_personIdentification /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="number")] - [System.ComponentModel.DataAnnotations.MinLength(4)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(4, 200)] public string Number { get; set; } /// @@ -5858,8 +5743,7 @@ public class Create_an_entity_parametersNatural_personIdentificationDrivers_lice /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="state")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string State { get; set; } } @@ -5874,8 +5758,7 @@ public class Create_an_entity_parametersNatural_personIdentificationOther /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="country")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Country { get; set; } /// @@ -5886,8 +5769,7 @@ public class Create_an_entity_parametersNatural_personIdentificationOther /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Description { get; set; } /// @@ -5916,8 +5798,7 @@ public class Create_an_entity_parametersNatural_personIdentificationPassport /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="country")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Country { get; set; } /// @@ -6011,8 +5892,7 @@ public class Create_an_entity_parametersTrust /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="formation_state")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Formation_state { get; set; } /// @@ -6029,8 +5909,7 @@ public class Create_an_entity_parametersTrust /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Name { get; set; } /// @@ -6039,8 +5918,7 @@ public class Create_an_entity_parametersTrust /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="tax_identifier")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Tax_identifier { get; set; } /// @@ -6063,8 +5941,7 @@ public class Create_an_entity_parametersTrustAddress /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="city")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string City { get; set; } /// @@ -6075,8 +5952,7 @@ public class Create_an_entity_parametersTrustAddress /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="line1")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Line1 { get; set; } /// @@ -6085,8 +5961,7 @@ public class Create_an_entity_parametersTrustAddress /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="line2")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Line2 { get; set; } /// @@ -6097,8 +5972,7 @@ public class Create_an_entity_parametersTrustAddress /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="state")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string State { get; set; } /// @@ -6109,8 +5983,7 @@ public class Create_an_entity_parametersTrustAddress /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="zip")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Zip { get; set; } } @@ -6166,8 +6039,7 @@ public class Create_an_entity_parametersTrustGrantor /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Name { get; set; } } @@ -6182,8 +6054,7 @@ public class Create_an_entity_parametersTrustGrantorAddress /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="city")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string City { get; set; } /// @@ -6194,8 +6065,7 @@ public class Create_an_entity_parametersTrustGrantorAddress /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="line1")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Line1 { get; set; } /// @@ -6204,8 +6074,7 @@ public class Create_an_entity_parametersTrustGrantorAddress /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="line2")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Line2 { get; set; } /// @@ -6216,8 +6085,7 @@ public class Create_an_entity_parametersTrustGrantorAddress /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="state")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string State { get; set; } /// @@ -6228,8 +6096,7 @@ public class Create_an_entity_parametersTrustGrantorAddress /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="zip")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Zip { get; set; } } @@ -6258,8 +6125,7 @@ public class Create_an_entity_parametersTrustGrantorIdentification /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="number")] - [System.ComponentModel.DataAnnotations.MinLength(4)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(4, 200)] public string Number { get; set; } /// @@ -6302,8 +6168,7 @@ public class Create_an_entity_parametersTrustGrantorIdentificationDrivers_licens /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="state")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string State { get; set; } } @@ -6318,8 +6183,7 @@ public class Create_an_entity_parametersTrustGrantorIdentificationOther /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="country")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Country { get; set; } /// @@ -6330,8 +6194,7 @@ public class Create_an_entity_parametersTrustGrantorIdentificationOther /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Description { get; set; } /// @@ -6360,8 +6223,7 @@ public class Create_an_entity_parametersTrustGrantorIdentificationPassport /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="country")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Country { get; set; } /// @@ -6440,8 +6302,7 @@ public class Create_an_entity_parametersTrustTrusteesIndividual /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Name { get; set; } } @@ -6456,8 +6317,7 @@ public class Create_an_entity_parametersTrustTrusteesIndividualAddress /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="city")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string City { get; set; } /// @@ -6468,8 +6328,7 @@ public class Create_an_entity_parametersTrustTrusteesIndividualAddress /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="line1")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Line1 { get; set; } /// @@ -6478,8 +6337,7 @@ public class Create_an_entity_parametersTrustTrusteesIndividualAddress /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="line2")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Line2 { get; set; } /// @@ -6490,8 +6348,7 @@ public class Create_an_entity_parametersTrustTrusteesIndividualAddress /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="state")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string State { get; set; } /// @@ -6502,8 +6359,7 @@ public class Create_an_entity_parametersTrustTrusteesIndividualAddress /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="zip")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Zip { get; set; } } @@ -6532,8 +6388,7 @@ public class Create_an_entity_parametersTrustTrusteesIndividualIdentification /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="number")] - [System.ComponentModel.DataAnnotations.MinLength(4)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(4, 200)] public string Number { get; set; } /// @@ -6576,8 +6431,7 @@ public class Create_an_entity_parametersTrustTrusteesIndividualIdentificationDri /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="state")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string State { get; set; } } @@ -6592,8 +6446,7 @@ public class Create_an_entity_parametersTrustTrusteesIndividualIdentificationOth /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="country")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Country { get; set; } /// @@ -6604,8 +6457,7 @@ public class Create_an_entity_parametersTrustTrusteesIndividualIdentificationOth /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Description { get; set; } /// @@ -6634,8 +6486,7 @@ public class Create_an_entity_parametersTrustTrusteesIndividualIdentificationPas /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="country")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Country { get; set; } /// @@ -6679,8 +6530,7 @@ public class Create_an_event_subscription_parameters /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="shared_secret")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Shared_secret { get; set; } /// @@ -6983,8 +6833,7 @@ public class Create_an_external_account_parameters /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="account_number")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(17)] + [System.ComponentModel.DataAnnotations.Length(1, 17)] public string Account_number { get; set; } /// @@ -6995,8 +6844,7 @@ public class Create_an_external_account_parameters /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Description { get; set; } /// @@ -7013,8 +6861,7 @@ public class Create_an_external_account_parameters /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="routing_number")] - [System.ComponentModel.DataAnnotations.MinLength(9)] - [System.ComponentModel.DataAnnotations.MaxLength(9)] + [System.ComponentModel.DataAnnotations.Length(9, 9)] public string Routing_number { get; set; } } @@ -25669,8 +25516,7 @@ public class Simulate_a_real_time_payments_transfer_to_your_account_parameters /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="debtor_account_number")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Debtor_account_number { get; set; } /// @@ -25679,8 +25525,7 @@ public class Simulate_a_real_time_payments_transfer_to_your_account_parameters /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="debtor_name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Debtor_name { get; set; } /// @@ -25689,8 +25534,7 @@ public class Simulate_a_real_time_payments_transfer_to_your_account_parameters /// Max length: 9 /// [System.Runtime.Serialization.DataMember(Name="debtor_routing_number")] - [System.ComponentModel.DataAnnotations.MinLength(9)] - [System.ComponentModel.DataAnnotations.MaxLength(9)] + [System.ComponentModel.DataAnnotations.Length(9, 9)] public string Debtor_routing_number { get; set; } /// @@ -25699,8 +25543,7 @@ public class Simulate_a_real_time_payments_transfer_to_your_account_parameters /// Max length: 140 /// [System.Runtime.Serialization.DataMember(Name="remittance_information")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Remittance_information { get; set; } /// @@ -25764,8 +25607,7 @@ public class Simulate_a_wire_transfer_to_your_account_parameters /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="beneficiary_address_line1")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Beneficiary_address_line1 { get; set; } /// @@ -25774,8 +25616,7 @@ public class Simulate_a_wire_transfer_to_your_account_parameters /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="beneficiary_address_line2")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Beneficiary_address_line2 { get; set; } /// @@ -25784,8 +25625,7 @@ public class Simulate_a_wire_transfer_to_your_account_parameters /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="beneficiary_address_line3")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Beneficiary_address_line3 { get; set; } /// @@ -25794,8 +25634,7 @@ public class Simulate_a_wire_transfer_to_your_account_parameters /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="beneficiary_name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Beneficiary_name { get; set; } /// @@ -25804,8 +25643,7 @@ public class Simulate_a_wire_transfer_to_your_account_parameters /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="beneficiary_reference")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Beneficiary_reference { get; set; } /// @@ -25814,8 +25652,7 @@ public class Simulate_a_wire_transfer_to_your_account_parameters /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="originator_address_line1")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Originator_address_line1 { get; set; } /// @@ -25824,8 +25661,7 @@ public class Simulate_a_wire_transfer_to_your_account_parameters /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="originator_address_line2")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Originator_address_line2 { get; set; } /// @@ -25834,8 +25670,7 @@ public class Simulate_a_wire_transfer_to_your_account_parameters /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="originator_address_line3")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Originator_address_line3 { get; set; } /// @@ -25844,8 +25679,7 @@ public class Simulate_a_wire_transfer_to_your_account_parameters /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="originator_name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Originator_name { get; set; } /// @@ -25854,8 +25688,7 @@ public class Simulate_a_wire_transfer_to_your_account_parameters /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="originator_to_beneficiary_information_line1")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Originator_to_beneficiary_information_line1 { get; set; } /// @@ -25864,8 +25697,7 @@ public class Simulate_a_wire_transfer_to_your_account_parameters /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="originator_to_beneficiary_information_line2")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Originator_to_beneficiary_information_line2 { get; set; } /// @@ -25874,8 +25706,7 @@ public class Simulate_a_wire_transfer_to_your_account_parameters /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="originator_to_beneficiary_information_line3")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Originator_to_beneficiary_information_line3 { get; set; } /// @@ -25884,8 +25715,7 @@ public class Simulate_a_wire_transfer_to_your_account_parameters /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="originator_to_beneficiary_information_line4")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Originator_to_beneficiary_information_line4 { get; set; } } @@ -25928,8 +25758,7 @@ public class Simulate_an_ach_transfer_to_your_account_parameters /// Max length: 6 /// [System.Runtime.Serialization.DataMember(Name="company_descriptive_date")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(6)] + [System.ComponentModel.DataAnnotations.Length(1, 6)] public string Company_descriptive_date { get; set; } /// @@ -25938,8 +25767,7 @@ public class Simulate_an_ach_transfer_to_your_account_parameters /// Max length: 20 /// [System.Runtime.Serialization.DataMember(Name="company_discretionary_data")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(1, 20)] public string Company_discretionary_data { get; set; } /// @@ -25948,8 +25776,7 @@ public class Simulate_an_ach_transfer_to_your_account_parameters /// Max length: 10 /// [System.Runtime.Serialization.DataMember(Name="company_entry_description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public string Company_entry_description { get; set; } /// @@ -25958,8 +25785,7 @@ public class Simulate_an_ach_transfer_to_your_account_parameters /// Max length: 15 /// [System.Runtime.Serialization.DataMember(Name="company_id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(15)] + [System.ComponentModel.DataAnnotations.Length(1, 15)] public string Company_id { get; set; } /// @@ -25968,8 +25794,7 @@ public class Simulate_an_ach_transfer_to_your_account_parameters /// Max length: 16 /// [System.Runtime.Serialization.DataMember(Name="company_name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(16)] + [System.ComponentModel.DataAnnotations.Length(1, 16)] public string Company_name { get; set; } } @@ -26029,8 +25854,7 @@ public class Simulate_an_inbound_wire_drawdown_request_being_created_parameters /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="beneficiary_account_number")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Beneficiary_account_number { get; set; } /// @@ -26039,8 +25863,7 @@ public class Simulate_an_inbound_wire_drawdown_request_being_created_parameters /// Max length: 35 /// [System.Runtime.Serialization.DataMember(Name="beneficiary_address_line1")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Beneficiary_address_line1 { get; set; } /// @@ -26049,8 +25872,7 @@ public class Simulate_an_inbound_wire_drawdown_request_being_created_parameters /// Max length: 35 /// [System.Runtime.Serialization.DataMember(Name="beneficiary_address_line2")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Beneficiary_address_line2 { get; set; } /// @@ -26059,8 +25881,7 @@ public class Simulate_an_inbound_wire_drawdown_request_being_created_parameters /// Max length: 35 /// [System.Runtime.Serialization.DataMember(Name="beneficiary_address_line3")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Beneficiary_address_line3 { get; set; } /// @@ -26069,8 +25890,7 @@ public class Simulate_an_inbound_wire_drawdown_request_being_created_parameters /// Max length: 35 /// [System.Runtime.Serialization.DataMember(Name="beneficiary_name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Beneficiary_name { get; set; } /// @@ -26081,8 +25901,7 @@ public class Simulate_an_inbound_wire_drawdown_request_being_created_parameters /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="beneficiary_routing_number")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Beneficiary_routing_number { get; set; } /// @@ -26093,8 +25912,7 @@ public class Simulate_an_inbound_wire_drawdown_request_being_created_parameters /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="currency")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Currency { get; set; } /// @@ -26105,8 +25923,7 @@ public class Simulate_an_inbound_wire_drawdown_request_being_created_parameters /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="message_to_recipient")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Message_to_recipient { get; set; } /// @@ -26117,8 +25934,7 @@ public class Simulate_an_inbound_wire_drawdown_request_being_created_parameters /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="originator_account_number")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Originator_account_number { get; set; } /// @@ -26127,8 +25943,7 @@ public class Simulate_an_inbound_wire_drawdown_request_being_created_parameters /// Max length: 35 /// [System.Runtime.Serialization.DataMember(Name="originator_address_line1")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Originator_address_line1 { get; set; } /// @@ -26137,8 +25952,7 @@ public class Simulate_an_inbound_wire_drawdown_request_being_created_parameters /// Max length: 35 /// [System.Runtime.Serialization.DataMember(Name="originator_address_line2")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Originator_address_line2 { get; set; } /// @@ -26147,8 +25961,7 @@ public class Simulate_an_inbound_wire_drawdown_request_being_created_parameters /// Max length: 35 /// [System.Runtime.Serialization.DataMember(Name="originator_address_line3")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Originator_address_line3 { get; set; } /// @@ -26157,8 +25970,7 @@ public class Simulate_an_inbound_wire_drawdown_request_being_created_parameters /// Max length: 35 /// [System.Runtime.Serialization.DataMember(Name="originator_name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Originator_name { get; set; } /// @@ -26169,8 +25981,7 @@ public class Simulate_an_inbound_wire_drawdown_request_being_created_parameters /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="originator_routing_number")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Originator_routing_number { get; set; } /// @@ -26179,8 +25990,7 @@ public class Simulate_an_inbound_wire_drawdown_request_being_created_parameters /// Max length: 35 /// [System.Runtime.Serialization.DataMember(Name="originator_to_beneficiary_information_line1")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Originator_to_beneficiary_information_line1 { get; set; } /// @@ -26189,8 +25999,7 @@ public class Simulate_an_inbound_wire_drawdown_request_being_created_parameters /// Max length: 35 /// [System.Runtime.Serialization.DataMember(Name="originator_to_beneficiary_information_line2")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Originator_to_beneficiary_information_line2 { get; set; } /// @@ -26199,8 +26008,7 @@ public class Simulate_an_inbound_wire_drawdown_request_being_created_parameters /// Max length: 35 /// [System.Runtime.Serialization.DataMember(Name="originator_to_beneficiary_information_line3")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Originator_to_beneficiary_information_line3 { get; set; } /// @@ -26209,8 +26017,7 @@ public class Simulate_an_inbound_wire_drawdown_request_being_created_parameters /// Max length: 35 /// [System.Runtime.Serialization.DataMember(Name="originator_to_beneficiary_information_line4")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Originator_to_beneficiary_information_line4 { get; set; } /// @@ -26297,8 +26104,7 @@ public class Simulates_advancing_the_state_of_a_card_dispute_parameters /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="explanation")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Explanation { get; set; } /// @@ -28781,8 +28587,7 @@ public class Update_a_card_parameters /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Description { get; set; } /// @@ -28809,8 +28614,7 @@ public class Update_a_card_parametersBilling_address /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="city")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string City { get; set; } /// @@ -28821,8 +28625,7 @@ public class Update_a_card_parametersBilling_address /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="line1")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Line1 { get; set; } /// @@ -28831,8 +28634,7 @@ public class Update_a_card_parametersBilling_address /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="line2")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Line2 { get; set; } /// @@ -28843,8 +28645,7 @@ public class Update_a_card_parametersBilling_address /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="postal_code")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Postal_code { get; set; } /// @@ -28855,8 +28656,7 @@ public class Update_a_card_parametersBilling_address /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="state")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string State { get; set; } } @@ -28875,8 +28675,7 @@ public class Update_a_card_parametersDigital_wallet /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="email")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Email { get; set; } /// @@ -28885,8 +28684,7 @@ public class Update_a_card_parametersDigital_wallet /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="phone")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Phone { get; set; } } @@ -28924,8 +28722,7 @@ public class Update_an_account_number_parameters /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Name { get; set; } /// @@ -28945,8 +28742,7 @@ public class Update_an_account_parameters /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Name { get; set; } } @@ -28985,8 +28781,7 @@ public class Update_an_external_account_parameters /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Description { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/influxdata_com_2_0_0_.cs b/Tests/CsOpenApi3TestsResults/influxdata_com_2_0_0_.cs index 50bcf347..9c730a4a 100644 --- a/Tests/CsOpenApi3TestsResults/influxdata_com_2_0_0_.cs +++ b/Tests/CsOpenApi3TestsResults/influxdata_com_2_0_0_.cs @@ -582,8 +582,7 @@ public class Axis /// Maximum items: 2 /// [System.Runtime.Serialization.DataMember(Name="bounds")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(0, 2)] public string[] Bounds { get; set; } /// @@ -798,8 +797,7 @@ public class DashboardColor /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="hex")] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(7)] + [System.ComponentModel.DataAnnotations.Length(7, 7)] public string Hex { get; set; } /// @@ -2021,8 +2019,7 @@ public class Dialect /// [System.ComponentModel.DefaultValue("#")] [System.Runtime.Serialization.DataMember(Name="commentPrefix")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(0, 1)] public string CommentPrefix { get; set; } = "#"; /// @@ -2038,8 +2035,7 @@ public class Dialect /// [System.ComponentModel.DefaultValue(",")] [System.Runtime.Serialization.DataMember(Name="delimiter")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public string Delimiter { get; set; } = ","; /// diff --git a/Tests/CsOpenApi3TestsResults/izettle_com_products_1_0_0_.cs b/Tests/CsOpenApi3TestsResults/izettle_com_products_1_0_0_.cs index c27b89db..6d98f8d7 100644 --- a/Tests/CsOpenApi3TestsResults/izettle_com_products_1_0_0_.cs +++ b/Tests/CsOpenApi3TestsResults/izettle_com_products_1_0_0_.cs @@ -39,8 +39,7 @@ public class FullProductUpdateRequest /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember(Name="categories")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(0, 1)] public string[] Categories { get; set; } [System.Runtime.Serialization.DataMember(Name="category")] @@ -51,8 +50,7 @@ public class FullProductUpdateRequest /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] public string Description { get; set; } [System.Runtime.Serialization.DataMember(Name="externalReference")] @@ -71,8 +69,7 @@ public class FullProductUpdateRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Name { get; set; } [System.Runtime.Serialization.DataMember(Name="online")] @@ -126,8 +123,7 @@ public class CategoryDTO /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string Name { get; set; } /// @@ -173,8 +169,7 @@ public class OnlineProperties /// Max length: 3500 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(3500)] + [System.ComponentModel.DataAnnotations.Length(0, 3500)] public string Description { get; set; } [System.Runtime.Serialization.DataMember(Name="presentation")] @@ -198,8 +193,7 @@ public class OnlineProperties /// Max length: 256 /// [System.Runtime.Serialization.DataMember(Name="title")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string Title { get; set; } } @@ -212,8 +206,7 @@ public class Presentation /// Maximum items: 25 /// [System.Runtime.Serialization.DataMember(Name="additionalImageUrls")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(0, 25)] public string[] AdditionalImageUrls { get; set; } [System.Runtime.Serialization.DataMember(Name="displayImageUrl")] @@ -224,8 +217,7 @@ public class Presentation /// Maximum items: 8 /// [System.Runtime.Serialization.DataMember(Name="mediaUrls")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(8)] + [System.ComponentModel.DataAnnotations.Length(0, 8)] public string[] MediaUrls { get; set; } } @@ -238,8 +230,7 @@ public class SearchEngineOptimization /// Max length: 320 /// [System.Runtime.Serialization.DataMember(Name="metaDescription")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(320)] + [System.ComponentModel.DataAnnotations.Length(0, 320)] public string MetaDescription { get; set; } /// @@ -247,8 +238,7 @@ public class SearchEngineOptimization /// Max length: 256 /// [System.Runtime.Serialization.DataMember(Name="slug")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Slug { get; set; } /// @@ -256,8 +246,7 @@ public class SearchEngineOptimization /// Max length: 256 /// [System.Runtime.Serialization.DataMember(Name="title")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string Title { get; set; } } @@ -365,8 +354,7 @@ public class VariantOptionDefinitions /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="definitions")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(1, 3)] public VariantOptionDefinition[] Definitions { get; set; } } @@ -381,8 +369,7 @@ public class VariantOptionDefinition /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(30)] + [System.ComponentModel.DataAnnotations.Length(1, 30)] public string Name { get; set; } /// @@ -392,8 +379,7 @@ public class VariantOptionDefinition /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="properties")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(99)] + [System.ComponentModel.DataAnnotations.Length(1, 99)] public VariantOptionProperties[] Properties { get; set; } } @@ -406,8 +392,7 @@ public class VariantOptionProperties /// Max length: 256 /// [System.Runtime.Serialization.DataMember(Name="imageUrl")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string ImageUrl { get; set; } /// @@ -417,8 +402,7 @@ public class VariantOptionProperties /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="value")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Value { get; set; } } @@ -431,8 +415,7 @@ public class VariantDTO /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="barcode")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] public string Barcode { get; set; } [System.Runtime.Serialization.DataMember(Name="costPrice")] @@ -443,8 +426,7 @@ public class VariantDTO /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] public string Description { get; set; } /// @@ -452,8 +434,7 @@ public class VariantDTO /// Max length: 256 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string Name { get; set; } /// @@ -461,8 +442,7 @@ public class VariantDTO /// Maximum items: 99 /// [System.Runtime.Serialization.DataMember(Name="options")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(99)] + [System.ComponentModel.DataAnnotations.Length(1, 99)] public VariantOption[] Options { get; set; } [System.Runtime.Serialization.DataMember(Name="presentation")] @@ -476,8 +456,7 @@ public class VariantDTO /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="sku")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(0, 64)] public string Sku { get; set; } /// @@ -1088,8 +1067,7 @@ public class VariantOption /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(30)] + [System.ComponentModel.DataAnnotations.Length(1, 30)] public string Name { get; set; } /// @@ -1099,8 +1077,7 @@ public class VariantOption /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="value")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Value { get; set; } } @@ -1215,8 +1192,7 @@ public class CreateSlugRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="productName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string ProductName { get; set; } } @@ -1232,8 +1208,7 @@ public class DiscountRequest /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] public string Description { get; set; } /// @@ -1241,8 +1216,7 @@ public class DiscountRequest /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="externalReference")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] public string ExternalReference { get; set; } [System.Runtime.Serialization.DataMember(Name="imageLookupKeys")] @@ -1253,8 +1227,7 @@ public class DiscountRequest /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(0, 64)] public string Name { get; set; } /// @@ -1422,8 +1395,7 @@ public class ProductResponse /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember(Name="categories")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(0, 1)] public string[] Categories { get; set; } [System.Runtime.Serialization.DataMember(Name="category")] @@ -1507,8 +1479,7 @@ public class ProductResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="variants")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(99)] + [System.ComponentModel.DataAnnotations.Length(1, 99)] public VariantDTO[] Variants { get; set; } [System.Runtime.Serialization.DataMember(Name="vatPercentage")] @@ -1556,8 +1527,7 @@ public class ProductCreateRequest /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] public string Description { get; set; } /// @@ -1565,8 +1535,7 @@ public class ProductCreateRequest /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="externalReference")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] public string ExternalReference { get; set; } [System.Runtime.Serialization.DataMember(Name="imageLookupKeys")] @@ -1582,8 +1551,7 @@ public class ProductCreateRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Name { get; set; } [System.Runtime.Serialization.DataMember(Name="online")] @@ -1606,8 +1574,7 @@ public class ProductCreateRequest /// Max length: 32 /// [System.Runtime.Serialization.DataMember(Name="unitName")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(0, 32)] public string UnitName { get; set; } /// @@ -1644,8 +1611,7 @@ public class RenameCategoryRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\S|\S.*\S")] public string Name { get; set; } } @@ -1675,8 +1641,7 @@ public class TaxRate /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="label")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(0, 512)] public string Label { get; set; } /// @@ -1725,8 +1690,7 @@ public class TaxRateUpdateRequest /// Max length: 512 /// [System.Runtime.Serialization.DataMember(Name="label")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(0, 512)] public string Label { get; set; } /// @@ -1748,8 +1712,7 @@ public class TaxRatesCreateRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="taxRates")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(15)] + [System.ComponentModel.DataAnnotations.Length(0, 15)] public TaxRate[] TaxRates { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/keyserv_solutions_1_4_5_.cs b/Tests/CsOpenApi3TestsResults/keyserv_solutions_1_4_5_.cs index b543acfc..0036d73d 100644 --- a/Tests/CsOpenApi3TestsResults/keyserv_solutions_1_4_5_.cs +++ b/Tests/CsOpenApi3TestsResults/keyserv_solutions_1_4_5_.cs @@ -100,8 +100,7 @@ public class KeyView /// Max length: 800 /// [System.Runtime.Serialization.DataMember(Name="callbackUrl")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(800)] + [System.ComponentModel.DataAnnotations.Length(0, 800)] public string CallbackUrl { get; set; } /// @@ -136,8 +135,7 @@ public class KeyView /// Max length: 80 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(80)] + [System.ComponentModel.DataAnnotations.Length(0, 80)] public string Name { get; set; } [System.Runtime.Serialization.DataMember(Name="serial")] @@ -179,8 +177,7 @@ public class ProductView /// Max length: 80 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(80)] + [System.ComponentModel.DataAnnotations.Length(0, 80)] public string Name { get; set; } [System.Runtime.Serialization.DataMember(Name="serial")] @@ -218,8 +215,7 @@ public class SubscriptionView /// Max length: 800 /// [System.Runtime.Serialization.DataMember(Name="callbackUrl")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(800)] + [System.ComponentModel.DataAnnotations.Length(0, 800)] public string CallbackUrl { get; set; } /// @@ -254,8 +250,7 @@ public class SubscriptionView /// Max length: 80 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(80)] + [System.ComponentModel.DataAnnotations.Length(0, 80)] public string Name { get; set; } [System.Runtime.Serialization.DataMember(Name="updated")] @@ -283,8 +278,7 @@ public class SubscriptionCreateModify /// Max length: 800 /// [System.Runtime.Serialization.DataMember(Name="callbackUrl")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(800)] + [System.ComponentModel.DataAnnotations.Length(0, 800)] public string CallbackUrl { get; set; } [System.Runtime.Serialization.DataMember(Name="custom")] @@ -307,8 +301,7 @@ public class SubscriptionCreateModify /// Max length: 80 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(80)] + [System.ComponentModel.DataAnnotations.Length(0, 80)] public string Name { get; set; } [System.Runtime.Serialization.DataMember(Name="serial")] diff --git a/Tests/CsOpenApi3TestsResults/klarna_com_payments_1_0_0_.cs b/Tests/CsOpenApi3TestsResults/klarna_com_payments_1_0_0_.cs index 56dfae16..cb1d6a6c 100644 --- a/Tests/CsOpenApi3TestsResults/klarna_com_payments_1_0_0_.cs +++ b/Tests/CsOpenApi3TestsResults/klarna_com_payments_1_0_0_.cs @@ -107,8 +107,7 @@ public class Address /// Max length: 99 /// [System.Runtime.Serialization.DataMember(Name="attention")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(99)] + [System.ComponentModel.DataAnnotations.Length(0, 99)] public string Attention { get; set; } /// @@ -117,8 +116,7 @@ public class Address /// Max length: 99 /// [System.Runtime.Serialization.DataMember(Name="city")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(99)] + [System.ComponentModel.DataAnnotations.Length(0, 99)] public string City { get; set; } /// @@ -135,8 +133,7 @@ public class Address /// Max length: 99 /// [System.Runtime.Serialization.DataMember(Name="email")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(99)] + [System.ComponentModel.DataAnnotations.Length(0, 99)] public string Email { get; set; } /// @@ -148,8 +145,7 @@ public class Address /// Max length: 99 /// [System.Runtime.Serialization.DataMember(Name="family_name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(99)] + [System.ComponentModel.DataAnnotations.Length(0, 99)] public string Family_name { get; set; } /// @@ -161,8 +157,7 @@ public class Address /// Max length: 99 /// [System.Runtime.Serialization.DataMember(Name="given_name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(99)] + [System.ComponentModel.DataAnnotations.Length(0, 99)] public string Given_name { get; set; } /// @@ -171,8 +166,7 @@ public class Address /// Max length: 99 /// [System.Runtime.Serialization.DataMember(Name="organization_name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(99)] + [System.ComponentModel.DataAnnotations.Length(0, 99)] public string Organization_name { get; set; } /// @@ -181,8 +175,7 @@ public class Address /// Max length: 99 /// [System.Runtime.Serialization.DataMember(Name="phone")] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(99)] + [System.ComponentModel.DataAnnotations.Length(5, 99)] public string Phone { get; set; } /// @@ -192,8 +185,7 @@ public class Address /// Max length: 10 /// [System.Runtime.Serialization.DataMember(Name="postal_code")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(0, 10)] public string Postal_code { get; set; } /// @@ -202,8 +194,7 @@ public class Address /// Max length: 99 /// [System.Runtime.Serialization.DataMember(Name="region")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(99)] + [System.ComponentModel.DataAnnotations.Length(0, 99)] public string Region { get; set; } /// @@ -214,8 +205,7 @@ public class Address /// Max length: 99 /// [System.Runtime.Serialization.DataMember(Name="street_address")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(99)] + [System.ComponentModel.DataAnnotations.Length(0, 99)] public string Street_address { get; set; } /// @@ -224,8 +214,7 @@ public class Address /// Max length: 99 /// [System.Runtime.Serialization.DataMember(Name="street_address2")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(99)] + [System.ComponentModel.DataAnnotations.Length(0, 99)] public string Street_address2 { get; set; } /// @@ -240,8 +229,7 @@ public class Address /// Max length: 20 /// [System.Runtime.Serialization.DataMember(Name="title")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(0, 20)] public string Title { get; set; } } @@ -341,8 +329,7 @@ public class Create_order_request /// Max length: 6000 /// [System.Runtime.Serialization.DataMember(Name="merchant_data")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(6000)] + [System.ComponentModel.DataAnnotations.Length(0, 6000)] public string Merchant_data { get; set; } /// @@ -351,8 +338,7 @@ public class Create_order_request /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="merchant_reference1")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Merchant_reference1 { get; set; } /// @@ -361,8 +347,7 @@ public class Create_order_request /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="merchant_reference2")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Merchant_reference2 { get; set; } [System.Runtime.Serialization.DataMember(Name="merchant_urls")] @@ -386,8 +371,7 @@ public class Create_order_request /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="order_lines")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] public Order_line[] Order_lines { get; set; } /// @@ -551,8 +535,7 @@ public class Merchant_urls /// Max length: 2000 /// [System.Runtime.Serialization.DataMember(Name="authorization")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2000)] + [System.ComponentModel.DataAnnotations.Length(0, 2000)] public string Authorization { get; set; } /// @@ -561,8 +544,7 @@ public class Merchant_urls /// Max length: 2000 /// [System.Runtime.Serialization.DataMember(Name="confirmation")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2000)] + [System.ComponentModel.DataAnnotations.Length(0, 2000)] public string Confirmation { get; set; } /// @@ -571,8 +553,7 @@ public class Merchant_urls /// Max length: 2000 /// [System.Runtime.Serialization.DataMember(Name="notification")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2000)] + [System.ComponentModel.DataAnnotations.Length(0, 2000)] public string Notification { get; set; } /// @@ -581,8 +562,7 @@ public class Merchant_urls /// Max length: 2000 /// [System.Runtime.Serialization.DataMember(Name="push")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2000)] + [System.ComponentModel.DataAnnotations.Length(0, 2000)] public string Push { get; set; } } @@ -597,8 +577,7 @@ public class Order_line /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="image_url")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] public string Image_url { get; set; } /// @@ -607,8 +586,7 @@ public class Order_line /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="merchant_data")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] public string Merchant_data { get; set; } /// @@ -619,8 +597,7 @@ public class Order_line /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } [System.Runtime.Serialization.DataMember(Name="product_identifiers")] @@ -632,8 +609,7 @@ public class Order_line /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="product_url")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] public string Product_url { get; set; } /// @@ -652,8 +628,7 @@ public class Order_line /// Max length: 8 /// [System.Runtime.Serialization.DataMember(Name="quantity_unit")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(8)] + [System.ComponentModel.DataAnnotations.Length(1, 8)] public string Quantity_unit { get; set; } /// @@ -662,8 +637,7 @@ public class Order_line /// Max length: 256 /// [System.Runtime.Serialization.DataMember(Name="reference")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string Reference { get; set; } [System.Runtime.Serialization.DataMember(Name="subscription")] @@ -740,8 +714,7 @@ public class Product_identifiers /// Max length: 70 /// [System.Runtime.Serialization.DataMember(Name="brand")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(0, 70)] public string Brand { get; set; } /// @@ -750,8 +723,7 @@ public class Product_identifiers /// Max length: 750 /// [System.Runtime.Serialization.DataMember(Name="category_path")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(750)] + [System.ComponentModel.DataAnnotations.Length(0, 750)] public string Category_path { get; set; } /// @@ -760,8 +732,7 @@ public class Product_identifiers /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="color")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(0, 64)] public string Color { get; set; } /// @@ -770,8 +741,7 @@ public class Product_identifiers /// Max length: 50 /// [System.Runtime.Serialization.DataMember(Name="global_trade_item_number")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public string Global_trade_item_number { get; set; } /// @@ -780,8 +750,7 @@ public class Product_identifiers /// Max length: 70 /// [System.Runtime.Serialization.DataMember(Name="manufacturer_part_number")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(0, 70)] public string Manufacturer_part_number { get; set; } /// @@ -790,8 +759,7 @@ public class Product_identifiers /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="size")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(0, 64)] public string Size { get; set; } } @@ -825,8 +793,7 @@ public class Subscription /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } } @@ -1059,8 +1026,7 @@ public class Merchant_session /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="client_token")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4096)] + [System.ComponentModel.DataAnnotations.Length(0, 4096)] public string Client_token { get; set; } /// @@ -1077,8 +1043,7 @@ public class Merchant_session /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="session_id")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Session_id { get; set; } } @@ -1181,8 +1146,7 @@ public class Session /// Max length: 4096 /// [System.Runtime.Serialization.DataMember(Name="client_token")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4096)] + [System.ComponentModel.DataAnnotations.Length(0, 4096)] public string Client_token { get; set; } /// @@ -1242,8 +1206,7 @@ public class Session /// Max length: 6000 /// [System.Runtime.Serialization.DataMember(Name="merchant_data")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(6000)] + [System.ComponentModel.DataAnnotations.Length(0, 6000)] public string Merchant_data { get; set; } /// @@ -1252,8 +1215,7 @@ public class Session /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="merchant_reference1")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Merchant_reference1 { get; set; } /// @@ -1262,8 +1224,7 @@ public class Session /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="merchant_reference2")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Merchant_reference2 { get; set; } [System.Runtime.Serialization.DataMember(Name="merchant_urls")] @@ -1286,8 +1247,7 @@ public class Session /// Maximum items: 1000 /// [System.Runtime.Serialization.DataMember(Name="order_lines")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] public Order_line[] Order_lines { get; set; } /// @@ -1386,8 +1346,7 @@ public class Session_create /// Max length: 4096 /// [System.Runtime.Serialization.DataMember(Name="client_token")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4096)] + [System.ComponentModel.DataAnnotations.Length(0, 4096)] public string Client_token { get; set; } /// @@ -1447,8 +1406,7 @@ public class Session_create /// Max length: 6000 /// [System.Runtime.Serialization.DataMember(Name="merchant_data")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(6000)] + [System.ComponentModel.DataAnnotations.Length(0, 6000)] public string Merchant_data { get; set; } /// @@ -1457,8 +1415,7 @@ public class Session_create /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="merchant_reference1")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Merchant_reference1 { get; set; } /// @@ -1467,8 +1424,7 @@ public class Session_create /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="merchant_reference2")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Merchant_reference2 { get; set; } [System.Runtime.Serialization.DataMember(Name="merchant_urls")] @@ -1495,8 +1451,7 @@ public class Session_create /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="order_lines")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] public Order_line[] Order_lines { get; set; } /// @@ -1571,8 +1526,7 @@ public class Session_read /// Max length: 4096 /// [System.Runtime.Serialization.DataMember(Name="client_token")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4096)] + [System.ComponentModel.DataAnnotations.Length(0, 4096)] public string Client_token { get; set; } /// @@ -1632,8 +1586,7 @@ public class Session_read /// Max length: 6000 /// [System.Runtime.Serialization.DataMember(Name="merchant_data")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(6000)] + [System.ComponentModel.DataAnnotations.Length(0, 6000)] public string Merchant_data { get; set; } /// @@ -1642,8 +1595,7 @@ public class Session_read /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="merchant_reference1")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Merchant_reference1 { get; set; } /// @@ -1652,8 +1604,7 @@ public class Session_read /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="merchant_reference2")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Merchant_reference2 { get; set; } [System.Runtime.Serialization.DataMember(Name="merchant_urls")] @@ -1676,8 +1627,7 @@ public class Session_read /// Maximum items: 1000 /// [System.Runtime.Serialization.DataMember(Name="order_lines")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] public Order_line[] Order_lines { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/linode_com_4_151_1_.cs b/Tests/CsOpenApi3TestsResults/linode_com_4_151_1_.cs index af274012..48a67bc5 100644 --- a/Tests/CsOpenApi3TestsResults/linode_com_4_151_1_.cs +++ b/Tests/CsOpenApi3TestsResults/linode_com_4_151_1_.cs @@ -559,8 +559,7 @@ public class Disk /// Max length: 48 /// [System.Runtime.Serialization.DataMember(Name="label")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(48)] + [System.ComponentModel.DataAnnotations.Length(1, 48)] public string Label { get; set; } /// @@ -671,8 +670,7 @@ public class CreditCard /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="card_number")] - [System.ComponentModel.DataAnnotations.MinLength(14)] - [System.ComponentModel.DataAnnotations.MaxLength(24)] + [System.ComponentModel.DataAnnotations.Length(14, 24)] public string Card_number { get; set; } /// @@ -684,8 +682,7 @@ public class CreditCard /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="cvv")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(3, 4)] public string Cvv { get; set; } /// @@ -719,8 +716,7 @@ public class CreditCard /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="expiry_year")] - [System.ComponentModel.DataAnnotations.MinLength(4)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(4, 4)] public int Expiry_year { get; set; } } @@ -820,8 +816,7 @@ public class Database /// Max length: 32 /// [System.Runtime.Serialization.DataMember(Name="label")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(3, 32)] public string Label { get; set; } /// @@ -1071,8 +1066,7 @@ public class DatabaseBackupSnapshot /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="label")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(30)] + [System.ComponentModel.DataAnnotations.Length(1, 30)] public string Label { get; set; } /// @@ -2126,8 +2120,7 @@ public class DiskRequest /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="root_pass")] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(7, 128)] public string Root_pass { get; set; } /// @@ -2188,8 +2181,7 @@ public class Domain /// Max length: 253 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(253)] + [System.ComponentModel.DataAnnotations.Length(1, 253)] public string Description { get; set; } /// @@ -2200,8 +2192,7 @@ public class Domain /// Pattern: \A(\*\.)?([a-zA-Z0-9-_]{1,63}\.)+([a-zA-Z]{2,3}\.)?([a-zA-Z]{2,16}|xn--[a-zA-Z0-9]+)\Z /// [System.Runtime.Serialization.DataMember(Name="domain")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(253)] + [System.ComponentModel.DataAnnotations.Length(1, 253)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\A(\*\.)?([a-zA-Z0-9-_]{1,63}\.)+([a-zA-Z]{2,3}\.)?([a-zA-Z]{2,16}|xn--[a-zA-Z0-9]+)\Z")] public string Domain1 { get; set; } @@ -2227,8 +2218,7 @@ public class Domain /// Max length: 50 /// [System.Runtime.Serialization.DataMember(Name="group")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string Group { get; set; } /// @@ -2379,8 +2369,7 @@ public class DomainRecord /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Name { get; set; } /// @@ -3337,8 +3326,7 @@ public class Firewall /// Pattern: ^[a-zA-Z]((?!--|__|..)[a-zA-Z0-9-_.])+$ /// [System.Runtime.Serialization.DataMember(Name="label")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(3, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z]((?!--|__|..)[a-zA-Z0-9-_.])+$")] public string Label { get; set; } @@ -3438,8 +3426,7 @@ public class FirewallRuleConfig /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Description { get; set; } /// @@ -3449,8 +3436,7 @@ public class FirewallRuleConfig /// Max length: 32 /// [System.Runtime.Serialization.DataMember(Name="label")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(3, 32)] public string Label { get; set; } /// @@ -4357,8 +4343,7 @@ public class Image /// Max length: 65000 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65000)] + [System.ComponentModel.DataAnnotations.Length(1, 65000)] public string Description { get; set; } /// @@ -4727,8 +4712,7 @@ public class LKECluster /// Max length: 32 /// [System.Runtime.Serialization.DataMember(Name="label")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] public string Label { get; set; } /// @@ -5107,8 +5091,7 @@ public class Linode /// Pattern: ^[a-zA-Z]((?!--|__|..)[a-zA-Z0-9-_.])+$ /// [System.Runtime.Serialization.DataMember(Name="label")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(3, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z]((?!--|__|..)[a-zA-Z0-9-_.])+$")] public string Label { get; set; } @@ -5508,8 +5491,7 @@ public class LinodeConfig /// Max length: 48 /// [System.Runtime.Serialization.DataMember(Name="label")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(48)] + [System.ComponentModel.DataAnnotations.Length(1, 48)] public string Label { get; set; } /// @@ -5622,8 +5604,7 @@ public class LinodeConfigInterface /// Pattern: /[a-z0-9-]+/ /// [System.Runtime.Serialization.DataMember(Name="label")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"/[a-z0-9-]+/")] public string Label { get; set; } @@ -6146,8 +6127,7 @@ public class LongviewClient /// Pattern: [a-zA-Z0-9-_]{3,32} /// [System.Runtime.Serialization.DataMember(Name="label")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(3, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9-_]{3,32}")] public string Label { get; set; } @@ -6427,8 +6407,7 @@ public class ManagedContact /// Max length: 50 /// [System.Runtime.Serialization.DataMember(Name="group")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(2, 50)] public string Group { get; set; } /// @@ -6446,8 +6425,7 @@ public class ManagedContact /// Pattern: [a-zA-Z0-9-_ ]{2,64} /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9-_ ]{2,64}")] public string Name { get; set; } @@ -6507,8 +6485,7 @@ public class ManagedCredential /// Pattern: [a-zA-Z0-9-_ \.]{2,75} /// [System.Runtime.Serialization.DataMember(Name="label")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(75)] + [System.ComponentModel.DataAnnotations.Length(2, 75)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9-_ \.]{2,75}")] public string Label { get; set; } @@ -6678,8 +6655,7 @@ public class ManagedLinodeSettingsSsh /// Max length: 32 /// [System.Runtime.Serialization.DataMember(Name="user")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(0, 32)] public string User { get; set; } } @@ -6702,8 +6678,7 @@ public class ManagedService /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="address")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(3, 100)] public string Address { get; set; } /// @@ -6713,8 +6688,7 @@ public class ManagedService /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="body")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string Body { get; set; } /// @@ -6724,8 +6698,7 @@ public class ManagedService /// Max length: 50 /// [System.Runtime.Serialization.DataMember(Name="consultation_group")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public string Consultation_group { get; set; } /// @@ -6756,8 +6729,7 @@ public class ManagedService /// Pattern: [a-zA-Z0-9-_ \.]{3,64} /// [System.Runtime.Serialization.DataMember(Name="label")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(3, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9-_ \.]{3,64}")] public string Label { get; set; } @@ -6895,8 +6867,7 @@ public class NodeBalancer /// Pattern: [a-zA-Z0-9-_]{3,32} /// [System.Runtime.Serialization.DataMember(Name="label")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(3, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9-_]{3,32}")] public string Label { get; set; } @@ -7303,8 +7274,7 @@ public class NodeBalancerNode /// Pattern: [a-zA-Z0-9-_.]{3,32} /// [System.Runtime.Serialization.DataMember(Name="label")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(3, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[a-zA-Z0-9-_.]{3,32}")] public string Label { get; set; } @@ -7604,8 +7574,7 @@ public class OAuthClient /// Max length: 512 /// [System.Runtime.Serialization.DataMember(Name="label")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(1, 512)] public string Label { get; set; } /// @@ -8209,8 +8178,7 @@ public class PersonalAccessToken /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="label")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Label { get; set; } /// @@ -8581,8 +8549,7 @@ public class SSHKey /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="label")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(0, 64)] public string Label { get; set; } /// @@ -8626,8 +8593,7 @@ public class SecurityQuestion /// Max length: 17 /// [System.Runtime.Serialization.DataMember(Name="response")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(17)] + [System.ComponentModel.DataAnnotations.Length(3, 17)] public string Response { get; set; } } @@ -8845,8 +8811,7 @@ public class StackScript /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="label")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(3, 128)] public string Label { get; set; } /// @@ -9055,8 +9020,7 @@ public class SupportTicket /// Max length: 65000 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65000)] + [System.ComponentModel.DataAnnotations.Length(1, 65000)] public string Description { get; set; } /// @@ -9107,8 +9071,7 @@ public class SupportTicket /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="summary")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string Summary { get; set; } /// @@ -9248,8 +9211,7 @@ public class SupportTicketRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65000)] + [System.ComponentModel.DataAnnotations.Length(1, 65000)] public string Description { get; set; } /// @@ -9321,8 +9283,7 @@ public class SupportTicketRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="summary")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string Summary { get; set; } /// @@ -9490,8 +9451,7 @@ public class User /// Pattern: ^[a-zA-Z0-9]((?![_-]{2,})[a-zA-Z0-9-_])+[a-zA-Z0-9]$ /// [System.Runtime.Serialization.DataMember(Name="username")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(3, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9]((?![_-]{2,})[a-zA-Z0-9-_])+[a-zA-Z0-9]$")] public string Username { get; set; } } @@ -9576,8 +9536,7 @@ public class Volume /// Pattern: ^[a-zA-Z]((?!--|__)[a-zA-Z0-9-_])+$ /// [System.Runtime.Serialization.DataMember(Name="label")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z]((?!--|__)[a-zA-Z0-9-_])+$")] public string Label { get; set; } @@ -21858,8 +21817,7 @@ public class CreatePromoCreditPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="promo_code")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] public string Promo_code { get; set; } } @@ -22039,8 +21997,7 @@ public class CloneDomainPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="domain")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(253)] + [System.ComponentModel.DataAnnotations.Length(1, 253)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\A(\*\.)?([a-zA-Z0-9-_]{1,63}\.)+([a-zA-Z]{2,3}\.)?([a-zA-Z]{2,16}|xn--[a-zA-Z0-9]+)\Z")] public string Domain { get; set; } } @@ -22278,8 +22235,7 @@ public class CreateSnapshotPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="label")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Label { get; set; } } @@ -22371,8 +22327,7 @@ public class CloneLinodeInstancePostBody /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="label")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(3, 64)] public string Label { get; set; } /// @@ -24024,8 +23979,7 @@ public class CreateTagPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="label")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(3, 50)] public string Label { get; set; } /// @@ -24103,8 +24057,7 @@ public class CreateVolumePostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="label")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z]((?!--|__)[a-zA-Z0-9-_])+$")] public string Label { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/logoraisr_com_v1_.cs b/Tests/CsOpenApi3TestsResults/logoraisr_com_v1_.cs index 85486d34..3a3d7271 100644 --- a/Tests/CsOpenApi3TestsResults/logoraisr_com_v1_.cs +++ b/Tests/CsOpenApi3TestsResults/logoraisr_com_v1_.cs @@ -82,8 +82,7 @@ public class PreviewResponse /// Max length: 256 /// [System.Runtime.Serialization.DataMember(Name="preview_img_url")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Preview_img_url { get; set; } } @@ -97,8 +96,7 @@ public class Process /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="crop")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Crop { get; set; } /// @@ -129,8 +127,7 @@ public class Process /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="resize")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Resize { get; set; } /// @@ -397,8 +394,7 @@ public class ResultResponse /// Max length: 256 /// [System.Runtime.Serialization.DataMember(Name="result_file_url")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Result_file_url { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/metadapi_com_1_0_.cs b/Tests/CsOpenApi3TestsResults/metadapi_com_1_0_.cs index ba0ae467..f37d9c24 100644 --- a/Tests/CsOpenApi3TestsResults/metadapi_com_1_0_.cs +++ b/Tests/CsOpenApi3TestsResults/metadapi_com_1_0_.cs @@ -466,8 +466,7 @@ public class Zipcode /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="zipCode")] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(5, 5)] public string ZipCode { get; set; } /// @@ -1039,8 +1038,7 @@ public class Get_msagroupsReturnDataStates /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="stateCode")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] public string StateCode { get; set; } /// @@ -1408,8 +1406,7 @@ public class Get_radiusReturnData /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="zipCode")] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(5, 5)] public string ZipCode { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/nbg_gr_v3_1_5_.cs b/Tests/CsOpenApi3TestsResults/nbg_gr_v3_1_5_.cs index a5d6c854..7004e36a 100644 --- a/Tests/CsOpenApi3TestsResults/nbg_gr_v3_1_5_.cs +++ b/Tests/CsOpenApi3TestsResults/nbg_gr_v3_1_5_.cs @@ -201,8 +201,7 @@ public class OBAccount6 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string AccountId { get; set; } /// @@ -235,8 +234,7 @@ public class OBAccount6 /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Description { get; set; } /// @@ -245,8 +243,7 @@ public class OBAccount6 /// Max length: 70 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Nickname { get; set; } /// @@ -272,8 +269,7 @@ public class OBCashAccount5 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -283,8 +279,7 @@ public class OBCashAccount5 /// Max length: 70 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } /// @@ -302,8 +297,7 @@ public class OBCashAccount5 /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -364,8 +358,7 @@ public class OBBranchAndFinancialInstitutionIdentification5 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Identification { get; set; } /// @@ -460,8 +453,7 @@ public class OBBeneficiary5 /// Max length: 40 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string AccountId { get; set; } /// @@ -517,8 +509,7 @@ public class OBCashAccount6 /// Max length: 256 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -528,8 +519,7 @@ public class OBCashAccount6 /// Max length: 70 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } /// @@ -555,8 +545,7 @@ public class OBCashBalance1 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string AccountId { get; set; } /// @@ -698,8 +687,7 @@ public class OBError1 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(1, 500)] public string Message { get; set; } /// @@ -708,8 +696,7 @@ public class OBError1 /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(1, 500)] public string Path { get; set; } } @@ -823,8 +810,7 @@ public class OBErrorResponse1 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string Code { get; set; } /// @@ -841,8 +827,7 @@ public class OBErrorResponse1 /// Max length: 40 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string Id { get; set; } /// @@ -853,8 +838,7 @@ public class OBErrorResponse1 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(1, 500)] public string Message { get; set; } } @@ -1078,8 +1062,7 @@ public class OBParty2 /// Max length: 70 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } /// @@ -1090,8 +1073,7 @@ public class OBParty2 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string PartyId { get; set; } } @@ -1412,8 +1394,7 @@ public class OBScheduledPayment3 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string AccountId { get; set; } [System.Runtime.Serialization.DataMember()] @@ -1425,8 +1406,7 @@ public class OBScheduledPayment3 /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string DebtorReference { get; set; } /// @@ -1444,8 +1424,7 @@ public class OBScheduledPayment3 /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Reference { get; set; } /// @@ -1464,8 +1443,7 @@ public class OBScheduledPayment3 /// Max length: 40 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string ScheduledPaymentId { get; set; } /// @@ -1498,8 +1476,7 @@ public class OBStandingOrder5 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string AccountId { get; set; } [System.Runtime.Serialization.DataMember()] @@ -1570,8 +1547,7 @@ public class OBStandingOrder5 /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Reference { get; set; } /// @@ -1580,8 +1556,7 @@ public class OBStandingOrder5 /// Max length: 40 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string StandingOrderId { get; set; } [System.Runtime.Serialization.DataMember()] @@ -1616,8 +1591,7 @@ public class OBStatement2 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string AccountId { get; set; } /// @@ -1656,8 +1630,7 @@ public class OBStatement2 /// Max length: 40 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string StatementId { get; set; } /// @@ -1666,8 +1639,7 @@ public class OBStatement2 /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string StatementReference { get; set; } /// @@ -1706,8 +1678,7 @@ public class OBTransaction6 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string AccountId { get; set; } /// @@ -1773,8 +1744,7 @@ public class OBTransaction6 /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(1, 500)] public string TransactionInformation { get; set; } /// @@ -1783,8 +1753,7 @@ public class OBTransaction6 /// Max length: 210 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(210)] + [System.ComponentModel.DataAnnotations.Length(1, 210)] public string TransactionReference { get; set; } /// @@ -1844,8 +1813,7 @@ public class ProprietaryBankTransactionCodeStructure1 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Code { get; set; } /// @@ -1854,8 +1822,7 @@ public class ProprietaryBankTransactionCodeStructure1 /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Issuer { get; set; } } @@ -2163,8 +2130,7 @@ public class SandboxBankAccountInfo /// Max length: 70 /// [System.Runtime.Serialization.DataMember(Name="alias")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Alias { get; set; } /// @@ -2189,8 +2155,7 @@ public class SandboxBankAccountInfo /// Max length: 35 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Description { get; set; } /// @@ -2261,8 +2226,7 @@ public class SandboxScheduledPayment /// Max length: 35 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Description { get; set; } /// @@ -2277,8 +2241,7 @@ public class SandboxScheduledPayment /// Max length: 35 /// [System.Runtime.Serialization.DataMember(Name="senderReference")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string SenderReference { get; set; } } @@ -2322,8 +2285,7 @@ public class SandboxStandingOrder /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="frequency")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Frequency { get; set; } /// @@ -2514,8 +2476,7 @@ public class SandboxCardInfo /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="expiration")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(7)] + [System.ComponentModel.DataAnnotations.Length(1, 7)] public string Expiration { get; set; } /// @@ -2540,8 +2501,7 @@ public class SandboxCardInfo /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="number")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(16)] + [System.ComponentModel.DataAnnotations.Length(1, 16)] public string Number { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/nexmo_com_dispatch_0_3_4_.cs b/Tests/CsOpenApi3TestsResults/nexmo_com_dispatch_0_3_4_.cs index a7d9d937..1b4c0ed2 100644 --- a/Tests/CsOpenApi3TestsResults/nexmo_com_dispatch_0_3_4_.cs +++ b/Tests/CsOpenApi3TestsResults/nexmo_com_dispatch_0_3_4_.cs @@ -28,8 +28,7 @@ public class AudioProperty /// Max length: 2000 /// [System.Runtime.Serialization.DataMember(Name="url")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2000)] + [System.ComponentModel.DataAnnotations.Length(1, 2000)] public string Url { get; set; } } @@ -119,8 +118,7 @@ public class FileProperty /// Max length: 3000 /// [System.Runtime.Serialization.DataMember(Name="caption")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(3000)] + [System.ComponentModel.DataAnnotations.Length(1, 3000)] public string Caption { get; set; } /// @@ -129,8 +127,7 @@ public class FileProperty /// Max length: 2000 /// [System.Runtime.Serialization.DataMember(Name="url")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2000)] + [System.ComponentModel.DataAnnotations.Length(1, 2000)] public string Url { get; set; } } @@ -151,8 +148,7 @@ public class FromProperty /// Max length: 50 /// [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string Id { get; set; } /// @@ -166,8 +162,7 @@ public class FromProperty /// Max length: 50 /// [System.Runtime.Serialization.DataMember(Name="number")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string Number { get; set; } /// @@ -206,8 +201,7 @@ public class ImageProperty /// Max length: 3000 /// [System.Runtime.Serialization.DataMember(Name="caption")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(3000)] + [System.ComponentModel.DataAnnotations.Length(1, 3000)] public string Caption { get; set; } /// @@ -216,8 +210,7 @@ public class ImageProperty /// Max length: 2000 /// [System.Runtime.Serialization.DataMember(Name="url")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2000)] + [System.ComponentModel.DataAnnotations.Length(1, 2000)] public string Url { get; set; } } @@ -270,8 +263,7 @@ public class MessagePropertyContent /// Max length: 4096 /// [System.Runtime.Serialization.DataMember(Name="text")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4096)] + [System.ComponentModel.DataAnnotations.Length(1, 4096)] public string Text { get; set; } /// @@ -360,8 +352,7 @@ public class VideoProperty /// Max length: 2000 /// [System.Runtime.Serialization.DataMember(Name="url")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2000)] + [System.ComponentModel.DataAnnotations.Length(1, 2000)] public string Url { get; set; } } @@ -561,8 +552,7 @@ public class ToProperty /// Max length: 50 /// [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string Id { get; set; } /// @@ -574,8 +564,7 @@ public class ToProperty /// Max length: 50 /// [System.Runtime.Serialization.DataMember(Name="number")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string Number { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/nexmo_com_numbers_1_0_20_.cs b/Tests/CsOpenApi3TestsResults/nexmo_com_numbers_1_0_20_.cs index 9e927315..b594b6be 100644 --- a/Tests/CsOpenApi3TestsResults/nexmo_com_numbers_1_0_20_.cs +++ b/Tests/CsOpenApi3TestsResults/nexmo_com_numbers_1_0_20_.cs @@ -68,8 +68,7 @@ public class Availablenumber /// Max length: 2 /// [System.Runtime.Serialization.DataMember(Name="country")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] public string Country { get; set; } /// @@ -118,8 +117,7 @@ public class Ownednumber /// Max length: 2 /// [System.Runtime.Serialization.DataMember(Name="country")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] public string Country { get; set; } /// @@ -183,8 +181,7 @@ public class Number_details /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="country")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] public string Country { get; set; } /// @@ -220,8 +217,7 @@ public class Number_details_update /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="country")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] public string Country { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/nexmo_com_sms_1_2_0_.cs b/Tests/CsOpenApi3TestsResults/nexmo_com_sms_1_2_0_.cs index d804fcc6..778bb59b 100644 --- a/Tests/CsOpenApi3TestsResults/nexmo_com_sms_1_2_0_.cs +++ b/Tests/CsOpenApi3TestsResults/nexmo_com_sms_1_2_0_.cs @@ -345,8 +345,7 @@ public class NewMessage /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="api_key")] - [System.ComponentModel.DataAnnotations.MinLength(8)] - [System.ComponentModel.DataAnnotations.MaxLength(8)] + [System.ComponentModel.DataAnnotations.Length(8, 8)] public string Api_key { get; set; } /// @@ -355,8 +354,7 @@ public class NewMessage /// Max length: 32 /// [System.Runtime.Serialization.DataMember(Name="api_secret")] - [System.ComponentModel.DataAnnotations.MinLength(6)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(6, 32)] public string Api_secret { get; set; } /// @@ -415,8 +413,7 @@ public class NewMessage /// Max length: 60 /// [System.Runtime.Serialization.DataMember(Name="sig")] - [System.ComponentModel.DataAnnotations.MinLength(16)] - [System.ComponentModel.DataAnnotations.MaxLength(60)] + [System.ComponentModel.DataAnnotations.Length(16, 60)] public string Sig { get; set; } /// @@ -440,8 +437,7 @@ public class NewMessage /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="to")] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(15)] + [System.ComponentModel.DataAnnotations.Length(7, 15)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\d{7,15}")] public string To { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/nexmo_com_verify_1_2_4_.cs b/Tests/CsOpenApi3TestsResults/nexmo_com_verify_1_2_4_.cs index 972b5623..78b4fe50 100644 --- a/Tests/CsOpenApi3TestsResults/nexmo_com_verify_1_2_4_.cs +++ b/Tests/CsOpenApi3TestsResults/nexmo_com_verify_1_2_4_.cs @@ -152,8 +152,7 @@ public class CheckRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="code")] - [System.ComponentModel.DataAnnotations.MinLength(4)] - [System.ComponentModel.DataAnnotations.MaxLength(6)] + [System.ComponentModel.DataAnnotations.Length(4, 6)] public string Code { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/nexmo_com_voice_1_3_10_.cs b/Tests/CsOpenApi3TestsResults/nexmo_com_voice_1_3_10_.cs index 5d98e012..1f5001e8 100644 --- a/Tests/CsOpenApi3TestsResults/nexmo_com_voice_1_3_10_.cs +++ b/Tests/CsOpenApi3TestsResults/nexmo_com_voice_1_3_10_.cs @@ -117,8 +117,7 @@ public class EndpointPhoneFrom /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="number")] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(15)] + [System.ComponentModel.DataAnnotations.Length(7, 15)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\d{7,15}")] public string Number { get; set; } @@ -260,8 +259,7 @@ public class EndpointPhoneTo /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="number")] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(15)] + [System.ComponentModel.DataAnnotations.Length(7, 15)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"\d{7,15}")] public string Number { get; set; } @@ -295,8 +293,7 @@ public class EndpointSip /// Max length: 50 /// [System.Runtime.Serialization.DataMember(Name="uri")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string Uri { get; set; } } @@ -356,8 +353,7 @@ public class EndpointWebsocket /// Max length: 50 /// [System.Runtime.Serialization.DataMember(Name="uri")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string Uri { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/nordigen_com_2_0__v2__.cs b/Tests/CsOpenApi3TestsResults/nordigen_com_2_0__v2__.cs index 1ed84b86..254d960e 100644 --- a/Tests/CsOpenApi3TestsResults/nordigen_com_2_0__v2__.cs +++ b/Tests/CsOpenApi3TestsResults/nordigen_com_2_0__v2__.cs @@ -579,8 +579,7 @@ public class CreditorAccountWriteRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="account")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Account { get; set; } /// @@ -626,8 +625,7 @@ public class CreditorAccountWriteRequest /// Max length: 140 /// [System.Runtime.Serialization.DataMember(Name="address_street")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Address_street { get; set; } /// @@ -636,8 +634,7 @@ public class CreditorAccountWriteRequest /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="agent")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Agent { get; set; } /// @@ -646,8 +643,7 @@ public class CreditorAccountWriteRequest /// Max length: 140 /// [System.Runtime.Serialization.DataMember(Name="agent_name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Agent_name { get; set; } /// @@ -658,8 +654,7 @@ public class CreditorAccountWriteRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="currency")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(1, 3)] public string Currency { get; set; } /// @@ -678,8 +673,7 @@ public class CreditorAccountWriteRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } /// @@ -688,8 +682,7 @@ public class CreditorAccountWriteRequest /// Max length: 30 /// [System.Runtime.Serialization.DataMember(Name="post_code")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(30)] + [System.ComponentModel.DataAnnotations.Length(1, 30)] public string Post_code { get; set; } /// @@ -792,8 +785,7 @@ public class DebtorAccountWriteRequest /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="account")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Account { get; set; } /// @@ -802,8 +794,7 @@ public class DebtorAccountWriteRequest /// Max length: 2 /// [System.Runtime.Serialization.DataMember(Name="address_country")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(1, 2)] public string Address_country { get; set; } /// @@ -812,8 +803,7 @@ public class DebtorAccountWriteRequest /// Max length: 140 /// [System.Runtime.Serialization.DataMember(Name="address_street")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Address_street { get; set; } /// @@ -822,8 +812,7 @@ public class DebtorAccountWriteRequest /// Max length: 3 /// [System.Runtime.Serialization.DataMember(Name="currency")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(1, 3)] public string Currency { get; set; } /// @@ -834,8 +823,7 @@ public class DebtorAccountWriteRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } /// @@ -844,8 +832,7 @@ public class DebtorAccountWriteRequest /// Max length: 30 /// [System.Runtime.Serialization.DataMember(Name="post_code")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(30)] + [System.ComponentModel.DataAnnotations.Length(1, 30)] public string Post_code { get; set; } /// @@ -864,8 +851,7 @@ public class DebtorAccountWriteRequest /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="type_number")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Type_number { get; set; } } @@ -1106,8 +1092,7 @@ public class InstructedAmountRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="currency")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(1, 3)] public string Currency { get; set; } } @@ -1743,8 +1728,7 @@ public class PaymentReadRequest /// Max length: 35 /// [System.Runtime.Serialization.DataMember(Name="custom_payment_id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Custom_payment_id { get; set; } /// @@ -1807,8 +1791,7 @@ public class PaymentReadRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="redirect")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string Redirect { get; set; } } @@ -2008,8 +1991,7 @@ public class PaymentWriteRequest /// Max length: 35 /// [System.Runtime.Serialization.DataMember(Name="custom_payment_id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Custom_payment_id { get; set; } /// @@ -2076,8 +2058,7 @@ public class PaymentWriteRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="redirect")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string Redirect { get; set; } /// @@ -2220,8 +2201,7 @@ public class RequisitionRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="redirect")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string Redirect { get; set; } /// @@ -2236,8 +2216,7 @@ public class RequisitionRequest /// Max length: 256 /// [System.Runtime.Serialization.DataMember(Name="reference")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Reference { get; set; } /// @@ -2254,8 +2233,7 @@ public class RequisitionRequest /// Max length: 5 /// [System.Runtime.Serialization.DataMember(Name="user_language")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(1, 5)] public string User_language { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/openbanking_org_uk_account_info_openapi_3_1_7_.cs b/Tests/CsOpenApi3TestsResults/openbanking_org_uk_account_info_openapi_3_1_7_.cs index b8c1d568..1d9a4d40 100644 --- a/Tests/CsOpenApi3TestsResults/openbanking_org_uk_account_info_openapi_3_1_7_.cs +++ b/Tests/CsOpenApi3TestsResults/openbanking_org_uk_account_info_openapi_3_1_7_.cs @@ -103,8 +103,7 @@ public class OBAccount4 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string AccountId { get; set; } /// @@ -141,8 +140,7 @@ public class OBAccount4 /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Description { get; set; } /// @@ -151,8 +149,7 @@ public class OBAccount4 /// Max length: 70 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Nickname { get; set; } /// @@ -187,8 +184,7 @@ public class OBAccount4Account /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -198,8 +194,7 @@ public class OBAccount4Account /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -217,8 +212,7 @@ public class OBAccount4Account /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -277,8 +271,7 @@ public class OBBranchAndFinancialInstitutionIdentification5_0 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Identification { get; set; } /// @@ -325,8 +318,7 @@ public class OBAccount4Basic /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string AccountId { get; set; } /// @@ -363,8 +355,7 @@ public class OBAccount4Basic /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Description { get; set; } /// @@ -373,8 +364,7 @@ public class OBAccount4Basic /// Max length: 70 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Nickname { get; set; } /// @@ -414,8 +404,7 @@ public class OBAccount4Detail /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string AccountId { get; set; } /// @@ -452,8 +441,7 @@ public class OBAccount4Detail /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Description { get; set; } /// @@ -462,8 +450,7 @@ public class OBAccount4Detail /// Max length: 70 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Nickname { get; set; } /// @@ -498,8 +485,7 @@ public class OBAccount4DetailAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -509,8 +495,7 @@ public class OBAccount4DetailAccount /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -528,8 +513,7 @@ public class OBAccount4DetailAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -557,8 +541,7 @@ public class OBAccount6 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string AccountId { get; set; } /// @@ -589,8 +572,7 @@ public class OBAccount6 /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Description { get; set; } /// @@ -607,8 +589,7 @@ public class OBAccount6 /// Max length: 70 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Nickname { get; set; } /// @@ -657,8 +638,7 @@ public class OBAccount6Account /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -668,8 +648,7 @@ public class OBAccount6Account /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -687,8 +666,7 @@ public class OBAccount6Account /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -707,8 +685,7 @@ public class OBAccount6Basic /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string AccountId { get; set; } /// @@ -745,8 +722,7 @@ public class OBAccount6Basic /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Description { get; set; } /// @@ -763,8 +739,7 @@ public class OBAccount6Basic /// Max length: 70 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Nickname { get; set; } /// @@ -818,8 +793,7 @@ public class OBAccount6Detail /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string AccountId { get; set; } /// @@ -856,8 +830,7 @@ public class OBAccount6Detail /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Description { get; set; } /// @@ -874,8 +847,7 @@ public class OBAccount6Detail /// Max length: 70 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Nickname { get; set; } /// @@ -924,8 +896,7 @@ public class OBAccount6DetailAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -935,8 +906,7 @@ public class OBAccount6DetailAccount /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -954,8 +924,7 @@ public class OBAccount6DetailAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -1527,8 +1496,7 @@ public class OBBCAData1CreditInterestTierBandSetTierBand /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Identification { get; set; } /// @@ -1649,8 +1617,7 @@ public class OBBCAData1CreditInterestTierBandSetTierBandOtherApplicationFrequenc /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -1662,8 +1629,7 @@ public class OBBCAData1CreditInterestTierBandSetTierBandOtherApplicationFrequenc /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -1674,8 +1640,7 @@ public class OBBCAData1CreditInterestTierBandSetTierBandOtherApplicationFrequenc /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -1689,8 +1654,7 @@ public class OBBCAData1CreditInterestTierBandSetTierBandOtherBankInterestType /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -1702,8 +1666,7 @@ public class OBBCAData1CreditInterestTierBandSetTierBandOtherBankInterestType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -1714,8 +1677,7 @@ public class OBBCAData1CreditInterestTierBandSetTierBandOtherBankInterestType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -1729,8 +1691,7 @@ public class OBBCAData1CreditInterestTierBandSetTierBandOtherCalculationFrequenc /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -1742,8 +1703,7 @@ public class OBBCAData1CreditInterestTierBandSetTierBandOtherCalculationFrequenc /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -1754,8 +1714,7 @@ public class OBBCAData1CreditInterestTierBandSetTierBandOtherCalculationFrequenc /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -1790,8 +1749,7 @@ public class OBBCAData1OtherFeesCharges /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string TariffName { get; set; } /// @@ -1899,8 +1857,7 @@ public class OBBCAData1OtherFeesChargesFeeChargeCapOtherFeeType /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -1912,8 +1869,7 @@ public class OBBCAData1OtherFeesChargesFeeChargeCapOtherFeeType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -1924,8 +1880,7 @@ public class OBBCAData1OtherFeesChargesFeeChargeCapOtherFeeType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -2235,8 +2190,7 @@ public class OBBCAData1OtherFeesChargesFeeChargeDetailFeeChargeCapOtherFeeType /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -2248,8 +2202,7 @@ public class OBBCAData1OtherFeesChargesFeeChargeDetailFeeChargeCapOtherFeeType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -2260,8 +2213,7 @@ public class OBBCAData1OtherFeesChargesFeeChargeDetailFeeChargeCapOtherFeeType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -2304,8 +2256,7 @@ public class OBBCAData1OtherFeesChargesFeeChargeDetailOtherApplicationFrequency /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -2317,8 +2268,7 @@ public class OBBCAData1OtherFeesChargesFeeChargeDetailOtherApplicationFrequency /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -2329,8 +2279,7 @@ public class OBBCAData1OtherFeesChargesFeeChargeDetailOtherApplicationFrequency /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -2344,8 +2293,7 @@ public class OBBCAData1OtherFeesChargesFeeChargeDetailOtherCalculationFrequency /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -2357,8 +2305,7 @@ public class OBBCAData1OtherFeesChargesFeeChargeDetailOtherCalculationFrequency /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -2369,8 +2316,7 @@ public class OBBCAData1OtherFeesChargesFeeChargeDetailOtherCalculationFrequency /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -2384,8 +2330,7 @@ public class OBBCAData1OtherFeesChargesFeeChargeDetailOtherFeeCategoryType /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -2397,8 +2342,7 @@ public class OBBCAData1OtherFeesChargesFeeChargeDetailOtherFeeCategoryType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -2409,8 +2353,7 @@ public class OBBCAData1OtherFeesChargesFeeChargeDetailOtherFeeCategoryType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -2424,8 +2367,7 @@ public class OBBCAData1OtherFeesChargesFeeChargeDetailOtherFeeRateType /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -2437,8 +2379,7 @@ public class OBBCAData1OtherFeesChargesFeeChargeDetailOtherFeeRateType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -2449,8 +2390,7 @@ public class OBBCAData1OtherFeesChargesFeeChargeDetailOtherFeeRateType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -2464,8 +2404,7 @@ public class OBBCAData1OtherFeesChargesFeeChargeDetailOtherFeeType /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -2477,8 +2416,7 @@ public class OBBCAData1OtherFeesChargesFeeChargeDetailOtherFeeType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -2497,8 +2435,7 @@ public class OBBCAData1OtherFeesChargesFeeChargeDetailOtherFeeType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -2512,8 +2449,7 @@ public class OBBCAData1OtherFeesChargesOtherTariffType /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -2525,8 +2461,7 @@ public class OBBCAData1OtherFeesChargesOtherTariffType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -2537,8 +2472,7 @@ public class OBBCAData1OtherFeesChargesOtherTariffType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -2599,8 +2533,7 @@ public class OBBCAData1OverdraftOverdraftTierBandSet /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Identification { get; set; } /// @@ -2750,8 +2683,7 @@ public class OBBCAData1OverdraftOverdraftTierBandSetOverdraftFeesChargesOverdraf /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -2763,8 +2695,7 @@ public class OBBCAData1OverdraftOverdraftTierBandSetOverdraftFeesChargesOverdraf /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -2775,8 +2706,7 @@ public class OBBCAData1OverdraftOverdraftTierBandSetOverdraftFeesChargesOverdraf /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -2935,8 +2865,7 @@ public class OBBCAData1OverdraftOverdraftTierBandSetOverdraftFeesChargesOverdraf /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -2948,8 +2877,7 @@ public class OBBCAData1OverdraftOverdraftTierBandSetOverdraftFeesChargesOverdraf /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -2960,8 +2888,7 @@ public class OBBCAData1OverdraftOverdraftTierBandSetOverdraftFeesChargesOverdraf /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -2975,8 +2902,7 @@ public class OBBCAData1OverdraftOverdraftTierBandSetOverdraftFeesChargesOverdraf /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -2988,8 +2914,7 @@ public class OBBCAData1OverdraftOverdraftTierBandSetOverdraftFeesChargesOverdraf /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -3000,8 +2925,7 @@ public class OBBCAData1OverdraftOverdraftTierBandSetOverdraftFeesChargesOverdraf /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -3015,8 +2939,7 @@ public class OBBCAData1OverdraftOverdraftTierBandSetOverdraftFeesChargesOverdraf /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -3028,8 +2951,7 @@ public class OBBCAData1OverdraftOverdraftTierBandSetOverdraftFeesChargesOverdraf /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -3040,8 +2962,7 @@ public class OBBCAData1OverdraftOverdraftTierBandSetOverdraftFeesChargesOverdraf /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -3055,8 +2976,7 @@ public class OBBCAData1OverdraftOverdraftTierBandSetOverdraftFeesChargesOverdraf /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -3068,8 +2988,7 @@ public class OBBCAData1OverdraftOverdraftTierBandSetOverdraftFeesChargesOverdraf /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -3080,8 +2999,7 @@ public class OBBCAData1OverdraftOverdraftTierBandSetOverdraftFeesChargesOverdraf /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -3172,8 +3090,7 @@ public class OBBCAData1OverdraftOverdraftTierBandSetOverdraftFeesChargesOverdraf /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -3185,8 +3102,7 @@ public class OBBCAData1OverdraftOverdraftTierBandSetOverdraftFeesChargesOverdraf /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -3197,8 +3113,7 @@ public class OBBCAData1OverdraftOverdraftTierBandSetOverdraftFeesChargesOverdraf /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -3244,8 +3159,7 @@ public class OBBCAData1OverdraftOverdraftTierBandSetOverdraftTierBand /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Identification { get; set; } /// @@ -3423,8 +3337,7 @@ public class OBBCAData1OverdraftOverdraftTierBandSetOverdraftTierBandOverdraftFe /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -3436,8 +3349,7 @@ public class OBBCAData1OverdraftOverdraftTierBandSetOverdraftTierBandOverdraftFe /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -3448,8 +3360,7 @@ public class OBBCAData1OverdraftOverdraftTierBandSetOverdraftTierBandOverdraftFe /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -3567,8 +3478,7 @@ public class OBBCAData1OverdraftOverdraftTierBandSetOverdraftTierBandOverdraftFe /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -3580,8 +3490,7 @@ public class OBBCAData1OverdraftOverdraftTierBandSetOverdraftTierBandOverdraftFe /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -3592,8 +3501,7 @@ public class OBBCAData1OverdraftOverdraftTierBandSetOverdraftTierBandOverdraftFe /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -3607,8 +3515,7 @@ public class OBBCAData1OverdraftOverdraftTierBandSetOverdraftTierBandOverdraftFe /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -3620,8 +3527,7 @@ public class OBBCAData1OverdraftOverdraftTierBandSetOverdraftTierBandOverdraftFe /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -3632,8 +3538,7 @@ public class OBBCAData1OverdraftOverdraftTierBandSetOverdraftTierBandOverdraftFe /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -3647,8 +3552,7 @@ public class OBBCAData1OverdraftOverdraftTierBandSetOverdraftTierBandOverdraftFe /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -3660,8 +3564,7 @@ public class OBBCAData1OverdraftOverdraftTierBandSetOverdraftTierBandOverdraftFe /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -3672,8 +3575,7 @@ public class OBBCAData1OverdraftOverdraftTierBandSetOverdraftTierBandOverdraftFe /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -3687,8 +3589,7 @@ public class OBBCAData1OverdraftOverdraftTierBandSetOverdraftTierBandOverdraftFe /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -3700,8 +3601,7 @@ public class OBBCAData1OverdraftOverdraftTierBandSetOverdraftTierBandOverdraftFe /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -3712,8 +3612,7 @@ public class OBBCAData1OverdraftOverdraftTierBandSetOverdraftTierBandOverdraftFe /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -3804,8 +3703,7 @@ public class OBBCAData1OverdraftOverdraftTierBandSetOverdraftTierBandOverdraftFe /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -3817,8 +3715,7 @@ public class OBBCAData1OverdraftOverdraftTierBandSetOverdraftTierBandOverdraftFe /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -3829,8 +3726,7 @@ public class OBBCAData1OverdraftOverdraftTierBandSetOverdraftTierBandOverdraftFe /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -3980,8 +3876,7 @@ public class OBBeneficiary5 /// Max length: 40 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string AccountId { get; set; } /// @@ -3990,8 +3885,7 @@ public class OBBeneficiary5 /// Max length: 40 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string BeneficiaryId { get; set; } /// @@ -4021,8 +3915,7 @@ public class OBBeneficiary5 /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Reference { get; set; } /// @@ -4058,8 +3951,7 @@ public class OBCashAccount5_0 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -4069,8 +3961,7 @@ public class OBCashAccount5_0 /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -4088,8 +3979,7 @@ public class OBCashAccount5_0 /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -4107,8 +3997,7 @@ public class OBBranchAndFinancialInstitutionIdentification6_0 /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Identification { get; set; } /// @@ -4117,8 +4006,7 @@ public class OBBranchAndFinancialInstitutionIdentification6_0 /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Name { get; set; } /// @@ -4146,8 +4034,7 @@ public class OBPostalAddress6 /// Maximum items: 7 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(7)] + [System.ComponentModel.DataAnnotations.Length(0, 7)] public string[] AddressLine { get; set; } /// @@ -4162,8 +4049,7 @@ public class OBPostalAddress6 /// Max length: 16 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(16)] + [System.ComponentModel.DataAnnotations.Length(1, 16)] public string BuildingNumber { get; set; } /// @@ -4180,8 +4066,7 @@ public class OBPostalAddress6 /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string CountrySubDivision { get; set; } /// @@ -4190,8 +4075,7 @@ public class OBPostalAddress6 /// Max length: 70 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Department { get; set; } /// @@ -4200,8 +4084,7 @@ public class OBPostalAddress6 /// Max length: 16 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(16)] + [System.ComponentModel.DataAnnotations.Length(1, 16)] public string PostCode { get; set; } /// @@ -4210,8 +4093,7 @@ public class OBPostalAddress6 /// Max length: 70 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string StreetName { get; set; } /// @@ -4220,8 +4102,7 @@ public class OBPostalAddress6 /// Max length: 70 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string SubDepartment { get; set; } /// @@ -4230,8 +4111,7 @@ public class OBPostalAddress6 /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string TownName { get; set; } } @@ -4253,8 +4133,7 @@ public class OBBeneficiary5Basic /// Max length: 40 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string AccountId { get; set; } /// @@ -4263,8 +4142,7 @@ public class OBBeneficiary5Basic /// Max length: 40 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string BeneficiaryId { get; set; } /// @@ -4281,8 +4159,7 @@ public class OBBeneficiary5Basic /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Reference { get; set; } /// @@ -4302,8 +4179,7 @@ public class OBBeneficiary5Detail /// Max length: 40 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string AccountId { get; set; } /// @@ -4312,8 +4188,7 @@ public class OBBeneficiary5Detail /// Max length: 40 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string BeneficiaryId { get; set; } /// @@ -4345,8 +4220,7 @@ public class OBBeneficiary5Detail /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Reference { get; set; } /// @@ -4386,8 +4260,7 @@ public class OBBranchAndFinancialInstitutionIdentification5_1 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Identification { get; set; } /// @@ -4412,8 +4285,7 @@ public class OBBranchAndFinancialInstitutionIdentification6_1 /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Identification { get; set; } /// @@ -4422,8 +4294,7 @@ public class OBBranchAndFinancialInstitutionIdentification6_1 /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Name { get; set; } /// @@ -4452,8 +4323,7 @@ public class OBBranchAndFinancialInstitutionIdentification6_2 /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Identification { get; set; } /// @@ -4462,8 +4332,7 @@ public class OBBranchAndFinancialInstitutionIdentification6_2 /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Name { get; set; } /// @@ -4494,8 +4363,7 @@ public class OBCashAccount5_1 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -4505,8 +4373,7 @@ public class OBCashAccount5_1 /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -4524,8 +4391,7 @@ public class OBCashAccount5_1 /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -4542,8 +4408,7 @@ public class OBCashAccount6_0 /// Max length: 256 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -4553,8 +4418,7 @@ public class OBCashAccount6_0 /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -4570,8 +4434,7 @@ public class OBCashAccount6_0 /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -4588,8 +4451,7 @@ public class OBCashAccount6_1 /// Max length: 256 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -4599,8 +4461,7 @@ public class OBCashAccount6_1 /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -4616,8 +4477,7 @@ public class OBCashAccount6_1 /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -4678,8 +4538,7 @@ public class OBCurrencyExchange5 /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string ContractIdentification { get; set; } /// @@ -4791,8 +4650,7 @@ public class OBError1 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(1, 500)] public string Message { get; set; } /// @@ -4801,8 +4659,7 @@ public class OBError1 /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(1, 500)] public string Path { get; set; } /// @@ -4827,8 +4684,7 @@ public class OBErrorResponse1 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string Code { get; set; } /// @@ -4846,8 +4702,7 @@ public class OBErrorResponse1 /// Max length: 40 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string Id { get; set; } /// @@ -4858,8 +4713,7 @@ public class OBErrorResponse1 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(1, 500)] public string Message { get; set; } } @@ -5004,8 +4858,7 @@ public class OBMerchantDetails1 /// Max length: 4 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(3, 4)] public string MerchantCategoryCode { get; set; } /// @@ -5014,8 +4867,7 @@ public class OBMerchantDetails1 /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string MerchantName { get; set; } } @@ -5171,8 +5023,7 @@ public class OBPCAData1CreditInterestTierBandSetTierBand /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Identification { get; set; } /// @@ -5288,8 +5139,7 @@ public class OBPCAData1CreditInterestTierBandSetTierBandOtherApplicationFrequenc /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -5301,8 +5151,7 @@ public class OBPCAData1CreditInterestTierBandSetTierBandOtherApplicationFrequenc /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -5313,8 +5162,7 @@ public class OBPCAData1CreditInterestTierBandSetTierBandOtherApplicationFrequenc /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -5328,8 +5176,7 @@ public class OBPCAData1CreditInterestTierBandSetTierBandOtherBankInterestType /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -5341,8 +5188,7 @@ public class OBPCAData1CreditInterestTierBandSetTierBandOtherBankInterestType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -5353,8 +5199,7 @@ public class OBPCAData1CreditInterestTierBandSetTierBandOtherBankInterestType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -5368,8 +5213,7 @@ public class OBPCAData1CreditInterestTierBandSetTierBandOtherCalculationFrequenc /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -5381,8 +5225,7 @@ public class OBPCAData1CreditInterestTierBandSetTierBandOtherCalculationFrequenc /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -5393,8 +5236,7 @@ public class OBPCAData1CreditInterestTierBandSetTierBandOtherCalculationFrequenc /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -5508,8 +5350,7 @@ public class OBPCAData1OtherFeesChargesFeeChargeCapOtherFeeType /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -5521,8 +5362,7 @@ public class OBPCAData1OtherFeesChargesFeeChargeCapOtherFeeType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -5533,8 +5373,7 @@ public class OBPCAData1OtherFeesChargesFeeChargeCapOtherFeeType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -5830,8 +5669,7 @@ public class OBPCAData1OtherFeesChargesFeeChargeDetailFeeChargeCapOtherFeeType /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -5843,8 +5681,7 @@ public class OBPCAData1OtherFeesChargesFeeChargeDetailFeeChargeCapOtherFeeType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -5855,8 +5692,7 @@ public class OBPCAData1OtherFeesChargesFeeChargeDetailFeeChargeCapOtherFeeType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -5887,8 +5723,7 @@ public class OBPCAData1OtherFeesChargesFeeChargeDetailOtherApplicationFrequency /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -5900,8 +5735,7 @@ public class OBPCAData1OtherFeesChargesFeeChargeDetailOtherApplicationFrequency /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -5912,8 +5746,7 @@ public class OBPCAData1OtherFeesChargesFeeChargeDetailOtherApplicationFrequency /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -5927,8 +5760,7 @@ public class OBPCAData1OtherFeesChargesFeeChargeDetailOtherCalculationFrequency /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -5940,8 +5772,7 @@ public class OBPCAData1OtherFeesChargesFeeChargeDetailOtherCalculationFrequency /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -5952,8 +5783,7 @@ public class OBPCAData1OtherFeesChargesFeeChargeDetailOtherCalculationFrequency /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -5967,8 +5797,7 @@ public class OBPCAData1OtherFeesChargesFeeChargeDetailOtherFeeCategoryType /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -5980,8 +5809,7 @@ public class OBPCAData1OtherFeesChargesFeeChargeDetailOtherFeeCategoryType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -5992,8 +5820,7 @@ public class OBPCAData1OtherFeesChargesFeeChargeDetailOtherFeeCategoryType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -6007,8 +5834,7 @@ public class OBPCAData1OtherFeesChargesFeeChargeDetailOtherFeeRateType /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -6020,8 +5846,7 @@ public class OBPCAData1OtherFeesChargesFeeChargeDetailOtherFeeRateType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -6032,8 +5857,7 @@ public class OBPCAData1OtherFeesChargesFeeChargeDetailOtherFeeRateType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -6047,8 +5871,7 @@ public class OBPCAData1OtherFeesChargesFeeChargeDetailOtherFeeType /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -6060,8 +5883,7 @@ public class OBPCAData1OtherFeesChargesFeeChargeDetailOtherFeeType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -6080,8 +5902,7 @@ public class OBPCAData1OtherFeesChargesFeeChargeDetailOtherFeeType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -6128,8 +5949,7 @@ public class OBPCAData1OverdraftOverdraftTierBandSet /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Identification { get; set; } /// @@ -6288,8 +6108,7 @@ public class OBPCAData1OverdraftOverdraftTierBandSetOverdraftFeesChargesOverdraf /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -6301,8 +6120,7 @@ public class OBPCAData1OverdraftOverdraftTierBandSetOverdraftFeesChargesOverdraf /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -6313,8 +6131,7 @@ public class OBPCAData1OverdraftOverdraftTierBandSetOverdraftFeesChargesOverdraf /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -6467,8 +6284,7 @@ public class OBPCAData1OverdraftOverdraftTierBandSetOverdraftFeesChargesOverdraf /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -6480,8 +6296,7 @@ public class OBPCAData1OverdraftOverdraftTierBandSetOverdraftFeesChargesOverdraf /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -6492,8 +6307,7 @@ public class OBPCAData1OverdraftOverdraftTierBandSetOverdraftFeesChargesOverdraf /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -6507,8 +6321,7 @@ public class OBPCAData1OverdraftOverdraftTierBandSetOverdraftFeesChargesOverdraf /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -6520,8 +6333,7 @@ public class OBPCAData1OverdraftOverdraftTierBandSetOverdraftFeesChargesOverdraf /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -6532,8 +6344,7 @@ public class OBPCAData1OverdraftOverdraftTierBandSetOverdraftFeesChargesOverdraf /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -6547,8 +6358,7 @@ public class OBPCAData1OverdraftOverdraftTierBandSetOverdraftFeesChargesOverdraf /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -6560,8 +6370,7 @@ public class OBPCAData1OverdraftOverdraftTierBandSetOverdraftFeesChargesOverdraf /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -6572,8 +6381,7 @@ public class OBPCAData1OverdraftOverdraftTierBandSetOverdraftFeesChargesOverdraf /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -6587,8 +6395,7 @@ public class OBPCAData1OverdraftOverdraftTierBandSetOverdraftFeesChargesOverdraf /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -6600,8 +6407,7 @@ public class OBPCAData1OverdraftOverdraftTierBandSetOverdraftFeesChargesOverdraf /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -6612,8 +6418,7 @@ public class OBPCAData1OverdraftOverdraftTierBandSetOverdraftFeesChargesOverdraf /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -6713,8 +6518,7 @@ public class OBPCAData1OverdraftOverdraftTierBandSetOverdraftFeesChargesOverdraf /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -6726,8 +6530,7 @@ public class OBPCAData1OverdraftOverdraftTierBandSetOverdraftFeesChargesOverdraf /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -6738,8 +6541,7 @@ public class OBPCAData1OverdraftOverdraftTierBandSetOverdraftFeesChargesOverdraf /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -6767,8 +6569,7 @@ public class OBPCAData1OverdraftOverdraftTierBandSetOverdraftTierBand /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Identification { get; set; } /// @@ -6932,8 +6733,7 @@ public class OBPCAData1OverdraftOverdraftTierBandSetOverdraftTierBandOverdraftFe /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -6945,8 +6745,7 @@ public class OBPCAData1OverdraftOverdraftTierBandSetOverdraftTierBandOverdraftFe /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -6957,8 +6756,7 @@ public class OBPCAData1OverdraftOverdraftTierBandSetOverdraftTierBandOverdraftFe /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -7070,8 +6868,7 @@ public class OBPCAData1OverdraftOverdraftTierBandSetOverdraftTierBandOverdraftFe /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -7083,8 +6880,7 @@ public class OBPCAData1OverdraftOverdraftTierBandSetOverdraftTierBandOverdraftFe /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -7095,8 +6891,7 @@ public class OBPCAData1OverdraftOverdraftTierBandSetOverdraftTierBandOverdraftFe /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -7110,8 +6905,7 @@ public class OBPCAData1OverdraftOverdraftTierBandSetOverdraftTierBandOverdraftFe /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -7123,8 +6917,7 @@ public class OBPCAData1OverdraftOverdraftTierBandSetOverdraftTierBandOverdraftFe /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -7135,8 +6928,7 @@ public class OBPCAData1OverdraftOverdraftTierBandSetOverdraftTierBandOverdraftFe /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -7150,8 +6942,7 @@ public class OBPCAData1OverdraftOverdraftTierBandSetOverdraftTierBandOverdraftFe /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -7163,8 +6954,7 @@ public class OBPCAData1OverdraftOverdraftTierBandSetOverdraftTierBandOverdraftFe /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -7175,8 +6965,7 @@ public class OBPCAData1OverdraftOverdraftTierBandSetOverdraftTierBandOverdraftFe /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -7190,8 +6979,7 @@ public class OBPCAData1OverdraftOverdraftTierBandSetOverdraftTierBandOverdraftFe /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -7203,8 +6991,7 @@ public class OBPCAData1OverdraftOverdraftTierBandSetOverdraftTierBandOverdraftFe /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -7215,8 +7002,7 @@ public class OBPCAData1OverdraftOverdraftTierBandSetOverdraftTierBandOverdraftFe /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -7316,8 +7102,7 @@ public class OBPCAData1OverdraftOverdraftTierBandSetOverdraftTierBandOverdraftFe /// Pattern: ^\w{0,4}$ /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(0, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^\w{0,4}$")] public string Code { get; set; } @@ -7329,8 +7114,7 @@ public class OBPCAData1OverdraftOverdraftTierBandSetOverdraftTierBandOverdraftFe /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -7341,8 +7125,7 @@ public class OBPCAData1OverdraftOverdraftTierBandSetOverdraftTierBandOverdraftFe /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -7423,8 +7206,7 @@ public class OBParty2 /// Max length: 256 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string EmailAddress { get; set; } /// @@ -7433,8 +7215,7 @@ public class OBParty2 /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string FullLegalName { get; set; } /// @@ -7457,8 +7238,7 @@ public class OBParty2 /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -7469,8 +7249,7 @@ public class OBParty2 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string PartyId { get; set; } /// @@ -7479,8 +7258,7 @@ public class OBParty2 /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string PartyNumber { get; set; } /// @@ -7512,8 +7290,7 @@ public class OBParty2Address /// Maximum items: 5 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(0, 5)] public string[] AddressLine { get; set; } /// @@ -7528,8 +7305,7 @@ public class OBParty2Address /// Max length: 16 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(16)] + [System.ComponentModel.DataAnnotations.Length(1, 16)] public string BuildingNumber { get; set; } /// @@ -7548,8 +7324,7 @@ public class OBParty2Address /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string CountrySubDivision { get; set; } /// @@ -7558,8 +7333,7 @@ public class OBParty2Address /// Max length: 16 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(16)] + [System.ComponentModel.DataAnnotations.Length(1, 16)] public string PostCode { get; set; } /// @@ -7568,8 +7342,7 @@ public class OBParty2Address /// Max length: 70 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string StreetName { get; set; } /// @@ -7578,8 +7351,7 @@ public class OBParty2Address /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string TownName { get; set; } } @@ -7608,8 +7380,7 @@ public class OBPartyRelationships1Account /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string Id { get; set; } /// @@ -7700,8 +7471,7 @@ public class OBReadBalance1DataBalance /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string AccountId { get; set; } /// @@ -7978,8 +7748,7 @@ public class OBReadConsentResponse1Data /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string ConsentId { get; set; } /// @@ -8087,8 +7856,7 @@ public class OBStatement2 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string AccountId { get; set; } /// @@ -8142,8 +7910,7 @@ public class OBStatement2 /// Max length: 40 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string StatementId { get; set; } [System.Runtime.Serialization.DataMember()] @@ -8158,8 +7925,7 @@ public class OBStatement2 /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string StatementReference { get; set; } [System.Runtime.Serialization.DataMember()] @@ -8271,8 +8037,7 @@ public class OBStatement2StatementFee /// Max length: 128 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Description { get; set; } /// @@ -8328,8 +8093,7 @@ public class OBStatement2StatementInterest /// Max length: 128 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Description { get; set; } /// @@ -8400,8 +8164,7 @@ public class OBStatement2StatementValue /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string Value { get; set; } } @@ -8428,8 +8191,7 @@ public class OBTransaction6 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string AccountId { get; set; } /// @@ -8438,8 +8200,7 @@ public class OBTransaction6 /// Max length: 70 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string AddressLine { get; set; } /// @@ -8558,8 +8319,7 @@ public class OBTransaction6 /// Max length: 210 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(210)] + [System.ComponentModel.DataAnnotations.Length(1, 210)] public string TransactionId { get; set; } /// @@ -8569,8 +8329,7 @@ public class OBTransaction6 /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(1, 500)] public string TransactionInformation { get; set; } /// @@ -8585,8 +8344,7 @@ public class OBTransaction6 /// Max length: 210 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(210)] + [System.ComponentModel.DataAnnotations.Length(1, 210)] public string TransactionReference { get; set; } /// @@ -8684,8 +8442,7 @@ public class OBTransactionCardInstrument1 /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string Identification { get; set; } /// @@ -8694,8 +8451,7 @@ public class OBTransactionCardInstrument1 /// Max length: 70 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -8751,8 +8507,7 @@ public class ProprietaryBankTransactionCodeStructure1 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Code { get; set; } /// @@ -8761,8 +8516,7 @@ public class ProprietaryBankTransactionCodeStructure1 /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Issuer { get; set; } } @@ -8819,8 +8573,7 @@ public class OBReadDirectDebit2DataDirectDebit /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string AccountId { get; set; } /// @@ -8829,8 +8582,7 @@ public class OBReadDirectDebit2DataDirectDebit /// Max length: 40 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string DirectDebitId { get; set; } /// @@ -8853,8 +8605,7 @@ public class OBReadDirectDebit2DataDirectDebit /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string MandateIdentification { get; set; } /// @@ -8865,8 +8616,7 @@ public class OBReadDirectDebit2DataDirectDebit /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } /// @@ -8926,8 +8676,7 @@ public class OBReadOffer1DataOffer /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string AccountId { get; set; } /// @@ -8942,8 +8691,7 @@ public class OBReadOffer1DataOffer /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(1, 500)] public string Description { get; set; } /// @@ -8966,8 +8714,7 @@ public class OBReadOffer1DataOffer /// Max length: 40 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string OfferId { get; set; } /// @@ -8998,8 +8745,7 @@ public class OBReadOffer1DataOffer /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(1, 500)] public string Term { get; set; } /// @@ -9008,8 +8754,7 @@ public class OBReadOffer1DataOffer /// Max length: 256 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string URL { get; set; } /// @@ -9195,8 +8940,7 @@ public class OBReadProduct2DataProduct /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string AccountId { get; set; } [System.Runtime.Serialization.DataMember()] @@ -9208,8 +8952,7 @@ public class OBReadProduct2DataProduct /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string MarketingStateId { get; set; } /// @@ -9227,8 +8970,7 @@ public class OBReadProduct2DataProduct /// Max length: 40 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string ProductId { get; set; } /// @@ -9237,8 +8979,7 @@ public class OBReadProduct2DataProduct /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string ProductName { get; set; } /// @@ -9255,8 +8996,7 @@ public class OBReadProduct2DataProduct /// Max length: 70 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string SecondaryProductId { get; set; } } @@ -9277,8 +9017,7 @@ public class OBReadProduct2DataProductOtherProductType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -9295,8 +9034,7 @@ public class OBReadProduct2DataProductOtherProductType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } [System.Runtime.Serialization.DataMember()] @@ -9435,8 +9173,7 @@ public class OB_OtherCodeType1_0 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -9447,8 +9184,7 @@ public class OB_OtherCodeType1_0 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -9514,8 +9250,7 @@ public class OBReadProduct2DataProductOtherProductTypeCreditInterestTierBandSetT /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Identification { get; set; } [System.Runtime.Serialization.DataMember()] @@ -9661,8 +9396,7 @@ public class OB_OtherCodeType1_1 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -9673,8 +9407,7 @@ public class OB_OtherCodeType1_1 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -9697,8 +9430,7 @@ public class OBReadProduct2DataProductOtherProductTypeCreditInterestTierBandSetT /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -9709,8 +9441,7 @@ public class OBReadProduct2DataProductOtherProductTypeCreditInterestTierBandSetT /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -9737,8 +9468,7 @@ public class OB_OtherCodeType1_2 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -9749,8 +9479,7 @@ public class OB_OtherCodeType1_2 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -9787,8 +9516,7 @@ public class OBReadProduct2DataProductOtherProductTypeLoanInterestLoanInterestTi /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Identification { get; set; } [System.Runtime.Serialization.DataMember()] @@ -9985,8 +9713,7 @@ public class OBReadProduct2DataProductOtherProductTypeLoanInterestLoanInterestTi /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -9997,8 +9724,7 @@ public class OBReadProduct2DataProductOtherProductTypeLoanInterestLoanInterestTi /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -10140,8 +9866,7 @@ public class OB_OtherCodeType1_6 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -10152,8 +9877,7 @@ public class OB_OtherCodeType1_6 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -10180,8 +9904,7 @@ public class OB_OtherCodeType1_7 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -10192,8 +9915,7 @@ public class OB_OtherCodeType1_7 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -10220,8 +9942,7 @@ public class OB_OtherCodeType1_5 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -10232,8 +9953,7 @@ public class OB_OtherCodeType1_5 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -10260,8 +9980,7 @@ public class OB_OtherFeeChargeDetailType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -10280,8 +9999,7 @@ public class OB_OtherFeeChargeDetailType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -10316,8 +10034,7 @@ public class OBReadProduct2DataProductOtherProductTypeLoanInterestLoanInterestTi /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Identification { get; set; } [System.Runtime.Serialization.DataMember()] @@ -10486,8 +10203,7 @@ public class OBReadProduct2DataProductOtherProductTypeLoanInterestLoanInterestTi /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -10498,8 +10214,7 @@ public class OBReadProduct2DataProductOtherProductTypeLoanInterestLoanInterestTi /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -10631,8 +10346,7 @@ public class OBReadProduct2DataProductOtherProductTypeLoanInterestLoanInterestTi /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -10643,8 +10357,7 @@ public class OBReadProduct2DataProductOtherProductTypeLoanInterestLoanInterestTi /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -10675,8 +10388,7 @@ public class OBReadProduct2DataProductOtherProductTypeOtherFeesCharges /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string TariffName { get; set; } /// @@ -10752,8 +10464,7 @@ public class OBReadProduct2DataProductOtherProductTypeOtherFeesChargesFeeChargeC /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -10764,8 +10475,7 @@ public class OBReadProduct2DataProductOtherProductTypeOtherFeesChargesFeeChargeC /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -10972,8 +10682,7 @@ public class OBReadProduct2DataProductOtherProductTypeOtherFeesChargesFeeChargeD /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -10984,8 +10693,7 @@ public class OBReadProduct2DataProductOtherProductTypeOtherFeesChargesFeeChargeD /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -11012,8 +10720,7 @@ public class OB_OtherCodeType1_8 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -11024,8 +10731,7 @@ public class OB_OtherCodeType1_8 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -11048,8 +10754,7 @@ public class OBReadProduct2DataProductOtherProductTypeOtherFeesChargesOtherTarif /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -11060,8 +10765,7 @@ public class OBReadProduct2DataProductOtherProductTypeOtherFeesChargesOtherTarif /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -11118,8 +10822,7 @@ public class OBReadProduct2DataProductOtherProductTypeOverdraftOverdraftTierBand /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Identification { get; set; } [System.Runtime.Serialization.DataMember()] @@ -11237,8 +10940,7 @@ public class OBReadProduct2DataProductOtherProductTypeOverdraftOverdraftTierBand /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -11249,8 +10951,7 @@ public class OBReadProduct2DataProductOtherProductTypeOverdraftOverdraftTierBand /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -11416,8 +11117,7 @@ public class OB_OtherCodeType1_4 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -11428,8 +11128,7 @@ public class OB_OtherCodeType1_4 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -11456,8 +11155,7 @@ public class OB_OtherCodeType1_3 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -11468,8 +11166,7 @@ public class OB_OtherCodeType1_3 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -11539,8 +11236,7 @@ public class OBReadProduct2DataProductOtherProductTypeOverdraftOverdraftTierBand /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -11551,8 +11247,7 @@ public class OBReadProduct2DataProductOtherProductTypeOverdraftOverdraftTierBand /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -11598,8 +11293,7 @@ public class OBReadProduct2DataProductOtherProductTypeOverdraftOverdraftTierBand /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Identification { get; set; } [System.Runtime.Serialization.DataMember()] @@ -11715,8 +11409,7 @@ public class OBReadProduct2DataProductOtherProductTypeOverdraftOverdraftTierBand /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -11727,8 +11420,7 @@ public class OBReadProduct2DataProductOtherProductTypeOverdraftOverdraftTierBand /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -11896,8 +11588,7 @@ public class OBReadProduct2DataProductOtherProductTypeOverdraftOverdraftTierBand /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -11908,8 +11599,7 @@ public class OBReadProduct2DataProductOtherProductTypeOverdraftOverdraftTierBand /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -12057,8 +11747,7 @@ public class OBReadProduct2DataProductOtherProductTypeRepaymentOtherAmountType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -12069,8 +11758,7 @@ public class OBReadProduct2DataProductOtherProductTypeRepaymentOtherAmountType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -12093,8 +11781,7 @@ public class OBReadProduct2DataProductOtherProductTypeRepaymentOtherRepaymentFre /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -12105,8 +11792,7 @@ public class OBReadProduct2DataProductOtherProductTypeRepaymentOtherRepaymentFre /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -12129,8 +11815,7 @@ public class OBReadProduct2DataProductOtherProductTypeRepaymentOtherRepaymentTyp /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -12141,8 +11826,7 @@ public class OBReadProduct2DataProductOtherProductTypeRepaymentOtherRepaymentTyp /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -12228,8 +11912,7 @@ public class OBReadProduct2DataProductOtherProductTypeRepaymentRepaymentFeeCharg /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Description { get; set; } /// @@ -12240,8 +11923,7 @@ public class OBReadProduct2DataProductOtherProductTypeRepaymentRepaymentFeeCharg /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Name { get; set; } } @@ -12486,8 +12168,7 @@ public class OBScheduledPayment3 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string AccountId { get; set; } /// @@ -12509,8 +12190,7 @@ public class OBScheduledPayment3 /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string DebtorReference { get; set; } /// @@ -12530,8 +12210,7 @@ public class OBScheduledPayment3 /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Reference { get; set; } /// @@ -12550,8 +12229,7 @@ public class OBScheduledPayment3 /// Max length: 40 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string ScheduledPaymentId { get; set; } /// @@ -12606,8 +12284,7 @@ public class OBStandingOrder6 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string AccountId { get; set; } /// @@ -12726,8 +12403,7 @@ public class OBStandingOrder6 /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string NumberOfPayments { get; set; } /// @@ -12738,8 +12414,7 @@ public class OBStandingOrder6 /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Reference { get; set; } /// @@ -12748,8 +12423,7 @@ public class OBStandingOrder6 /// Max length: 40 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string StandingOrderId { get; set; } /// @@ -12825,8 +12499,7 @@ public class OBScheduledPayment3Basic /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string AccountId { get; set; } /// @@ -12835,8 +12508,7 @@ public class OBScheduledPayment3Basic /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string DebtorReference { get; set; } /// @@ -12856,8 +12528,7 @@ public class OBScheduledPayment3Basic /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Reference { get; set; } /// @@ -12876,8 +12547,7 @@ public class OBScheduledPayment3Basic /// Max length: 40 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string ScheduledPaymentId { get; set; } /// @@ -12901,8 +12571,7 @@ public class OBScheduledPayment3Detail /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string AccountId { get; set; } /// @@ -12926,8 +12595,7 @@ public class OBScheduledPayment3Detail /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string DebtorReference { get; set; } /// @@ -12947,8 +12615,7 @@ public class OBScheduledPayment3Detail /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Reference { get; set; } /// @@ -12967,8 +12634,7 @@ public class OBScheduledPayment3Detail /// Max length: 40 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string ScheduledPaymentId { get; set; } /// @@ -12992,8 +12658,7 @@ public class OBStandingOrder6Basic /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string AccountId { get; set; } /// @@ -13099,8 +12764,7 @@ public class OBStandingOrder6Basic /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string NumberOfPayments { get; set; } /// @@ -13111,8 +12775,7 @@ public class OBStandingOrder6Basic /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Reference { get; set; } /// @@ -13121,8 +12784,7 @@ public class OBStandingOrder6Basic /// Max length: 40 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string StandingOrderId { get; set; } /// @@ -13150,8 +12812,7 @@ public class OBStandingOrder6Detail /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string AccountId { get; set; } /// @@ -13272,8 +12933,7 @@ public class OBStandingOrder6Detail /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string NumberOfPayments { get; set; } /// @@ -13284,8 +12944,7 @@ public class OBStandingOrder6Detail /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Reference { get; set; } /// @@ -13294,8 +12953,7 @@ public class OBStandingOrder6Detail /// Max length: 40 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string StandingOrderId { get; set; } /// @@ -13326,8 +12984,7 @@ public class OBStatement2Basic /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string AccountId { get; set; } /// @@ -13378,8 +13035,7 @@ public class OBStatement2Basic /// Max length: 40 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string StatementId { get; set; } [System.Runtime.Serialization.DataMember()] @@ -13394,8 +13050,7 @@ public class OBStatement2Basic /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string StatementReference { get; set; } [System.Runtime.Serialization.DataMember()] @@ -13478,8 +13133,7 @@ public class OBStatement2BasicStatementFee /// Max length: 128 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Description { get; set; } /// @@ -13535,8 +13189,7 @@ public class OBStatement2BasicStatementInterest /// Max length: 128 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Description { get; set; } /// @@ -13607,8 +13260,7 @@ public class OBStatement2BasicStatementValue /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string Value { get; set; } } @@ -13627,8 +13279,7 @@ public class OBStatement2Detail /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string AccountId { get; set; } /// @@ -13682,8 +13333,7 @@ public class OBStatement2Detail /// Max length: 40 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string StatementId { get; set; } [System.Runtime.Serialization.DataMember()] @@ -13698,8 +13348,7 @@ public class OBStatement2Detail /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string StatementReference { get; set; } [System.Runtime.Serialization.DataMember()] @@ -13811,8 +13460,7 @@ public class OBStatement2DetailStatementFee /// Max length: 128 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Description { get; set; } /// @@ -13868,8 +13516,7 @@ public class OBStatement2DetailStatementInterest /// Max length: 128 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Description { get; set; } /// @@ -13940,8 +13587,7 @@ public class OBStatement2DetailStatementValue /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string Value { get; set; } } @@ -13960,8 +13606,7 @@ public class OBTransaction6Basic /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string AccountId { get; set; } /// @@ -13970,8 +13615,7 @@ public class OBTransaction6Basic /// Max length: 70 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string AddressLine { get; set; } /// @@ -14054,8 +13698,7 @@ public class OBTransaction6Basic /// Max length: 210 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(210)] + [System.ComponentModel.DataAnnotations.Length(1, 210)] public string TransactionId { get; set; } /// @@ -14070,8 +13713,7 @@ public class OBTransaction6Basic /// Max length: 210 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(210)] + [System.ComponentModel.DataAnnotations.Length(1, 210)] public string TransactionReference { get; set; } /// @@ -14100,8 +13742,7 @@ public class OBTransaction6Detail /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string AccountId { get; set; } /// @@ -14110,8 +13751,7 @@ public class OBTransaction6Detail /// Max length: 70 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string AddressLine { get; set; } /// @@ -14230,8 +13870,7 @@ public class OBTransaction6Detail /// Max length: 210 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(210)] + [System.ComponentModel.DataAnnotations.Length(1, 210)] public string TransactionId { get; set; } /// @@ -14241,8 +13880,7 @@ public class OBTransaction6Detail /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(1, 500)] public string TransactionInformation { get; set; } /// @@ -14257,8 +13895,7 @@ public class OBTransaction6Detail /// Max length: 210 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(210)] + [System.ComponentModel.DataAnnotations.Length(1, 210)] public string TransactionReference { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/openbanking_org_uk_confirmation_funds_openapi_3_1_7_.cs b/Tests/CsOpenApi3TestsResults/openbanking_org_uk_confirmation_funds_openapi_3_1_7_.cs index af2ebd61..8b745649 100644 --- a/Tests/CsOpenApi3TestsResults/openbanking_org_uk_confirmation_funds_openapi_3_1_7_.cs +++ b/Tests/CsOpenApi3TestsResults/openbanking_org_uk_confirmation_funds_openapi_3_1_7_.cs @@ -93,8 +93,7 @@ public class OBError1 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(1, 500)] public string Message { get; set; } /// @@ -103,8 +102,7 @@ public class OBError1 /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(1, 500)] public string Path { get; set; } /// @@ -129,8 +127,7 @@ public class OBErrorResponse1 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string Code { get; set; } /// @@ -148,8 +145,7 @@ public class OBErrorResponse1 /// Max length: 40 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string Id { get; set; } /// @@ -160,8 +156,7 @@ public class OBErrorResponse1 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(1, 500)] public string Message { get; set; } } @@ -188,8 +183,7 @@ public class OBFundsConfirmation1Data /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string ConsentId { get; set; } /// @@ -208,8 +202,7 @@ public class OBFundsConfirmation1Data /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Reference { get; set; } } @@ -281,8 +274,7 @@ public class OBFundsConfirmationConsent1DataDebtorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -292,8 +284,7 @@ public class OBFundsConfirmationConsent1DataDebtorAccount /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -311,8 +302,7 @@ public class OBFundsConfirmationConsent1DataDebtorAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -351,8 +341,7 @@ public class OBFundsConfirmationConsentResponse1Data /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string ConsentId { get; set; } /// @@ -412,8 +401,7 @@ public class OBFundsConfirmationConsentResponse1DataDebtorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -423,8 +411,7 @@ public class OBFundsConfirmationConsentResponse1DataDebtorAccount /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -442,8 +429,7 @@ public class OBFundsConfirmationConsentResponse1DataDebtorAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -499,8 +485,7 @@ public class OBFundsConfirmationResponse1Data /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string ConsentId { get; set; } /// @@ -529,8 +514,7 @@ public class OBFundsConfirmationResponse1Data /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string FundsConfirmationId { get; set; } /// @@ -549,8 +533,7 @@ public class OBFundsConfirmationResponse1Data /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Reference { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/openbanking_org_uk_event_notifications_openapi_3_1_7_.cs b/Tests/CsOpenApi3TestsResults/openbanking_org_uk_event_notifications_openapi_3_1_7_.cs index db55cb7c..360ad008 100644 --- a/Tests/CsOpenApi3TestsResults/openbanking_org_uk_event_notifications_openapi_3_1_7_.cs +++ b/Tests/CsOpenApi3TestsResults/openbanking_org_uk_event_notifications_openapi_3_1_7_.cs @@ -65,8 +65,7 @@ public class OBEventSubject1 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="http://openbanking.org.uk/rid")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Http_SlashSlashopenbanking_org_ukSlashrid { get; set; } /// @@ -87,8 +86,7 @@ public class OBEventSubject1 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="http://openbanking.org.uk/rty")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Http_SlashSlashopenbanking_org_ukSlashrty { get; set; } /// @@ -99,8 +97,7 @@ public class OBEventSubject1 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="subject_type")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Subject_type { get; set; } } @@ -127,8 +124,7 @@ public class OBEventLink1 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="version")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public string Version { get; set; } } @@ -147,8 +143,7 @@ public class OBEventNotification1 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="aud")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Aud { get; set; } /// @@ -185,8 +180,7 @@ public class OBEventNotification1 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="jti")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Jti { get; set; } /// @@ -215,8 +209,7 @@ public class OBEventNotification1 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="txn")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Txn { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/openbanking_org_uk_payment_initiation_openapi_3_1_7_.cs b/Tests/CsOpenApi3TestsResults/openbanking_org_uk_payment_initiation_openapi_3_1_7_.cs index ad886251..5d270b28 100644 --- a/Tests/CsOpenApi3TestsResults/openbanking_org_uk_payment_initiation_openapi_3_1_7_.cs +++ b/Tests/CsOpenApi3TestsResults/openbanking_org_uk_payment_initiation_openapi_3_1_7_.cs @@ -249,8 +249,7 @@ public class OBError1 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(1, 500)] public string Message { get; set; } /// @@ -259,8 +258,7 @@ public class OBError1 /// Max length: 500 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(1, 500)] public string Path { get; set; } /// @@ -285,8 +283,7 @@ public class OBErrorResponse1 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string Code { get; set; } /// @@ -304,8 +301,7 @@ public class OBErrorResponse1 /// Max length: 40 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string Id { get; set; } /// @@ -316,8 +312,7 @@ public class OBErrorResponse1 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(1, 500)] public string Message { get; set; } } @@ -333,8 +328,7 @@ public class OBPostalAddress6 /// Maximum items: 7 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(7)] + [System.ComponentModel.DataAnnotations.Length(0, 7)] public string[] AddressLine { get; set; } /// @@ -349,8 +343,7 @@ public class OBPostalAddress6 /// Max length: 16 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(16)] + [System.ComponentModel.DataAnnotations.Length(1, 16)] public string BuildingNumber { get; set; } /// @@ -367,8 +360,7 @@ public class OBPostalAddress6 /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string CountrySubDivision { get; set; } /// @@ -377,8 +369,7 @@ public class OBPostalAddress6 /// Max length: 70 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string Department { get; set; } /// @@ -387,8 +378,7 @@ public class OBPostalAddress6 /// Max length: 16 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(16)] + [System.ComponentModel.DataAnnotations.Length(1, 16)] public string PostCode { get; set; } /// @@ -397,8 +387,7 @@ public class OBPostalAddress6 /// Max length: 70 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string StreetName { get; set; } /// @@ -407,8 +396,7 @@ public class OBPostalAddress6 /// Max length: 70 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string SubDepartment { get; set; } /// @@ -417,8 +405,7 @@ public class OBPostalAddress6 /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string TownName { get; set; } } @@ -441,8 +428,7 @@ public class OBRisk1 /// Max length: 4 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(3, 4)] public string MerchantCategoryCode { get; set; } /// @@ -451,8 +437,7 @@ public class OBRisk1 /// Max length: 70 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string MerchantCustomerIdentification { get; set; } /// @@ -470,8 +455,7 @@ public class OBRisk1DeliveryAddress /// Maximum items: 2 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(0, 2)] public string[] AddressLine { get; set; } /// @@ -480,8 +464,7 @@ public class OBRisk1DeliveryAddress /// Max length: 16 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(16)] + [System.ComponentModel.DataAnnotations.Length(1, 16)] public string BuildingNumber { get; set; } /// @@ -500,8 +483,7 @@ public class OBRisk1DeliveryAddress /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string CountrySubDivision { get; set; } /// @@ -510,8 +492,7 @@ public class OBRisk1DeliveryAddress /// Max length: 16 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(16)] + [System.ComponentModel.DataAnnotations.Length(1, 16)] public string PostCode { get; set; } /// @@ -520,8 +501,7 @@ public class OBRisk1DeliveryAddress /// Max length: 70 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(70)] + [System.ComponentModel.DataAnnotations.Length(1, 70)] public string StreetName { get; set; } /// @@ -532,8 +512,7 @@ public class OBRisk1DeliveryAddress /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string TownName { get; set; } } @@ -579,8 +558,7 @@ public class OBSCASupportData1 /// Max length: 40 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string ReferencePaymentOrderId { get; set; } /// @@ -666,8 +644,7 @@ public class OBWriteDomestic2Data /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string ConsentId { get; set; } /// @@ -712,8 +689,7 @@ public class OBWriteDomestic2DataInitiation /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string EndToEndIdentification { get; set; } /// @@ -734,8 +710,7 @@ public class OBWriteDomestic2DataInitiation /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string InstructionIdentification { get; set; } /// @@ -769,8 +744,7 @@ public class OBWriteDomestic2DataInitiationCreditorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -783,8 +757,7 @@ public class OBWriteDomestic2DataInitiationCreditorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -802,8 +775,7 @@ public class OBWriteDomestic2DataInitiationCreditorAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -818,8 +790,7 @@ public class OBWriteDomestic2DataInitiationDebtorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -829,8 +800,7 @@ public class OBWriteDomestic2DataInitiationDebtorAccount /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -848,8 +818,7 @@ public class OBWriteDomestic2DataInitiationDebtorAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -889,8 +858,7 @@ public class OBWriteDomestic2DataInitiationRemittanceInformation /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Reference { get; set; } /// @@ -899,8 +867,7 @@ public class OBWriteDomestic2DataInitiationRemittanceInformation /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Unstructured { get; set; } } @@ -1018,8 +985,7 @@ public class OBWriteDomesticConsent4DataInitiation /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string EndToEndIdentification { get; set; } /// @@ -1040,8 +1006,7 @@ public class OBWriteDomesticConsent4DataInitiation /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string InstructionIdentification { get; set; } /// @@ -1075,8 +1040,7 @@ public class OBWriteDomesticConsent4DataInitiationCreditorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -1089,8 +1053,7 @@ public class OBWriteDomesticConsent4DataInitiationCreditorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -1108,8 +1071,7 @@ public class OBWriteDomesticConsent4DataInitiationCreditorAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -1124,8 +1086,7 @@ public class OBWriteDomesticConsent4DataInitiationDebtorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -1135,8 +1096,7 @@ public class OBWriteDomesticConsent4DataInitiationDebtorAccount /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -1154,8 +1114,7 @@ public class OBWriteDomesticConsent4DataInitiationDebtorAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -1195,8 +1154,7 @@ public class OBWriteDomesticConsent4DataInitiationRemittanceInformation /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Reference { get; set; } /// @@ -1205,8 +1163,7 @@ public class OBWriteDomesticConsent4DataInitiationRemittanceInformation /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Unstructured { get; set; } } @@ -1273,8 +1230,7 @@ public class OBWriteDomesticConsentResponse5Data /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string ConsentId { get; set; } /// @@ -1437,8 +1393,7 @@ public class OBWriteDomesticConsentResponse5DataInitiation /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string EndToEndIdentification { get; set; } /// @@ -1459,8 +1414,7 @@ public class OBWriteDomesticConsentResponse5DataInitiation /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string InstructionIdentification { get; set; } /// @@ -1494,8 +1448,7 @@ public class OBWriteDomesticConsentResponse5DataInitiationCreditorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -1508,8 +1461,7 @@ public class OBWriteDomesticConsentResponse5DataInitiationCreditorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -1527,8 +1479,7 @@ public class OBWriteDomesticConsentResponse5DataInitiationCreditorAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -1543,8 +1494,7 @@ public class OBWriteDomesticConsentResponse5DataInitiationDebtorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -1554,8 +1504,7 @@ public class OBWriteDomesticConsentResponse5DataInitiationDebtorAccount /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -1573,8 +1522,7 @@ public class OBWriteDomesticConsentResponse5DataInitiationDebtorAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -1614,8 +1562,7 @@ public class OBWriteDomesticConsentResponse5DataInitiationRemittanceInformation /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Reference { get; set; } /// @@ -1624,8 +1571,7 @@ public class OBWriteDomesticConsentResponse5DataInitiationRemittanceInformation /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Unstructured { get; set; } } @@ -1684,8 +1630,7 @@ public class OBWriteDomesticResponse5Data /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string ConsentId { get; set; } /// @@ -1712,8 +1657,7 @@ public class OBWriteDomesticResponse5Data /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string DomesticPaymentId { get; set; } /// @@ -1832,8 +1776,7 @@ public class OBWriteDomesticResponse5DataInitiation /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string EndToEndIdentification { get; set; } /// @@ -1854,8 +1797,7 @@ public class OBWriteDomesticResponse5DataInitiation /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string InstructionIdentification { get; set; } /// @@ -1889,8 +1831,7 @@ public class OBWriteDomesticResponse5DataInitiationCreditorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -1903,8 +1844,7 @@ public class OBWriteDomesticResponse5DataInitiationCreditorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -1922,8 +1862,7 @@ public class OBWriteDomesticResponse5DataInitiationCreditorAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -1938,8 +1877,7 @@ public class OBWriteDomesticResponse5DataInitiationDebtorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -1949,8 +1887,7 @@ public class OBWriteDomesticResponse5DataInitiationDebtorAccount /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -1968,8 +1905,7 @@ public class OBWriteDomesticResponse5DataInitiationDebtorAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -2009,8 +1945,7 @@ public class OBWriteDomesticResponse5DataInitiationRemittanceInformation /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Reference { get; set; } /// @@ -2019,8 +1954,7 @@ public class OBWriteDomesticResponse5DataInitiationRemittanceInformation /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Unstructured { get; set; } } @@ -2101,8 +2035,7 @@ public class OBWriteDomesticResponse5DataRefundAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -2115,8 +2048,7 @@ public class OBWriteDomesticResponse5DataRefundAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -2134,8 +2066,7 @@ public class OBWriteDomesticResponse5DataRefundAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -2193,8 +2124,7 @@ public class OBWriteDomesticScheduled2Data /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string ConsentId { get; set; } /// @@ -2237,8 +2167,7 @@ public class OBWriteDomesticScheduled2DataInitiation /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string EndToEndIdentification { get; set; } /// @@ -2259,8 +2188,7 @@ public class OBWriteDomesticScheduled2DataInitiation /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string InstructionIdentification { get; set; } /// @@ -2305,8 +2233,7 @@ public class OBWriteDomesticScheduled2DataInitiationCreditorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -2319,8 +2246,7 @@ public class OBWriteDomesticScheduled2DataInitiationCreditorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -2338,8 +2264,7 @@ public class OBWriteDomesticScheduled2DataInitiationCreditorAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -2354,8 +2279,7 @@ public class OBWriteDomesticScheduled2DataInitiationDebtorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -2365,8 +2289,7 @@ public class OBWriteDomesticScheduled2DataInitiationDebtorAccount /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -2384,8 +2307,7 @@ public class OBWriteDomesticScheduled2DataInitiationDebtorAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -2425,8 +2347,7 @@ public class OBWriteDomesticScheduled2DataInitiationRemittanceInformation /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Reference { get; set; } /// @@ -2435,8 +2356,7 @@ public class OBWriteDomesticScheduled2DataInitiationRemittanceInformation /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Unstructured { get; set; } } @@ -2549,8 +2469,7 @@ public class OBWriteDomesticScheduledConsent4DataInitiation /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string EndToEndIdentification { get; set; } /// @@ -2571,8 +2490,7 @@ public class OBWriteDomesticScheduledConsent4DataInitiation /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string InstructionIdentification { get; set; } /// @@ -2617,8 +2535,7 @@ public class OBWriteDomesticScheduledConsent4DataInitiationCreditorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -2631,8 +2548,7 @@ public class OBWriteDomesticScheduledConsent4DataInitiationCreditorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -2650,8 +2566,7 @@ public class OBWriteDomesticScheduledConsent4DataInitiationCreditorAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -2666,8 +2581,7 @@ public class OBWriteDomesticScheduledConsent4DataInitiationDebtorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -2677,8 +2591,7 @@ public class OBWriteDomesticScheduledConsent4DataInitiationDebtorAccount /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -2696,8 +2609,7 @@ public class OBWriteDomesticScheduledConsent4DataInitiationDebtorAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -2737,8 +2649,7 @@ public class OBWriteDomesticScheduledConsent4DataInitiationRemittanceInformation /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Reference { get; set; } /// @@ -2747,8 +2658,7 @@ public class OBWriteDomesticScheduledConsent4DataInitiationRemittanceInformation /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Unstructured { get; set; } } @@ -2812,8 +2722,7 @@ public class OBWriteDomesticScheduledConsentResponse5Data /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string ConsentId { get; set; } /// @@ -2982,8 +2891,7 @@ public class OBWriteDomesticScheduledConsentResponse5DataInitiation /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string EndToEndIdentification { get; set; } /// @@ -3004,8 +2912,7 @@ public class OBWriteDomesticScheduledConsentResponse5DataInitiation /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string InstructionIdentification { get; set; } /// @@ -3050,8 +2957,7 @@ public class OBWriteDomesticScheduledConsentResponse5DataInitiationCreditorAccou /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -3064,8 +2970,7 @@ public class OBWriteDomesticScheduledConsentResponse5DataInitiationCreditorAccou /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -3083,8 +2988,7 @@ public class OBWriteDomesticScheduledConsentResponse5DataInitiationCreditorAccou /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -3099,8 +3003,7 @@ public class OBWriteDomesticScheduledConsentResponse5DataInitiationDebtorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -3110,8 +3013,7 @@ public class OBWriteDomesticScheduledConsentResponse5DataInitiationDebtorAccount /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -3129,8 +3031,7 @@ public class OBWriteDomesticScheduledConsentResponse5DataInitiationDebtorAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -3170,8 +3071,7 @@ public class OBWriteDomesticScheduledConsentResponse5DataInitiationRemittanceInf /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Reference { get; set; } /// @@ -3180,8 +3080,7 @@ public class OBWriteDomesticScheduledConsentResponse5DataInitiationRemittanceInf /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Unstructured { get; set; } } @@ -3223,8 +3122,7 @@ public class OBWriteDomesticScheduledResponse5Data /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string ConsentId { get; set; } /// @@ -3251,8 +3149,7 @@ public class OBWriteDomesticScheduledResponse5Data /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string DomesticScheduledPaymentId { get; set; } /// @@ -3369,8 +3266,7 @@ public class OBWriteDomesticScheduledResponse5DataInitiation /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string EndToEndIdentification { get; set; } /// @@ -3391,8 +3287,7 @@ public class OBWriteDomesticScheduledResponse5DataInitiation /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string InstructionIdentification { get; set; } /// @@ -3437,8 +3332,7 @@ public class OBWriteDomesticScheduledResponse5DataInitiationCreditorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -3451,8 +3345,7 @@ public class OBWriteDomesticScheduledResponse5DataInitiationCreditorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -3470,8 +3363,7 @@ public class OBWriteDomesticScheduledResponse5DataInitiationCreditorAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -3486,8 +3378,7 @@ public class OBWriteDomesticScheduledResponse5DataInitiationDebtorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -3497,8 +3388,7 @@ public class OBWriteDomesticScheduledResponse5DataInitiationDebtorAccount /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -3516,8 +3406,7 @@ public class OBWriteDomesticScheduledResponse5DataInitiationDebtorAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -3557,8 +3446,7 @@ public class OBWriteDomesticScheduledResponse5DataInitiationRemittanceInformatio /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Reference { get; set; } /// @@ -3567,8 +3455,7 @@ public class OBWriteDomesticScheduledResponse5DataInitiationRemittanceInformatio /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Unstructured { get; set; } } @@ -3635,8 +3522,7 @@ public class OBWriteDomesticScheduledResponse5DataRefundAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -3649,8 +3535,7 @@ public class OBWriteDomesticScheduledResponse5DataRefundAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -3668,8 +3553,7 @@ public class OBWriteDomesticScheduledResponse5DataRefundAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -3721,8 +3605,7 @@ public class OBWriteDomesticStandingOrder3Data /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string ConsentId { get; set; } /// @@ -3824,8 +3707,7 @@ public class OBWriteDomesticStandingOrder3DataInitiation /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string NumberOfPayments { get; set; } /// @@ -3851,8 +3733,7 @@ public class OBWriteDomesticStandingOrder3DataInitiation /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Reference { get; set; } /// @@ -3873,8 +3754,7 @@ public class OBWriteDomesticStandingOrder3DataInitiationCreditorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -3887,8 +3767,7 @@ public class OBWriteDomesticStandingOrder3DataInitiationCreditorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -3906,8 +3785,7 @@ public class OBWriteDomesticStandingOrder3DataInitiationCreditorAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -3922,8 +3800,7 @@ public class OBWriteDomesticStandingOrder3DataInitiationDebtorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -3933,8 +3810,7 @@ public class OBWriteDomesticStandingOrder3DataInitiationDebtorAccount /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -3952,8 +3828,7 @@ public class OBWriteDomesticStandingOrder3DataInitiationDebtorAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -4197,8 +4072,7 @@ public class OBWriteDomesticStandingOrderConsent5DataInitiation /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string NumberOfPayments { get; set; } /// @@ -4224,8 +4098,7 @@ public class OBWriteDomesticStandingOrderConsent5DataInitiation /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Reference { get; set; } /// @@ -4246,8 +4119,7 @@ public class OBWriteDomesticStandingOrderConsent5DataInitiationCreditorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -4260,8 +4132,7 @@ public class OBWriteDomesticStandingOrderConsent5DataInitiationCreditorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -4279,8 +4150,7 @@ public class OBWriteDomesticStandingOrderConsent5DataInitiationCreditorAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -4295,8 +4165,7 @@ public class OBWriteDomesticStandingOrderConsent5DataInitiationDebtorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -4306,8 +4175,7 @@ public class OBWriteDomesticStandingOrderConsent5DataInitiationDebtorAccount /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -4325,8 +4193,7 @@ public class OBWriteDomesticStandingOrderConsent5DataInitiationDebtorAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -4454,8 +4321,7 @@ public class OBWriteDomesticStandingOrderConsentResponse6Data /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string ConsentId { get; set; } /// @@ -4667,8 +4533,7 @@ public class OBWriteDomesticStandingOrderConsentResponse6DataInitiation /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string NumberOfPayments { get; set; } /// @@ -4694,8 +4559,7 @@ public class OBWriteDomesticStandingOrderConsentResponse6DataInitiation /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Reference { get; set; } /// @@ -4716,8 +4580,7 @@ public class OBWriteDomesticStandingOrderConsentResponse6DataInitiationCreditorA /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -4730,8 +4593,7 @@ public class OBWriteDomesticStandingOrderConsentResponse6DataInitiationCreditorA /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -4749,8 +4611,7 @@ public class OBWriteDomesticStandingOrderConsentResponse6DataInitiationCreditorA /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -4765,8 +4626,7 @@ public class OBWriteDomesticStandingOrderConsentResponse6DataInitiationDebtorAcc /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -4776,8 +4636,7 @@ public class OBWriteDomesticStandingOrderConsentResponse6DataInitiationDebtorAcc /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -4795,8 +4654,7 @@ public class OBWriteDomesticStandingOrderConsentResponse6DataInitiationDebtorAcc /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -4910,8 +4768,7 @@ public class OBWriteDomesticStandingOrderResponse6Data /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string ConsentId { get; set; } /// @@ -4938,8 +4795,7 @@ public class OBWriteDomesticStandingOrderResponse6Data /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string DomesticStandingOrderId { get; set; } /// @@ -5099,8 +4955,7 @@ public class OBWriteDomesticStandingOrderResponse6DataInitiation /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string NumberOfPayments { get; set; } /// @@ -5126,8 +4981,7 @@ public class OBWriteDomesticStandingOrderResponse6DataInitiation /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Reference { get; set; } /// @@ -5148,8 +5002,7 @@ public class OBWriteDomesticStandingOrderResponse6DataInitiationCreditorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -5162,8 +5015,7 @@ public class OBWriteDomesticStandingOrderResponse6DataInitiationCreditorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -5181,8 +5033,7 @@ public class OBWriteDomesticStandingOrderResponse6DataInitiationCreditorAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -5197,8 +5048,7 @@ public class OBWriteDomesticStandingOrderResponse6DataInitiationDebtorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -5208,8 +5058,7 @@ public class OBWriteDomesticStandingOrderResponse6DataInitiationDebtorAccount /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -5227,8 +5076,7 @@ public class OBWriteDomesticStandingOrderResponse6DataInitiationDebtorAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -5367,8 +5215,7 @@ public class OBWriteDomesticStandingOrderResponse6DataRefundAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -5381,8 +5228,7 @@ public class OBWriteDomesticStandingOrderResponse6DataRefundAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -5400,8 +5246,7 @@ public class OBWriteDomesticStandingOrderResponse6DataRefundAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -5428,8 +5273,7 @@ public class OBWriteFile2Data /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string ConsentId { get; set; } /// @@ -5464,8 +5308,7 @@ public class OBWriteFile2DataInitiation /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(44)] + [System.ComponentModel.DataAnnotations.Length(1, 44)] public string FileHash { get; set; } /// @@ -5474,8 +5317,7 @@ public class OBWriteFile2DataInitiation /// Max length: 40 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string FileReference { get; set; } /// @@ -5534,8 +5376,7 @@ public class OBWriteFile2DataInitiationDebtorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -5545,8 +5386,7 @@ public class OBWriteFile2DataInitiationDebtorAccount /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -5564,8 +5404,7 @@ public class OBWriteFile2DataInitiationDebtorAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -5581,8 +5420,7 @@ public class OBWriteFile2DataInitiationRemittanceInformation /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Reference { get; set; } /// @@ -5591,8 +5429,7 @@ public class OBWriteFile2DataInitiationRemittanceInformation /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Unstructured { get; set; } } @@ -5675,8 +5512,7 @@ public class OBWriteFileConsent3DataInitiation /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(44)] + [System.ComponentModel.DataAnnotations.Length(1, 44)] public string FileHash { get; set; } /// @@ -5685,8 +5521,7 @@ public class OBWriteFileConsent3DataInitiation /// Max length: 40 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string FileReference { get; set; } /// @@ -5745,8 +5580,7 @@ public class OBWriteFileConsent3DataInitiationDebtorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -5756,8 +5590,7 @@ public class OBWriteFileConsent3DataInitiationDebtorAccount /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -5775,8 +5608,7 @@ public class OBWriteFileConsent3DataInitiationDebtorAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -5792,8 +5624,7 @@ public class OBWriteFileConsent3DataInitiationRemittanceInformation /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Reference { get; set; } /// @@ -5802,8 +5633,7 @@ public class OBWriteFileConsent3DataInitiationRemittanceInformation /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Unstructured { get; set; } } @@ -5851,8 +5681,7 @@ public class OBWriteFileConsentResponse4Data /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string ConsentId { get; set; } /// @@ -5983,8 +5812,7 @@ public class OBWriteFileConsentResponse4DataInitiation /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(44)] + [System.ComponentModel.DataAnnotations.Length(1, 44)] public string FileHash { get; set; } /// @@ -5993,8 +5821,7 @@ public class OBWriteFileConsentResponse4DataInitiation /// Max length: 40 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string FileReference { get; set; } /// @@ -6053,8 +5880,7 @@ public class OBWriteFileConsentResponse4DataInitiationDebtorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -6064,8 +5890,7 @@ public class OBWriteFileConsentResponse4DataInitiationDebtorAccount /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -6083,8 +5908,7 @@ public class OBWriteFileConsentResponse4DataInitiationDebtorAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -6100,8 +5924,7 @@ public class OBWriteFileConsentResponse4DataInitiationRemittanceInformation /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Reference { get; set; } /// @@ -6110,8 +5933,7 @@ public class OBWriteFileConsentResponse4DataInitiationRemittanceInformation /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Unstructured { get; set; } } @@ -6173,8 +5995,7 @@ public class OBWriteFileResponse3Data /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string ConsentId { get; set; } /// @@ -6201,8 +6022,7 @@ public class OBWriteFileResponse3Data /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string FilePaymentId { get; set; } /// @@ -6289,8 +6109,7 @@ public class OBWriteFileResponse3DataInitiation /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(44)] + [System.ComponentModel.DataAnnotations.Length(1, 44)] public string FileHash { get; set; } /// @@ -6299,8 +6118,7 @@ public class OBWriteFileResponse3DataInitiation /// Max length: 40 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string FileReference { get; set; } /// @@ -6359,8 +6177,7 @@ public class OBWriteFileResponse3DataInitiationDebtorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -6370,8 +6187,7 @@ public class OBWriteFileResponse3DataInitiationDebtorAccount /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -6389,8 +6205,7 @@ public class OBWriteFileResponse3DataInitiationDebtorAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -6406,8 +6221,7 @@ public class OBWriteFileResponse3DataInitiationRemittanceInformation /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Reference { get; set; } /// @@ -6416,8 +6230,7 @@ public class OBWriteFileResponse3DataInitiationRemittanceInformation /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Unstructured { get; set; } } @@ -6568,8 +6381,7 @@ public class OBWriteInternational3Data /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string ConsentId { get; set; } /// @@ -6644,8 +6456,7 @@ public class OBWriteInternational3DataInitiation /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string EndToEndIdentification { get; set; } /// @@ -6660,8 +6471,7 @@ public class OBWriteInternational3DataInitiation /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string ExtendedPurpose { get; set; } /// @@ -6682,8 +6492,7 @@ public class OBWriteInternational3DataInitiation /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string InstructionIdentification { get; set; } /// @@ -6707,8 +6516,7 @@ public class OBWriteInternational3DataInitiation /// Max length: 4 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(1, 4)] public string Purpose { get; set; } /// @@ -6733,8 +6541,7 @@ public class OBWriteInternational3DataInitiationCreditor /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Name { get; set; } /// @@ -6755,8 +6562,7 @@ public class OBWriteInternational3DataInitiationCreditorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -6769,8 +6575,7 @@ public class OBWriteInternational3DataInitiationCreditorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -6788,8 +6593,7 @@ public class OBWriteInternational3DataInitiationCreditorAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -6802,8 +6606,7 @@ public class OBWriteInternational3DataInitiationCreditorAgent /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Identification { get; set; } /// @@ -6812,8 +6615,7 @@ public class OBWriteInternational3DataInitiationCreditorAgent /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Name { get; set; } /// @@ -6840,8 +6642,7 @@ public class OBWriteInternational3DataInitiationDebtorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -6851,8 +6652,7 @@ public class OBWriteInternational3DataInitiationDebtorAccount /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -6870,8 +6670,7 @@ public class OBWriteInternational3DataInitiationDebtorAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -6884,8 +6683,7 @@ public class OBWriteInternational3DataInitiationExchangeRateInformation /// Max length: 256 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string ContractIdentification { get; set; } /// @@ -6974,8 +6772,7 @@ public class OBWriteInternational3DataInitiationRemittanceInformation /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Reference { get; set; } /// @@ -6984,8 +6781,7 @@ public class OBWriteInternational3DataInitiationRemittanceInformation /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Unstructured { get; set; } } @@ -7122,8 +6918,7 @@ public class OBWriteInternationalConsent5DataInitiation /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string EndToEndIdentification { get; set; } /// @@ -7138,8 +6933,7 @@ public class OBWriteInternationalConsent5DataInitiation /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string ExtendedPurpose { get; set; } /// @@ -7160,8 +6954,7 @@ public class OBWriteInternationalConsent5DataInitiation /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string InstructionIdentification { get; set; } /// @@ -7185,8 +6978,7 @@ public class OBWriteInternationalConsent5DataInitiation /// Max length: 4 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(1, 4)] public string Purpose { get; set; } /// @@ -7211,8 +7003,7 @@ public class OBWriteInternationalConsent5DataInitiationCreditor /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Name { get; set; } /// @@ -7233,8 +7024,7 @@ public class OBWriteInternationalConsent5DataInitiationCreditorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -7247,8 +7037,7 @@ public class OBWriteInternationalConsent5DataInitiationCreditorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -7266,8 +7055,7 @@ public class OBWriteInternationalConsent5DataInitiationCreditorAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -7280,8 +7068,7 @@ public class OBWriteInternationalConsent5DataInitiationCreditorAgent /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Identification { get; set; } /// @@ -7290,8 +7077,7 @@ public class OBWriteInternationalConsent5DataInitiationCreditorAgent /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Name { get; set; } /// @@ -7318,8 +7104,7 @@ public class OBWriteInternationalConsent5DataInitiationDebtorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -7329,8 +7114,7 @@ public class OBWriteInternationalConsent5DataInitiationDebtorAccount /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -7348,8 +7132,7 @@ public class OBWriteInternationalConsent5DataInitiationDebtorAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -7362,8 +7145,7 @@ public class OBWriteInternationalConsent5DataInitiationExchangeRateInformation /// Max length: 256 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string ContractIdentification { get; set; } /// @@ -7427,8 +7209,7 @@ public class OBWriteInternationalConsent5DataInitiationRemittanceInformation /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Reference { get; set; } /// @@ -7437,8 +7218,7 @@ public class OBWriteInternationalConsent5DataInitiationRemittanceInformation /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Unstructured { get; set; } } @@ -7494,8 +7274,7 @@ public class OBWriteInternationalConsentResponse6Data /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string ConsentId { get; set; } /// @@ -7640,8 +7419,7 @@ public class OBWriteInternationalConsentResponse6DataExchangeRateInformation /// Max length: 256 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string ContractIdentification { get; set; } /// @@ -7742,8 +7520,7 @@ public class OBWriteInternationalConsentResponse6DataInitiation /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string EndToEndIdentification { get; set; } /// @@ -7758,8 +7535,7 @@ public class OBWriteInternationalConsentResponse6DataInitiation /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string ExtendedPurpose { get; set; } /// @@ -7780,8 +7556,7 @@ public class OBWriteInternationalConsentResponse6DataInitiation /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string InstructionIdentification { get; set; } /// @@ -7805,8 +7580,7 @@ public class OBWriteInternationalConsentResponse6DataInitiation /// Max length: 4 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(1, 4)] public string Purpose { get; set; } /// @@ -7831,8 +7605,7 @@ public class OBWriteInternationalConsentResponse6DataInitiationCreditor /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Name { get; set; } /// @@ -7853,8 +7626,7 @@ public class OBWriteInternationalConsentResponse6DataInitiationCreditorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -7867,8 +7639,7 @@ public class OBWriteInternationalConsentResponse6DataInitiationCreditorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -7886,8 +7657,7 @@ public class OBWriteInternationalConsentResponse6DataInitiationCreditorAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -7900,8 +7670,7 @@ public class OBWriteInternationalConsentResponse6DataInitiationCreditorAgent /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Identification { get; set; } /// @@ -7910,8 +7679,7 @@ public class OBWriteInternationalConsentResponse6DataInitiationCreditorAgent /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Name { get; set; } /// @@ -7938,8 +7706,7 @@ public class OBWriteInternationalConsentResponse6DataInitiationDebtorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -7949,8 +7716,7 @@ public class OBWriteInternationalConsentResponse6DataInitiationDebtorAccount /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -7968,8 +7734,7 @@ public class OBWriteInternationalConsentResponse6DataInitiationDebtorAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -7982,8 +7747,7 @@ public class OBWriteInternationalConsentResponse6DataInitiationExchangeRateInfor /// Max length: 256 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string ContractIdentification { get; set; } /// @@ -8047,8 +7811,7 @@ public class OBWriteInternationalConsentResponse6DataInitiationRemittanceInforma /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Reference { get; set; } /// @@ -8057,8 +7820,7 @@ public class OBWriteInternationalConsentResponse6DataInitiationRemittanceInforma /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Unstructured { get; set; } } @@ -8100,8 +7862,7 @@ public class OBWriteInternationalResponse5Data /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string ConsentId { get; set; } /// @@ -8158,8 +7919,7 @@ public class OBWriteInternationalResponse5Data /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string InternationalPaymentId { get; set; } /// @@ -8227,8 +7987,7 @@ public class OBWriteInternationalResponse5DataExchangeRateInformation /// Max length: 256 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string ContractIdentification { get; set; } /// @@ -8329,8 +8088,7 @@ public class OBWriteInternationalResponse5DataInitiation /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string EndToEndIdentification { get; set; } /// @@ -8345,8 +8103,7 @@ public class OBWriteInternationalResponse5DataInitiation /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string ExtendedPurpose { get; set; } /// @@ -8367,8 +8124,7 @@ public class OBWriteInternationalResponse5DataInitiation /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string InstructionIdentification { get; set; } /// @@ -8392,8 +8148,7 @@ public class OBWriteInternationalResponse5DataInitiation /// Max length: 4 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(1, 4)] public string Purpose { get; set; } /// @@ -8418,8 +8173,7 @@ public class OBWriteInternationalResponse5DataInitiationCreditor /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Name { get; set; } /// @@ -8440,8 +8194,7 @@ public class OBWriteInternationalResponse5DataInitiationCreditorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -8454,8 +8207,7 @@ public class OBWriteInternationalResponse5DataInitiationCreditorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -8473,8 +8225,7 @@ public class OBWriteInternationalResponse5DataInitiationCreditorAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -8487,8 +8238,7 @@ public class OBWriteInternationalResponse5DataInitiationCreditorAgent /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Identification { get; set; } /// @@ -8497,8 +8247,7 @@ public class OBWriteInternationalResponse5DataInitiationCreditorAgent /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Name { get; set; } /// @@ -8525,8 +8274,7 @@ public class OBWriteInternationalResponse5DataInitiationDebtorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -8536,8 +8284,7 @@ public class OBWriteInternationalResponse5DataInitiationDebtorAccount /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -8555,8 +8302,7 @@ public class OBWriteInternationalResponse5DataInitiationDebtorAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -8569,8 +8315,7 @@ public class OBWriteInternationalResponse5DataInitiationExchangeRateInformation /// Max length: 256 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string ContractIdentification { get; set; } /// @@ -8634,8 +8379,7 @@ public class OBWriteInternationalResponse5DataInitiationRemittanceInformation /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Reference { get; set; } /// @@ -8644,8 +8388,7 @@ public class OBWriteInternationalResponse5DataInitiationRemittanceInformation /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Unstructured { get; set; } } @@ -8724,8 +8467,7 @@ public class OBWriteInternationalResponse5DataRefundAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -8738,8 +8480,7 @@ public class OBWriteInternationalResponse5DataRefundAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -8757,8 +8498,7 @@ public class OBWriteInternationalResponse5DataRefundAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -8771,8 +8511,7 @@ public class OBWriteInternationalResponse5DataRefundAgent /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Identification { get; set; } /// @@ -8781,8 +8520,7 @@ public class OBWriteInternationalResponse5DataRefundAgent /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Name { get; set; } /// @@ -8807,8 +8545,7 @@ public class OBWriteInternationalResponse5DataRefundCreditor /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Name { get; set; } /// @@ -8849,8 +8586,7 @@ public class OBWriteInternationalScheduled3Data /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string ConsentId { get; set; } /// @@ -8923,8 +8659,7 @@ public class OBWriteInternationalScheduled3DataInitiation /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string EndToEndIdentification { get; set; } /// @@ -8939,8 +8674,7 @@ public class OBWriteInternationalScheduled3DataInitiation /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string ExtendedPurpose { get; set; } /// @@ -8961,8 +8695,7 @@ public class OBWriteInternationalScheduled3DataInitiation /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string InstructionIdentification { get; set; } /// @@ -8986,8 +8719,7 @@ public class OBWriteInternationalScheduled3DataInitiation /// Max length: 4 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(1, 4)] public string Purpose { get; set; } /// @@ -9023,8 +8755,7 @@ public class OBWriteInternationalScheduled3DataInitiationCreditor /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Name { get; set; } /// @@ -9045,8 +8776,7 @@ public class OBWriteInternationalScheduled3DataInitiationCreditorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -9059,8 +8789,7 @@ public class OBWriteInternationalScheduled3DataInitiationCreditorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -9078,8 +8807,7 @@ public class OBWriteInternationalScheduled3DataInitiationCreditorAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -9092,8 +8820,7 @@ public class OBWriteInternationalScheduled3DataInitiationCreditorAgent /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Identification { get; set; } /// @@ -9102,8 +8829,7 @@ public class OBWriteInternationalScheduled3DataInitiationCreditorAgent /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Name { get; set; } /// @@ -9130,8 +8856,7 @@ public class OBWriteInternationalScheduled3DataInitiationDebtorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -9141,8 +8866,7 @@ public class OBWriteInternationalScheduled3DataInitiationDebtorAccount /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -9160,8 +8884,7 @@ public class OBWriteInternationalScheduled3DataInitiationDebtorAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -9174,8 +8897,7 @@ public class OBWriteInternationalScheduled3DataInitiationExchangeRateInformation /// Max length: 256 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string ContractIdentification { get; set; } /// @@ -9239,8 +8961,7 @@ public class OBWriteInternationalScheduled3DataInitiationRemittanceInformation /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Reference { get; set; } /// @@ -9249,8 +8970,7 @@ public class OBWriteInternationalScheduled3DataInitiationRemittanceInformation /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Unstructured { get; set; } } @@ -9393,8 +9113,7 @@ public class OBWriteInternationalScheduledConsent5DataInitiation /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string EndToEndIdentification { get; set; } /// @@ -9409,8 +9128,7 @@ public class OBWriteInternationalScheduledConsent5DataInitiation /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string ExtendedPurpose { get; set; } /// @@ -9431,8 +9149,7 @@ public class OBWriteInternationalScheduledConsent5DataInitiation /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string InstructionIdentification { get; set; } /// @@ -9456,8 +9173,7 @@ public class OBWriteInternationalScheduledConsent5DataInitiation /// Max length: 4 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(1, 4)] public string Purpose { get; set; } /// @@ -9493,8 +9209,7 @@ public class OBWriteInternationalScheduledConsent5DataInitiationCreditor /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Name { get; set; } /// @@ -9515,8 +9230,7 @@ public class OBWriteInternationalScheduledConsent5DataInitiationCreditorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -9529,8 +9243,7 @@ public class OBWriteInternationalScheduledConsent5DataInitiationCreditorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -9548,8 +9261,7 @@ public class OBWriteInternationalScheduledConsent5DataInitiationCreditorAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -9562,8 +9274,7 @@ public class OBWriteInternationalScheduledConsent5DataInitiationCreditorAgent /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Identification { get; set; } /// @@ -9572,8 +9283,7 @@ public class OBWriteInternationalScheduledConsent5DataInitiationCreditorAgent /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Name { get; set; } /// @@ -9600,8 +9310,7 @@ public class OBWriteInternationalScheduledConsent5DataInitiationDebtorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -9611,8 +9320,7 @@ public class OBWriteInternationalScheduledConsent5DataInitiationDebtorAccount /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -9630,8 +9338,7 @@ public class OBWriteInternationalScheduledConsent5DataInitiationDebtorAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -9644,8 +9351,7 @@ public class OBWriteInternationalScheduledConsent5DataInitiationExchangeRateInfo /// Max length: 256 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string ContractIdentification { get; set; } /// @@ -9709,8 +9415,7 @@ public class OBWriteInternationalScheduledConsent5DataInitiationRemittanceInform /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Reference { get; set; } /// @@ -9719,8 +9424,7 @@ public class OBWriteInternationalScheduledConsent5DataInitiationRemittanceInform /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Unstructured { get; set; } } @@ -9776,8 +9480,7 @@ public class OBWriteInternationalScheduledConsentResponse6Data /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string ConsentId { get; set; } /// @@ -9930,8 +9633,7 @@ public class OBWriteInternationalScheduledConsentResponse6DataExchangeRateInform /// Max length: 256 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string ContractIdentification { get; set; } /// @@ -10030,8 +9732,7 @@ public class OBWriteInternationalScheduledConsentResponse6DataInitiation /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string EndToEndIdentification { get; set; } /// @@ -10046,8 +9747,7 @@ public class OBWriteInternationalScheduledConsentResponse6DataInitiation /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string ExtendedPurpose { get; set; } /// @@ -10068,8 +9768,7 @@ public class OBWriteInternationalScheduledConsentResponse6DataInitiation /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string InstructionIdentification { get; set; } /// @@ -10093,8 +9792,7 @@ public class OBWriteInternationalScheduledConsentResponse6DataInitiation /// Max length: 4 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(1, 4)] public string Purpose { get; set; } /// @@ -10130,8 +9828,7 @@ public class OBWriteInternationalScheduledConsentResponse6DataInitiationCreditor /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -10152,8 +9849,7 @@ public class OBWriteInternationalScheduledConsentResponse6DataInitiationCreditor /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -10166,8 +9862,7 @@ public class OBWriteInternationalScheduledConsentResponse6DataInitiationCreditor /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -10185,8 +9880,7 @@ public class OBWriteInternationalScheduledConsentResponse6DataInitiationCreditor /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -10199,8 +9893,7 @@ public class OBWriteInternationalScheduledConsentResponse6DataInitiationCreditor /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Identification { get; set; } /// @@ -10209,8 +9902,7 @@ public class OBWriteInternationalScheduledConsentResponse6DataInitiationCreditor /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Name { get; set; } /// @@ -10237,8 +9929,7 @@ public class OBWriteInternationalScheduledConsentResponse6DataInitiationDebtorAc /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -10248,8 +9939,7 @@ public class OBWriteInternationalScheduledConsentResponse6DataInitiationDebtorAc /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -10267,8 +9957,7 @@ public class OBWriteInternationalScheduledConsentResponse6DataInitiationDebtorAc /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -10281,8 +9970,7 @@ public class OBWriteInternationalScheduledConsentResponse6DataInitiationExchange /// Max length: 256 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string ContractIdentification { get; set; } /// @@ -10346,8 +10034,7 @@ public class OBWriteInternationalScheduledConsentResponse6DataInitiationRemittan /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Reference { get; set; } /// @@ -10356,8 +10043,7 @@ public class OBWriteInternationalScheduledConsentResponse6DataInitiationRemittan /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Unstructured { get; set; } } @@ -10399,8 +10085,7 @@ public class OBWriteInternationalScheduledResponse6Data /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string ConsentId { get; set; } /// @@ -10457,8 +10142,7 @@ public class OBWriteInternationalScheduledResponse6Data /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string InternationalScheduledPaymentId { get; set; } /// @@ -10526,8 +10210,7 @@ public class OBWriteInternationalScheduledResponse6DataExchangeRateInformation /// Max length: 256 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string ContractIdentification { get; set; } /// @@ -10626,8 +10309,7 @@ public class OBWriteInternationalScheduledResponse6DataInitiation /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string EndToEndIdentification { get; set; } /// @@ -10642,8 +10324,7 @@ public class OBWriteInternationalScheduledResponse6DataInitiation /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string ExtendedPurpose { get; set; } /// @@ -10664,8 +10345,7 @@ public class OBWriteInternationalScheduledResponse6DataInitiation /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string InstructionIdentification { get; set; } /// @@ -10689,8 +10369,7 @@ public class OBWriteInternationalScheduledResponse6DataInitiation /// Max length: 4 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(1, 4)] public string Purpose { get; set; } /// @@ -10726,8 +10405,7 @@ public class OBWriteInternationalScheduledResponse6DataInitiationCreditor /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Name { get; set; } /// @@ -10748,8 +10426,7 @@ public class OBWriteInternationalScheduledResponse6DataInitiationCreditorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -10762,8 +10439,7 @@ public class OBWriteInternationalScheduledResponse6DataInitiationCreditorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -10781,8 +10457,7 @@ public class OBWriteInternationalScheduledResponse6DataInitiationCreditorAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -10795,8 +10470,7 @@ public class OBWriteInternationalScheduledResponse6DataInitiationCreditorAgent /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Identification { get; set; } /// @@ -10805,8 +10479,7 @@ public class OBWriteInternationalScheduledResponse6DataInitiationCreditorAgent /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Name { get; set; } /// @@ -10833,8 +10506,7 @@ public class OBWriteInternationalScheduledResponse6DataInitiationDebtorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -10844,8 +10516,7 @@ public class OBWriteInternationalScheduledResponse6DataInitiationDebtorAccount /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -10863,8 +10534,7 @@ public class OBWriteInternationalScheduledResponse6DataInitiationDebtorAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -10877,8 +10547,7 @@ public class OBWriteInternationalScheduledResponse6DataInitiationExchangeRateInf /// Max length: 256 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string ContractIdentification { get; set; } /// @@ -10942,8 +10611,7 @@ public class OBWriteInternationalScheduledResponse6DataInitiationRemittanceInfor /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Reference { get; set; } /// @@ -10952,8 +10620,7 @@ public class OBWriteInternationalScheduledResponse6DataInitiationRemittanceInfor /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Unstructured { get; set; } } @@ -11032,8 +10699,7 @@ public class OBWriteInternationalScheduledResponse6DataRefundAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -11046,8 +10712,7 @@ public class OBWriteInternationalScheduledResponse6DataRefundAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -11065,8 +10730,7 @@ public class OBWriteInternationalScheduledResponse6DataRefundAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -11079,8 +10743,7 @@ public class OBWriteInternationalScheduledResponse6DataRefundAgent /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Identification { get; set; } /// @@ -11089,8 +10752,7 @@ public class OBWriteInternationalScheduledResponse6DataRefundAgent /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Name { get; set; } /// @@ -11115,8 +10777,7 @@ public class OBWriteInternationalScheduledResponse6DataRefundCreditor /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Name { get; set; } /// @@ -11157,8 +10818,7 @@ public class OBWriteInternationalStandingOrder4Data /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string ConsentId { get; set; } /// @@ -11230,8 +10890,7 @@ public class OBWriteInternationalStandingOrder4DataInitiation /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string ExtendedPurpose { get; set; } /// @@ -11302,8 +10961,7 @@ public class OBWriteInternationalStandingOrder4DataInitiation /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string NumberOfPayments { get; set; } /// @@ -11314,8 +10972,7 @@ public class OBWriteInternationalStandingOrder4DataInitiation /// Max length: 4 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(1, 4)] public string Purpose { get; set; } /// @@ -11326,8 +10983,7 @@ public class OBWriteInternationalStandingOrder4DataInitiation /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Reference { get; set; } /// @@ -11346,8 +11002,7 @@ public class OBWriteInternationalStandingOrder4DataInitiationCreditor /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -11368,8 +11023,7 @@ public class OBWriteInternationalStandingOrder4DataInitiationCreditorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -11382,8 +11036,7 @@ public class OBWriteInternationalStandingOrder4DataInitiationCreditorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -11401,8 +11054,7 @@ public class OBWriteInternationalStandingOrder4DataInitiationCreditorAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -11415,8 +11067,7 @@ public class OBWriteInternationalStandingOrder4DataInitiationCreditorAgent /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Identification { get; set; } /// @@ -11425,8 +11076,7 @@ public class OBWriteInternationalStandingOrder4DataInitiationCreditorAgent /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Name { get; set; } /// @@ -11453,8 +11103,7 @@ public class OBWriteInternationalStandingOrder4DataInitiationDebtorAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -11464,8 +11113,7 @@ public class OBWriteInternationalStandingOrder4DataInitiationDebtorAccount /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -11483,8 +11131,7 @@ public class OBWriteInternationalStandingOrder4DataInitiationDebtorAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -11650,8 +11297,7 @@ public class OBWriteInternationalStandingOrderConsent6DataInitiation /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string ExtendedPurpose { get; set; } /// @@ -11722,8 +11368,7 @@ public class OBWriteInternationalStandingOrderConsent6DataInitiation /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string NumberOfPayments { get; set; } /// @@ -11734,8 +11379,7 @@ public class OBWriteInternationalStandingOrderConsent6DataInitiation /// Max length: 4 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(1, 4)] public string Purpose { get; set; } /// @@ -11746,8 +11390,7 @@ public class OBWriteInternationalStandingOrderConsent6DataInitiation /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Reference { get; set; } /// @@ -11766,8 +11409,7 @@ public class OBWriteInternationalStandingOrderConsent6DataInitiationCreditor /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -11788,8 +11430,7 @@ public class OBWriteInternationalStandingOrderConsent6DataInitiationCreditorAcco /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -11802,8 +11443,7 @@ public class OBWriteInternationalStandingOrderConsent6DataInitiationCreditorAcco /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -11821,8 +11461,7 @@ public class OBWriteInternationalStandingOrderConsent6DataInitiationCreditorAcco /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -11835,8 +11474,7 @@ public class OBWriteInternationalStandingOrderConsent6DataInitiationCreditorAgen /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Identification { get; set; } /// @@ -11845,8 +11483,7 @@ public class OBWriteInternationalStandingOrderConsent6DataInitiationCreditorAgen /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Name { get; set; } /// @@ -11873,8 +11510,7 @@ public class OBWriteInternationalStandingOrderConsent6DataInitiationDebtorAccoun /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -11884,8 +11520,7 @@ public class OBWriteInternationalStandingOrderConsent6DataInitiationDebtorAccoun /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -11903,8 +11538,7 @@ public class OBWriteInternationalStandingOrderConsent6DataInitiationDebtorAccoun /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -11984,8 +11618,7 @@ public class OBWriteInternationalStandingOrderConsentResponse7Data /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string ConsentId { get; set; } /// @@ -12167,8 +11800,7 @@ public class OBWriteInternationalStandingOrderConsentResponse7DataInitiation /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string ExtendedPurpose { get; set; } /// @@ -12239,8 +11871,7 @@ public class OBWriteInternationalStandingOrderConsentResponse7DataInitiation /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string NumberOfPayments { get; set; } /// @@ -12251,8 +11882,7 @@ public class OBWriteInternationalStandingOrderConsentResponse7DataInitiation /// Max length: 4 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(1, 4)] public string Purpose { get; set; } /// @@ -12263,8 +11893,7 @@ public class OBWriteInternationalStandingOrderConsentResponse7DataInitiation /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Reference { get; set; } /// @@ -12283,8 +11912,7 @@ public class OBWriteInternationalStandingOrderConsentResponse7DataInitiationCred /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -12305,8 +11933,7 @@ public class OBWriteInternationalStandingOrderConsentResponse7DataInitiationCred /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -12319,8 +11946,7 @@ public class OBWriteInternationalStandingOrderConsentResponse7DataInitiationCred /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -12338,8 +11964,7 @@ public class OBWriteInternationalStandingOrderConsentResponse7DataInitiationCred /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -12352,8 +11977,7 @@ public class OBWriteInternationalStandingOrderConsentResponse7DataInitiationCred /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Identification { get; set; } /// @@ -12362,8 +11986,7 @@ public class OBWriteInternationalStandingOrderConsentResponse7DataInitiationCred /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Name { get; set; } /// @@ -12390,8 +12013,7 @@ public class OBWriteInternationalStandingOrderConsentResponse7DataInitiationDebt /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -12401,8 +12023,7 @@ public class OBWriteInternationalStandingOrderConsentResponse7DataInitiationDebt /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -12420,8 +12041,7 @@ public class OBWriteInternationalStandingOrderConsentResponse7DataInitiationDebt /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -12487,8 +12107,7 @@ public class OBWriteInternationalStandingOrderResponse7Data /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string ConsentId { get; set; } /// @@ -12523,8 +12142,7 @@ public class OBWriteInternationalStandingOrderResponse7Data /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string InternationalStandingOrderId { get; set; } /// @@ -12643,8 +12261,7 @@ public class OBWriteInternationalStandingOrderResponse7DataInitiation /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string ExtendedPurpose { get; set; } /// @@ -12715,8 +12332,7 @@ public class OBWriteInternationalStandingOrderResponse7DataInitiation /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string NumberOfPayments { get; set; } /// @@ -12727,8 +12343,7 @@ public class OBWriteInternationalStandingOrderResponse7DataInitiation /// Max length: 4 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(1, 4)] public string Purpose { get; set; } /// @@ -12739,8 +12354,7 @@ public class OBWriteInternationalStandingOrderResponse7DataInitiation /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Reference { get; set; } /// @@ -12759,8 +12373,7 @@ public class OBWriteInternationalStandingOrderResponse7DataInitiationCreditor /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -12781,8 +12394,7 @@ public class OBWriteInternationalStandingOrderResponse7DataInitiationCreditorAcc /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -12795,8 +12407,7 @@ public class OBWriteInternationalStandingOrderResponse7DataInitiationCreditorAcc /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -12814,8 +12425,7 @@ public class OBWriteInternationalStandingOrderResponse7DataInitiationCreditorAcc /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -12828,8 +12438,7 @@ public class OBWriteInternationalStandingOrderResponse7DataInitiationCreditorAge /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Identification { get; set; } /// @@ -12838,8 +12447,7 @@ public class OBWriteInternationalStandingOrderResponse7DataInitiationCreditorAge /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Name { get; set; } /// @@ -12866,8 +12474,7 @@ public class OBWriteInternationalStandingOrderResponse7DataInitiationDebtorAccou /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -12877,8 +12484,7 @@ public class OBWriteInternationalStandingOrderResponse7DataInitiationDebtorAccou /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -12896,8 +12502,7 @@ public class OBWriteInternationalStandingOrderResponse7DataInitiationDebtorAccou /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -13000,8 +12605,7 @@ public class OBWriteInternationalStandingOrderResponse7DataRefundAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string Identification { get; set; } /// @@ -13014,8 +12618,7 @@ public class OBWriteInternationalStandingOrderResponse7DataRefundAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -13033,8 +12636,7 @@ public class OBWriteInternationalStandingOrderResponse7DataRefundAccount /// Max length: 34 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(1, 34)] public string SecondaryIdentification { get; set; } } @@ -13047,8 +12649,7 @@ public class OBWriteInternationalStandingOrderResponse7DataRefundAgent /// Max length: 35 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Identification { get; set; } /// @@ -13057,8 +12658,7 @@ public class OBWriteInternationalStandingOrderResponse7DataRefundAgent /// Max length: 140 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(140)] + [System.ComponentModel.DataAnnotations.Length(1, 140)] public string Name { get; set; } /// @@ -13083,8 +12683,7 @@ public class OBWriteInternationalStandingOrderResponse7DataRefundCreditor /// Max length: 350 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(350)] + [System.ComponentModel.DataAnnotations.Length(1, 350)] public string Name { get; set; } /// @@ -13136,8 +12735,7 @@ public class OBWritePaymentDetailsResponse1DataPaymentStatus /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(210)] + [System.ComponentModel.DataAnnotations.Length(1, 210)] public string PaymentTransactionId { get; set; } /// @@ -13248,8 +12846,7 @@ public class OBWritePaymentDetailsResponse1DataPaymentStatusStatusDetail /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Status { get; set; } /// @@ -13264,8 +12861,7 @@ public class OBWritePaymentDetailsResponse1DataPaymentStatusStatusDetail /// Max length: 256 /// [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string StatusReasonDescription { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/optimade_local_1_1_0_develop_.cs b/Tests/CsOpenApi3TestsResults/optimade_local_1_1_0_develop_.cs index f5aeb8f2..2ab74392 100644 --- a/Tests/CsOpenApi3TestsResults/optimade_local_1_1_0_develop_.cs +++ b/Tests/CsOpenApi3TestsResults/optimade_local_1_1_0_develop_.cs @@ -105,8 +105,7 @@ public class AvailableApiVersion /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="url")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65536)] + [System.ComponentModel.DataAnnotations.Length(1, 65536)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".+/v[0-1](\.[0-9]+)*/?$")] public string Url { get; set; } @@ -1350,8 +1349,7 @@ public class Link /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="href")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65536)] + [System.ComponentModel.DataAnnotations.Length(1, 65536)] public string Href { get; set; } /// @@ -1887,8 +1885,7 @@ public class ReferenceResourceAttributes /// Max length: 65536 /// [System.Runtime.Serialization.DataMember(Name="url")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65536)] + [System.ComponentModel.DataAnnotations.Length(1, 65536)] public string Url { get; set; } /// @@ -2453,8 +2450,7 @@ public class StructureResourceAttributes /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="dimension_types")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] public Periodicity[] Dimension_types { get; set; } /// @@ -2570,8 +2566,7 @@ public class StructureResourceAttributes /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="lattice_vectors")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] public string[] Lattice_vectors { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/pay1_de_link_v1_.cs b/Tests/CsOpenApi3TestsResults/pay1_de_link_v1_.cs index 0a03459d..bab61655 100644 --- a/Tests/CsOpenApi3TestsResults/pay1_de_link_v1_.cs +++ b/Tests/CsOpenApi3TestsResults/pay1_de_link_v1_.cs @@ -28,8 +28,7 @@ public class AddressDataDto /// Max length: 50 /// [System.Runtime.Serialization.DataMember(Name="addressAddition")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string AddressAddition { get; set; } /// @@ -39,8 +38,7 @@ public class AddressDataDto /// Pattern: ^[^\u0000\\!=<>?+;"*\d]+$ /// [System.Runtime.Serialization.DataMember(Name="city")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[^\u0000\\!=<>?+;""*\d]+$")] public string City { get; set; } @@ -50,8 +48,7 @@ public class AddressDataDto /// Max length: 50 /// [System.Runtime.Serialization.DataMember(Name="company")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(2, 50)] public string Company { get; set; } /// @@ -61,8 +58,7 @@ public class AddressDataDto /// Pattern: [A-Z]{2} /// [System.Runtime.Serialization.DataMember(Name="country")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-Z]{2}")] public string Country { get; set; } @@ -72,8 +68,7 @@ public class AddressDataDto /// Max length: 50 /// [System.Runtime.Serialization.DataMember(Name="firstName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string FirstName { get; set; } /// @@ -82,8 +77,7 @@ public class AddressDataDto /// Max length: 50 /// [System.Runtime.Serialization.DataMember(Name="lastName")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(2, 50)] public string LastName { get; set; } /// @@ -93,8 +87,7 @@ public class AddressDataDto /// Pattern: [A-Z]{2} /// [System.Runtime.Serialization.DataMember(Name="state")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[A-Z]{2}")] public string State { get; set; } @@ -104,8 +97,7 @@ public class AddressDataDto /// Max length: 50 /// [System.Runtime.Serialization.DataMember(Name="street")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(2, 50)] public string Street { get; set; } /// @@ -115,8 +107,7 @@ public class AddressDataDto /// Pattern: [0-9A-Za-z_.\-/]{2,10} /// [System.Runtime.Serialization.DataMember(Name="zip")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(2, 10)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9A-Za-z_.\-/]{2,10}")] public string Zip { get; set; } } @@ -143,8 +134,7 @@ public class CartItemDto /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Description { get; set; } /// @@ -156,8 +146,7 @@ public class CartItemDto /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="number")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(1, 32)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"[0-9A-Za-z(){} +\-_#/:\[\]]{1,32}")] public string Number { get; set; } @@ -231,8 +220,7 @@ public class InvoiceInformationDto /// Max length: 20 /// [System.Runtime.Serialization.DataMember(Name="invoiceId")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(0, 20)] public string InvoiceId { get; set; } /// @@ -241,8 +229,7 @@ public class InvoiceInformationDto /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="invoiceText")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string InvoiceText { get; set; } } @@ -286,8 +273,7 @@ public class LinkCreateRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="currency")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] public LinkCreateRequestCurrency Currency { get; set; } /// @@ -296,8 +282,7 @@ public class LinkCreateRequest /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Description { get; set; } /// @@ -306,8 +291,7 @@ public class LinkCreateRequest /// Max length: 254 /// [System.Runtime.Serialization.DataMember(Name="email")] - [System.ComponentModel.DataAnnotations.MinLength(4)] - [System.ComponentModel.DataAnnotations.MaxLength(254)] + [System.ComponentModel.DataAnnotations.Length(4, 254)] public string Email { get; set; } /// @@ -406,8 +390,7 @@ public class LinkCreateRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="shoppingCart")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(400)] + [System.ComponentModel.DataAnnotations.Length(1, 400)] public CartItemDto[] ShoppingCart { get; set; } /// @@ -1043,8 +1026,7 @@ public class LinkResponse /// Max length: 3 /// [System.Runtime.Serialization.DataMember(Name="currency")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] public LinkCreateRequestCurrency Currency { get; set; } /// @@ -1061,8 +1043,7 @@ public class LinkResponse /// Max length: 254 /// [System.Runtime.Serialization.DataMember(Name="email")] - [System.ComponentModel.DataAnnotations.MinLength(4)] - [System.ComponentModel.DataAnnotations.MaxLength(254)] + [System.ComponentModel.DataAnnotations.Length(4, 254)] public string Email { get; set; } /// @@ -1089,8 +1070,7 @@ public class LinkResponse /// Max length: 32 /// [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(32)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(32, 32)] public string Id { get; set; } /// @@ -1184,8 +1164,7 @@ public class LinkResponse /// Max length: 20 /// [System.Runtime.Serialization.DataMember(Name="reference")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(1, 20)] public string Reference { get; set; } [System.Runtime.Serialization.DataMember(Name="shipping")] diff --git a/Tests/CsOpenApi3TestsResults/pinecone_io_20230406_1_.cs b/Tests/CsOpenApi3TestsResults/pinecone_io_20230406_1_.cs index a00578fc..dcf585e3 100644 --- a/Tests/CsOpenApi3TestsResults/pinecone_io_20230406_1_.cs +++ b/Tests/CsOpenApi3TestsResults/pinecone_io_20230406_1_.cs @@ -66,8 +66,7 @@ public class CollectionDefinition /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="source")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(45)] + [System.ComponentModel.DataAnnotations.Length(1, 45)] public string Source { get; set; } } @@ -252,8 +251,7 @@ public class IndexDatabase /// Max length: 45 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(45)] + [System.ComponentModel.DataAnnotations.Length(1, 45)] public string Name { get; set; } /// @@ -474,8 +472,7 @@ public class IndexDefinition /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(45)] + [System.ComponentModel.DataAnnotations.Length(1, 45)] public string Name { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/plaid_com_2020_09_14_1_345_1_.cs b/Tests/CsOpenApi3TestsResults/plaid_com_2020_09_14_1_345_1_.cs index 37ac7f8e..25ec342a 100644 --- a/Tests/CsOpenApi3TestsResults/plaid_com_2020_09_14_1_345_1_.cs +++ b/Tests/CsOpenApi3TestsResults/plaid_com_2020_09_14_1_345_1_.cs @@ -3632,8 +3632,7 @@ public class AssetReportCreateRequest /// Maximum items: 99 /// [System.Runtime.Serialization.DataMember(Name="access_tokens")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(99)] + [System.ComponentModel.DataAnnotations.Length(1, 99)] public string[] Access_tokens { get; set; } /// @@ -14473,8 +14472,7 @@ public class DepositSwitchCreateRequestOptions /// Maximum items: 99 /// [System.Runtime.Serialization.DataMember(Name="transaction_item_access_tokens")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(99)] + [System.ComponentModel.DataAnnotations.Length(1, 99)] public string[] Transaction_item_access_tokens { get; set; } /// @@ -16093,8 +16091,7 @@ public class TaxpayerID /// Max length: 4 /// [System.Runtime.Serialization.DataMember(Name="last_4_digits")] - [System.ComponentModel.DataAnnotations.MinLength(4)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(4, 4)] public string Last_4_digits { get; set; } } @@ -17582,8 +17579,7 @@ public class ExternalPaymentInitiationConsentOptions /// Max length: 34 /// [System.Runtime.Serialization.DataMember(Name="iban")] - [System.ComponentModel.DataAnnotations.MinLength(15)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(15, 34)] public string Iban { get; set; } /// @@ -17612,8 +17608,7 @@ public class ExternalPaymentOptions /// Max length: 34 /// [System.Runtime.Serialization.DataMember(Name="iban")] - [System.ComponentModel.DataAnnotations.MinLength(15)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(15, 34)] public string Iban { get; set; } /// @@ -29598,8 +29593,7 @@ public class Meta /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="mask")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(2, 4)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Za-z0-9]{2,4}$")] public string Mask { get; set; } @@ -29753,8 +29747,7 @@ public class NumbersInternationalIBAN /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="bic")] - [System.ComponentModel.DataAnnotations.MinLength(8)] - [System.ComponentModel.DataAnnotations.MaxLength(11)] + [System.ComponentModel.DataAnnotations.Length(8, 11)] public string Bic { get; set; } /// @@ -29765,8 +29758,7 @@ public class NumbersInternationalIBAN /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="iban")] - [System.ComponentModel.DataAnnotations.MinLength(15)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(15, 34)] public string Iban { get; set; } } @@ -31136,8 +31128,7 @@ public class PaymentAmount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="currency")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] public PaymentAmountCurrency Currency { get; set; } /// @@ -31187,8 +31178,7 @@ public class PaymentAmountNullable /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="currency")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] public PaymentAmountCurrency Currency { get; set; } /// @@ -31382,8 +31372,7 @@ public class PaymentInitiationAddress /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="city")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string City { get; set; } /// @@ -31394,8 +31383,7 @@ public class PaymentInitiationAddress /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="country")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] public string Country { get; set; } /// @@ -31406,8 +31394,7 @@ public class PaymentInitiationAddress /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="postal_code")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(16)] + [System.ComponentModel.DataAnnotations.Length(1, 16)] public string Postal_code { get; set; } /// @@ -31612,8 +31599,7 @@ public class PaymentInitiationConsentCreateRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="reference")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(1, 18)] public string Reference { get; set; } /// @@ -31750,8 +31736,7 @@ public class PaymentInitiationConsentPaymentExecuteRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="idempotency_key")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Idempotency_key { get; set; } /// @@ -32185,8 +32170,7 @@ public class PaymentInitiationPaymentCreateRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="reference")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(1, 18)] public string Reference { get; set; } /// @@ -32401,8 +32385,7 @@ public class PaymentInitiationPaymentReverseRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="idempotency_key")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Idempotency_key { get; set; } /// @@ -32421,8 +32404,7 @@ public class PaymentInitiationPaymentReverseRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="reference")] - [System.ComponentModel.DataAnnotations.MinLength(6)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(6, 18)] public string Reference { get; set; } /// @@ -32713,8 +32695,7 @@ public class PaymentInitiationRecipientCreateRequest /// Max length: 34 /// [System.Runtime.Serialization.DataMember(Name="iban")] - [System.ComponentModel.DataAnnotations.MinLength(15)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(15, 34)] public string Iban { get; set; } /// @@ -33977,8 +33958,7 @@ public class ProcessorSignalDecisionReportRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="client_transaction_id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] public string Client_transaction_id { get; set; } /// @@ -34144,8 +34124,7 @@ public class ProcessorSignalEvaluateRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="client_transaction_id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] public string Client_transaction_id { get; set; } /// @@ -34783,8 +34762,7 @@ public class ProcessorSignalReturnReportRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="client_transaction_id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] public string Client_transaction_id { get; set; } /// @@ -35222,8 +35200,7 @@ public class RecipientBACS /// Max length: 10 /// [System.Runtime.Serialization.DataMember(Name="account")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public string Account { get; set; } /// @@ -35232,8 +35209,7 @@ public class RecipientBACS /// Max length: 6 /// [System.Runtime.Serialization.DataMember(Name="sort_code")] - [System.ComponentModel.DataAnnotations.MinLength(6)] - [System.ComponentModel.DataAnnotations.MaxLength(6)] + [System.ComponentModel.DataAnnotations.Length(6, 6)] public string Sort_code { get; set; } } @@ -37728,8 +37704,7 @@ public class SignalDecisionReportRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="client_transaction_id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] public string Client_transaction_id { get; set; } /// @@ -37862,8 +37837,7 @@ public class SignalEvaluateRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="client_transaction_id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] public string Client_transaction_id { get; set; } /// @@ -38094,8 +38068,7 @@ public class SignalReturnReportRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="client_transaction_id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] public string Client_transaction_id { get; set; } /// @@ -42702,8 +42675,7 @@ public class TransferIntentCreateRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(8)] + [System.ComponentModel.DataAnnotations.Length(1, 8)] public string Description { get; set; } /// @@ -45009,8 +44981,7 @@ public class UserCreateRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="client_user_id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Client_user_id { get; set; } /// @@ -45482,8 +45453,7 @@ public class WalletCreateRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="iso_currency_code")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] public WalletCreateRequestIso_currency_code Iso_currency_code { get; set; } /// @@ -45600,8 +45570,7 @@ public class WalletListRequest /// Max length: 3 /// [System.Runtime.Serialization.DataMember(Name="iso_currency_code")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] public WalletCreateRequestIso_currency_code Iso_currency_code { get; set; } /// @@ -45763,8 +45732,7 @@ public class WalletTransactionAmount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="iso_currency_code")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] public WalletCreateRequestIso_currency_code Iso_currency_code { get; set; } /// @@ -45837,8 +45805,7 @@ public class WalletTransactionCounterpartyInternational /// Max length: 34 /// [System.Runtime.Serialization.DataMember(Name="iban")] - [System.ComponentModel.DataAnnotations.MinLength(15)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(15, 34)] public string Iban { get; set; } } @@ -45909,8 +45876,7 @@ public class WalletTransactionExecuteRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="idempotency_key")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Idempotency_key { get; set; } /// @@ -45922,8 +45888,7 @@ public class WalletTransactionExecuteRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="reference")] - [System.ComponentModel.DataAnnotations.MinLength(6)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(6, 18)] public string Reference { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/portfoliooptimizer_io_1_0_9_.cs b/Tests/CsOpenApi3TestsResults/portfoliooptimizer_io_1_0_9_.cs index c91b45d0..098efb68 100644 --- a/Tests/CsOpenApi3TestsResults/portfoliooptimizer_io_1_0_9_.cs +++ b/Tests/CsOpenApi3TestsResults/portfoliooptimizer_io_1_0_9_.cs @@ -4347,8 +4347,7 @@ public class AssetsCorrelationMatrixTheory_impliedPostPostBodyAssets /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="assetHierarchicalClassification")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(1, 4)] public string[] AssetHierarchicalClassification { get; set; } } @@ -5330,8 +5329,7 @@ public class AssetsReturnsSimulationMonte_carloCornish_fisherPostReturnSimulatio /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="assets")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public AssetsReturnsSimulationMonte_carloCornish_fisherPostReturnSimulationsAssets[] AssetsReturnsSimulationMonte_carloCornish_fisherPostReturnSimulationsAssets { get; set; } } @@ -5425,8 +5423,7 @@ public class AssetsReturnsSimulationMonte_carloCornish_fisherCorrectedPostReturn /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="assets")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public AssetsReturnsSimulationMonte_carloCornish_fisherCorrectedPostReturnSimulationsAssets[] AssetsReturnsSimulationMonte_carloCornish_fisherCorrectedPostReturnSimulationsAssets { get; set; } } @@ -5504,8 +5501,7 @@ public class AssetsReturnsSimulationMonte_carloGaussianPostReturnSimulations /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="assets")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public AssetsReturnsSimulationMonte_carloGaussianPostReturnSimulationsAssets[] AssetsReturnsSimulationMonte_carloGaussianPostReturnSimulationsAssets { get; set; } } @@ -5543,8 +5539,7 @@ public class AssetsReturnsTurbulence_partitionedPostPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="turbulenceThresholds")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(1, 3)] public double[] TurbulenceThresholds { get; set; } /// @@ -5603,8 +5598,7 @@ public class AssetsReturnsTurbulence_partitionedPostReturnAssets /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="assetTurbulencePartitionedReturns")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(2, 4)] public AssetsReturnsTurbulence_partitionedPostReturnAssetsAssetTurbulencePartitionedReturns[] AssetsReturnsTurbulence_partitionedPostReturnAssetsAssetTurbulencePartitionedReturns { get; set; } } @@ -6921,8 +6915,7 @@ public class PortfolioAnalysisSharpe_ratioConfidence_intervalPostReturnPortfolio /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="portfolioSharpeRatioConfidenceInterval")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] public double[] PortfolioSharpeRatioConfidenceInterval { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/prss_org_2_0_0_.cs b/Tests/CsOpenApi3TestsResults/prss_org_2_0_0_.cs index 375a99af..98d07cf0 100644 --- a/Tests/CsOpenApi3TestsResults/prss_org_2_0_0_.cs +++ b/Tests/CsOpenApi3TestsResults/prss_org_2_0_0_.cs @@ -39,8 +39,7 @@ public class BroadcastService /// Max length: 1200 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1200)] + [System.ComponentModel.DataAnnotations.Length(0, 1200)] public string Description { get; set; } /// @@ -69,8 +68,7 @@ public class BroadcastService /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Name { get; set; } } @@ -117,8 +115,7 @@ public class CDDriveFile /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9][a-zA-Z0-9 \._]*[a-zA-Z0-9]$")] public string Name { get; set; } @@ -182,8 +179,7 @@ public class CDDriveFolder /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9][a-zA-Z0-9 \._]*[a-zA-Z0-9]$")] public string Name { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/randommer_io_v1_.cs b/Tests/CsOpenApi3TestsResults/randommer_io_v1_.cs index 0fb88739..e780dd16 100644 --- a/Tests/CsOpenApi3TestsResults/randommer_io_v1_.cs +++ b/Tests/CsOpenApi3TestsResults/randommer_io_v1_.cs @@ -90,8 +90,7 @@ public class NumberValidation /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="country")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(1, 2)] public string Country { get; set; } /// @@ -101,8 +100,7 @@ public class NumberValidation /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="number")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Number { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/rawg_io_v1_0_.cs b/Tests/CsOpenApi3TestsResults/rawg_io_v1_0_.cs index 962f4c1d..9ddf301e 100644 --- a/Tests/CsOpenApi3TestsResults/rawg_io_v1_0_.cs +++ b/Tests/CsOpenApi3TestsResults/rawg_io_v1_0_.cs @@ -42,8 +42,7 @@ public class Developer /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Name { get; set; } /// @@ -83,8 +82,7 @@ public class DeveloperSingle /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Name { get; set; } /// @@ -622,8 +620,7 @@ public class GameStoreFull /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="url")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(1, 500)] public string Url { get; set; } } @@ -651,8 +648,7 @@ public class Genre /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Name { get; set; } /// @@ -692,8 +688,7 @@ public class GenreSingle /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Name { get; set; } /// @@ -875,8 +870,7 @@ public class Platform /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Name { get; set; } /// @@ -919,8 +913,7 @@ public class PlatformParentSingle /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Name { get; set; } /// @@ -966,8 +959,7 @@ public class PlatformSingle /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Name { get; set; } /// @@ -1044,8 +1036,7 @@ public class Publisher /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Name { get; set; } /// @@ -1085,8 +1076,7 @@ public class PublisherSingle /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Name { get; set; } /// @@ -1209,8 +1199,7 @@ public class Store /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Name { get; set; } /// @@ -1257,8 +1246,7 @@ public class StoreSingle /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Name { get; set; } /// @@ -1302,8 +1290,7 @@ public class Tag /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Name { get; set; } /// @@ -1343,8 +1330,7 @@ public class TagSingle /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Name { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/shipengine_com_1_1_202304191404_.cs b/Tests/CsOpenApi3TestsResults/shipengine_com_1_1_202304191404_.cs index 98489ad9..4b78f350 100644 --- a/Tests/CsOpenApi3TestsResults/shipengine_com_1_1_202304191404_.cs +++ b/Tests/CsOpenApi3TestsResults/shipengine_com_1_1_202304191404_.cs @@ -97,8 +97,7 @@ public class Account_settings_images /// Max length: 50 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string Name { get; set; } } @@ -5461,8 +5460,7 @@ public class Package /// Max length: 35 /// [System.Runtime.Serialization.DataMember(Name="content_description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(1, 35)] public string Content_description { get; set; } /// @@ -8348,8 +8346,7 @@ public class Shipment_item /// Max length: 10 /// [System.Runtime.Serialization.DataMember(Name="asin")] - [System.ComponentModel.DataAnnotations.MinLength(10)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(10, 10)] public string Asin { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/shutterstock_com_1_1_32_.cs b/Tests/CsOpenApi3TestsResults/shutterstock_com_1_1_32_.cs index e69c66fe..02db0004 100644 --- a/Tests/CsOpenApi3TestsResults/shutterstock_com_1_1_32_.cs +++ b/Tests/CsOpenApi3TestsResults/shutterstock_com_1_1_32_.cs @@ -2969,8 +2969,7 @@ public class CreateCatalogCollection /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100000)] + [System.ComponentModel.DataAnnotations.Length(1, 100000)] public string Name { get; set; } [System.Runtime.Serialization.DataMember(Name="visibility")] @@ -3025,8 +3024,7 @@ public class CreateCatalogCollectionItems /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="items")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public CreateCatalogCollectionItem[] Items { get; set; } } @@ -6040,8 +6038,7 @@ public class RemoveCatalogCollectionItems /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="items")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public RemoveCatalogCollectionItem[] Items { get; set; } } @@ -6259,8 +6256,7 @@ public class SearchEntitiesRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="text")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100000)] + [System.ComponentModel.DataAnnotations.Length(1, 100000)] public string Text { get; set; } } @@ -6503,8 +6499,7 @@ public class UpdateCatalogCollection /// Max length: 100000 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100000)] + [System.ComponentModel.DataAnnotations.Length(1, 100000)] public string Name { get; set; } [System.Runtime.Serialization.DataMember(Name="visibility")] diff --git a/Tests/CsOpenApi3TestsResults/spacetraders_io_2_0_0_.cs b/Tests/CsOpenApi3TestsResults/spacetraders_io_2_0_0_.cs index 75af6656..cfa96491 100644 --- a/Tests/CsOpenApi3TestsResults/spacetraders_io_2_0_0_.cs +++ b/Tests/CsOpenApi3TestsResults/spacetraders_io_2_0_0_.cs @@ -1508,8 +1508,7 @@ public class RegisterPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="symbol")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(14)] + [System.ComponentModel.DataAnnotations.Length(3, 14)] public string Symbol { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/squareup_com_2_0_.cs b/Tests/CsOpenApi3TestsResults/squareup_com_2_0_.cs index 8955faf5..779906de 100644 --- a/Tests/CsOpenApi3TestsResults/squareup_com_2_0_.cs +++ b/Tests/CsOpenApi3TestsResults/squareup_com_2_0_.cs @@ -31,8 +31,7 @@ public class ACHDetails /// Max length: 4 /// [System.Runtime.Serialization.DataMember(Name="account_number_suffix")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(1, 4)] public string Account_number_suffix { get; set; } /// @@ -105,8 +104,7 @@ public class Dispute /// Max length: 40 /// [System.Runtime.Serialization.DataMember(Name="brand_dispute_id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string Brand_dispute_id { get; set; } /// @@ -121,8 +119,7 @@ public class Dispute /// Max length: 40 /// [System.Runtime.Serialization.DataMember(Name="created_at")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string Created_at { get; set; } /// @@ -131,8 +128,7 @@ public class Dispute /// Max length: 40 /// [System.Runtime.Serialization.DataMember(Name="dispute_id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string Dispute_id { get; set; } /// @@ -147,8 +143,7 @@ public class Dispute /// Max length: 40 /// [System.Runtime.Serialization.DataMember(Name="due_at")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string Due_at { get; set; } /// @@ -163,8 +158,7 @@ public class Dispute /// Max length: 40 /// [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string Id { get; set; } /// @@ -173,8 +167,7 @@ public class Dispute /// Max length: 40 /// [System.Runtime.Serialization.DataMember(Name="location_id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string Location_id { get; set; } /// @@ -189,8 +182,7 @@ public class Dispute /// Max length: 40 /// [System.Runtime.Serialization.DataMember(Name="reported_at")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string Reported_at { get; set; } /// @@ -199,8 +191,7 @@ public class Dispute /// Max length: 40 /// [System.Runtime.Serialization.DataMember(Name="reported_date")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string Reported_date { get; set; } /// @@ -215,8 +206,7 @@ public class Dispute /// Max length: 40 /// [System.Runtime.Serialization.DataMember(Name="updated_at")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string Updated_at { get; set; } /// @@ -270,8 +260,7 @@ public class DisputedPayment /// Max length: 192 /// [System.Runtime.Serialization.DataMember(Name="payment_id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(192)] + [System.ComponentModel.DataAnnotations.Length(1, 192)] public string Payment_id { get; set; } } @@ -338,8 +327,7 @@ public class AccumulateLoyaltyPointsRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="idempotency_key")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Idempotency_key { get; set; } /// @@ -475,8 +463,7 @@ public class LoyaltyEvent /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="loyalty_account_id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] public string Loyalty_account_id { get; set; } /// @@ -553,8 +540,7 @@ public class LoyaltyEventCreateReward /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="loyalty_program_id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] public string Loyalty_program_id { get; set; } /// @@ -592,8 +578,7 @@ public class LoyaltyEventDeleteReward /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="loyalty_program_id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] public string Loyalty_program_id { get; set; } /// @@ -631,8 +616,7 @@ public class LoyaltyEventExpirePoints /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="loyalty_program_id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] public string Loyalty_program_id { get; set; } /// @@ -661,8 +645,7 @@ public class LoyaltyEventOther /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="loyalty_program_id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] public string Loyalty_program_id { get; set; } /// @@ -689,8 +672,7 @@ public class LoyaltyEventRedeemReward /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="loyalty_program_id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] public string Loyalty_program_id { get; set; } /// @@ -784,8 +766,7 @@ public class AdditionalRecipient /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="location_id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string Location_id { get; set; } /// @@ -954,8 +935,7 @@ public class AdjustLoyaltyPointsRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="idempotency_key")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Idempotency_key { get; set; } } @@ -1159,8 +1139,7 @@ public class BankAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(30)] + [System.ComponentModel.DataAnnotations.Length(1, 30)] public string Id { get; set; } /// @@ -1247,8 +1226,7 @@ public class BankAccountPaymentDetails /// Max length: 2 /// [System.Runtime.Serialization.DataMember(Name="country")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] public string Country { get; set; } /// @@ -1348,8 +1326,7 @@ public class BatchChangeInventoryRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="idempotency_key")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Idempotency_key { get; set; } /// @@ -2519,8 +2496,7 @@ public class CatalogCustomAttributeDefinition /// Pattern: ^[a-zA-Z0-9_-]*$ /// [System.Runtime.Serialization.DataMember(Name="key")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(60)] + [System.ComponentModel.DataAnnotations.Length(1, 60)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9_-]*$")] public string Key { get; set; } @@ -2534,8 +2510,7 @@ public class CatalogCustomAttributeDefinition /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } [System.Runtime.Serialization.DataMember(Name="number_config")] @@ -2639,8 +2614,7 @@ public class CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelec /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -3375,8 +3349,7 @@ public class CatalogStockConversion /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="nonstockable_quantity")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(16)] + [System.ComponentModel.DataAnnotations.Length(1, 16)] public string Nonstockable_quantity { get; set; } /// @@ -3404,8 +3377,7 @@ public class CatalogStockConversion /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="stockable_quantity")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(16)] + [System.ComponentModel.DataAnnotations.Length(1, 16)] public string Stockable_quantity { get; set; } } @@ -5111,8 +5083,7 @@ public class OrderLineItem /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="quantity")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(1, 12)] public string Quantity { get; set; } /// @@ -5218,8 +5189,7 @@ public class OrderLineItemAppliedDiscount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="discount_uid")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(60)] + [System.ComponentModel.DataAnnotations.Length(1, 60)] public string Discount_uid { get; set; } /// @@ -5266,8 +5236,7 @@ public class OrderLineItemAppliedTax /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="tax_uid")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(60)] + [System.ComponentModel.DataAnnotations.Length(1, 60)] public string Tax_uid { get; set; } /// @@ -5928,8 +5897,7 @@ public class OrderReturnLineItem /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="quantity")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(1, 12)] public string Quantity { get; set; } /// @@ -8102,8 +8070,7 @@ public class Invoice /// Max length: 65536 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65536)] + [System.ComponentModel.DataAnnotations.Length(1, 65536)] public string Description { get; set; } /// @@ -8121,8 +8088,7 @@ public class Invoice /// Max length: 191 /// [System.Runtime.Serialization.DataMember(Name="invoice_number")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(191)] + [System.ComponentModel.DataAnnotations.Length(1, 191)] public string Invoice_number { get; set; } /// @@ -8133,8 +8099,7 @@ public class Invoice /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="location_id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Location_id { get; set; } /// @@ -8158,8 +8123,7 @@ public class Invoice /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="order_id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Order_id { get; set; } /// @@ -8235,8 +8199,7 @@ public class Invoice /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="title")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Title { get; set; } /// @@ -8341,8 +8304,7 @@ public class InvoicePaymentRequest /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="card_id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Card_id { get; set; } /// @@ -8455,8 +8417,7 @@ public class InvoicePaymentRequest /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="uid")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Uid { get; set; } } @@ -8475,8 +8436,7 @@ public class InvoicePaymentReminder /// Max length: 1000 /// [System.Runtime.Serialization.DataMember(Name="message")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] public string Message { get; set; } /// @@ -8563,8 +8523,7 @@ public class InvoiceRecipient /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="customer_id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Customer_id { get; set; } /// @@ -8608,8 +8567,7 @@ public class CancelPaymentByIdempotencyKeyRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="idempotency_key")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(45)] + [System.ComponentModel.DataAnnotations.Length(1, 45)] public string Idempotency_key { get; set; } } @@ -9648,8 +9606,7 @@ public class TerminalCheckout /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(10)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(10, 255)] public string Id { get; set; } /// @@ -9853,8 +9810,7 @@ public class TerminalRefund /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(10)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(10, 255)] public string Id { get; set; } /// @@ -11257,8 +11213,7 @@ public class ChargeRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="idempotency_key")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(192)] + [System.ComponentModel.DataAnnotations.Length(1, 192)] public string Idempotency_key { get; set; } /// @@ -11364,8 +11319,7 @@ public class ChargeRequestAdditionalRecipient /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Description { get; set; } /// @@ -11376,8 +11330,7 @@ public class ChargeRequestAdditionalRecipient /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="location_id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string Location_id { get; set; } } @@ -12624,8 +12577,7 @@ public class CreateCardRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="source_id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(16384)] + [System.ComponentModel.DataAnnotations.Length(1, 16384)] public string Source_id { get; set; } /// @@ -12714,8 +12666,7 @@ public class CreateCheckoutRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="idempotency_key")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(192)] + [System.ComponentModel.DataAnnotations.Length(1, 192)] public string Idempotency_key { get; set; } /// @@ -13374,8 +13325,7 @@ public class CreateDeviceCodeRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="idempotency_key")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Idempotency_key { get; set; } } @@ -13485,8 +13435,7 @@ public class CreateDisputeEvidenceTextRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="evidence_text")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(1, 500)] public string Evidence_text { get; set; } /// @@ -13503,8 +13452,7 @@ public class CreateDisputeEvidenceTextRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="idempotency_key")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(45)] + [System.ComponentModel.DataAnnotations.Length(1, 45)] public string Idempotency_key { get; set; } } @@ -13535,8 +13483,7 @@ public class DisputeEvidence /// Max length: 40 /// [System.Runtime.Serialization.DataMember(Name="dispute_id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string Dispute_id { get; set; } /// @@ -13551,8 +13498,7 @@ public class DisputeEvidence /// Max length: 40 /// [System.Runtime.Serialization.DataMember(Name="evidence_id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string Evidence_id { get; set; } /// @@ -13561,8 +13507,7 @@ public class DisputeEvidence /// Max length: 500 /// [System.Runtime.Serialization.DataMember(Name="evidence_text")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(1, 500)] public string Evidence_text { get; set; } /// @@ -13577,8 +13522,7 @@ public class DisputeEvidence /// Max length: 40 /// [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string Id { get; set; } /// @@ -13587,8 +13531,7 @@ public class DisputeEvidence /// Max length: 40 /// [System.Runtime.Serialization.DataMember(Name="uploaded_at")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string Uploaded_at { get; set; } } @@ -13605,8 +13548,7 @@ public class DisputeEvidenceFile /// Max length: 40 /// [System.Runtime.Serialization.DataMember(Name="filename")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string Filename { get; set; } /// @@ -13615,8 +13557,7 @@ public class DisputeEvidenceFile /// Max length: 40 /// [System.Runtime.Serialization.DataMember(Name="filetype")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string Filetype { get; set; } } @@ -13643,8 +13584,7 @@ public class CreateGiftCardActivityRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="idempotency_key")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Idempotency_key { get; set; } } @@ -14203,8 +14143,7 @@ public class CreateGiftCardRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="idempotency_key")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Idempotency_key { get; set; } /// @@ -14641,8 +14580,7 @@ public class CreateLoyaltyAccountRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="idempotency_key")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Idempotency_key { get; set; } /// @@ -14730,8 +14668,7 @@ public class LoyaltyAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="program_id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] public string Program_id { get; set; } /// @@ -14835,8 +14772,7 @@ public class CreateLoyaltyRewardRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="idempotency_key")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Idempotency_key { get; set; } /// @@ -14877,8 +14813,7 @@ public class LoyaltyReward /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="loyalty_account_id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] public string Loyalty_account_id { get; set; } /// @@ -14909,8 +14844,7 @@ public class LoyaltyReward /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="reward_tier_id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] public string Reward_tier_id { get; set; } /// @@ -14960,8 +14894,7 @@ public class CreateMobileAuthorizationCodeRequest /// Max length: 191 /// [System.Runtime.Serialization.DataMember(Name="location_id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(191)] + [System.ComponentModel.DataAnnotations.Length(1, 191)] public string Location_id { get; set; } } @@ -14980,8 +14913,7 @@ public class CreateMobileAuthorizationCodeResponse /// Max length: 191 /// [System.Runtime.Serialization.DataMember(Name="authorization_code")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(191)] + [System.ComponentModel.DataAnnotations.Length(0, 191)] public string Authorization_code { get; set; } /// @@ -14999,8 +14931,7 @@ public class CreateMobileAuthorizationCodeResponse /// Max length: 48 /// [System.Runtime.Serialization.DataMember(Name="expires_at")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(48)] + [System.ComponentModel.DataAnnotations.Length(20, 48)] public string Expires_at { get; set; } } @@ -15189,8 +15120,7 @@ public class CreatePaymentRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="idempotency_key")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(45)] + [System.ComponentModel.DataAnnotations.Length(1, 45)] public string Idempotency_key { get; set; } /// @@ -15374,8 +15304,7 @@ public class CreateRefundRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="idempotency_key")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(192)] + [System.ComponentModel.DataAnnotations.Length(1, 192)] public string Idempotency_key { get; set; } /// @@ -15400,8 +15329,7 @@ public class CreateRefundRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="tender_id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(192)] + [System.ComponentModel.DataAnnotations.Length(1, 192)] public string Tender_id { get; set; } } @@ -15758,8 +15686,7 @@ public class CreateTerminalCheckoutRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="idempotency_key")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string Idempotency_key { get; set; } } @@ -17125,8 +17052,7 @@ public class DeprecatedCreateDisputeEvidenceFileRequest /// Max length: 40 /// [System.Runtime.Serialization.DataMember(Name="content_type")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string Content_type { get; set; } /// @@ -17143,8 +17069,7 @@ public class DeprecatedCreateDisputeEvidenceFileRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="idempotency_key")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(45)] + [System.ComponentModel.DataAnnotations.Length(1, 45)] public string Idempotency_key { get; set; } } @@ -17180,8 +17105,7 @@ public class DeprecatedCreateDisputeEvidenceTextRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="evidence_text")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(1, 500)] public string Evidence_text { get; set; } /// @@ -17198,8 +17122,7 @@ public class DeprecatedCreateDisputeEvidenceTextRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="idempotency_key")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(45)] + [System.ComponentModel.DataAnnotations.Length(1, 45)] public string Idempotency_key { get; set; } } @@ -18346,8 +18269,7 @@ public class PaymentRefund /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Id { get; set; } /// @@ -19171,8 +19093,7 @@ public class LinkCustomerToGiftCardRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="customer_id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(191)] + [System.ComponentModel.DataAnnotations.Length(1, 191)] public string Customer_id { get; set; } } @@ -19919,8 +19840,7 @@ public class ListDisputesRequest /// Max length: 40 /// [System.Runtime.Serialization.DataMember(Name="location_id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string Location_id { get; set; } /// @@ -20277,8 +20197,7 @@ public class ListInvoicesRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="location_id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Location_id { get; set; } } @@ -20413,8 +20332,7 @@ public class LoyaltyProgram /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] public string Id { get; set; } /// @@ -20588,8 +20506,7 @@ public class LoyaltyProgramRewardTier /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] public string Id { get; set; } /// @@ -22184,8 +22101,7 @@ public class ObtainTokenRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="client_secret")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(2, 1024)] public string Client_secret { get; set; } /// @@ -22196,8 +22112,7 @@ public class ObtainTokenRequest /// Max length: 191 /// [System.Runtime.Serialization.DataMember(Name="code")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(191)] + [System.ComponentModel.DataAnnotations.Length(0, 191)] public string Code { get; set; } /// @@ -22209,8 +22124,7 @@ public class ObtainTokenRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="grant_type")] - [System.ComponentModel.DataAnnotations.MinLength(10)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(10, 20)] public string Grant_type { get; set; } /// @@ -22223,8 +22137,7 @@ public class ObtainTokenRequest /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="migration_token")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(2, 1024)] public string Migration_token { get; set; } /// @@ -22233,8 +22146,7 @@ public class ObtainTokenRequest /// Max length: 2048 /// [System.Runtime.Serialization.DataMember(Name="redirect_uri")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(0, 2048)] public string Redirect_uri { get; set; } /// @@ -22244,8 +22156,7 @@ public class ObtainTokenRequest /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="refresh_token")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(2, 1024)] public string Refresh_token { get; set; } /// @@ -22279,8 +22190,7 @@ public class ObtainTokenResponse /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="access_token")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(2, 1024)] public string Access_token { get; set; } /// @@ -22289,8 +22199,7 @@ public class ObtainTokenResponse /// Max length: 48 /// [System.Runtime.Serialization.DataMember(Name="expires_at")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(48)] + [System.ComponentModel.DataAnnotations.Length(20, 48)] public string Expires_at { get; set; } /// @@ -22306,8 +22215,7 @@ public class ObtainTokenResponse /// Max length: 191 /// [System.Runtime.Serialization.DataMember(Name="merchant_id")] - [System.ComponentModel.DataAnnotations.MinLength(8)] - [System.ComponentModel.DataAnnotations.MaxLength(191)] + [System.ComponentModel.DataAnnotations.Length(8, 191)] public string Merchant_id { get; set; } /// @@ -22325,8 +22233,7 @@ public class ObtainTokenResponse /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="refresh_token")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(2, 1024)] public string Refresh_token { get; set; } /// @@ -22349,8 +22256,7 @@ public class ObtainTokenResponse /// Max length: 10 /// [System.Runtime.Serialization.DataMember(Name="token_type")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(2, 10)] public string Token_type { get; set; } } @@ -22787,8 +22693,7 @@ public class PayOrderRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="idempotency_key")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(192)] + [System.ComponentModel.DataAnnotations.Length(1, 192)] public string Idempotency_key { get; set; } /// @@ -22983,8 +22888,7 @@ public class RedeemLoyaltyRewardRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="idempotency_key")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Idempotency_key { get; set; } /// @@ -23143,8 +23047,7 @@ public class RegisterDomainRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="domain_name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Domain_name { get; set; } } @@ -23222,8 +23125,7 @@ public class RenewTokenRequest /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="access_token")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(2, 1024)] public string Access_token { get; set; } } @@ -23240,8 +23142,7 @@ public class RenewTokenResponse /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="access_token")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(2, 1024)] public string Access_token { get; set; } /// @@ -23250,8 +23151,7 @@ public class RenewTokenResponse /// Max length: 48 /// [System.Runtime.Serialization.DataMember(Name="expires_at")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(48)] + [System.ComponentModel.DataAnnotations.Length(20, 48)] public string Expires_at { get; set; } /// @@ -23260,8 +23160,7 @@ public class RenewTokenResponse /// Max length: 191 /// [System.Runtime.Serialization.DataMember(Name="merchant_id")] - [System.ComponentModel.DataAnnotations.MinLength(8)] - [System.ComponentModel.DataAnnotations.MaxLength(191)] + [System.ComponentModel.DataAnnotations.Length(8, 191)] public string Merchant_id { get; set; } /// @@ -23286,8 +23185,7 @@ public class RenewTokenResponse /// Max length: 10 /// [System.Runtime.Serialization.DataMember(Name="token_type")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(2, 10)] public string Token_type { get; set; } } @@ -23701,8 +23599,7 @@ public class RetrieveGiftCardFromGANRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="gan")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Gan { get; set; } } @@ -24179,8 +24076,7 @@ public class Snippet /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="content")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65535)] + [System.ComponentModel.DataAnnotations.Length(1, 65535)] public string Content { get; set; } /// @@ -24415,8 +24311,7 @@ public class RevokeTokenRequest /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="access_token")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(2, 1024)] public string Access_token { get; set; } /// @@ -26617,8 +26512,7 @@ public class UnlinkCustomerFromGiftCardRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="customer_id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(191)] + [System.ComponentModel.DataAnnotations.Length(1, 191)] public string Customer_id { get; set; } } @@ -27158,8 +27052,7 @@ public class UpdatePaymentRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="idempotency_key")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(45)] + [System.ComponentModel.DataAnnotations.Length(1, 45)] public string Idempotency_key { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/storecove_com_2_0_1_.cs b/Tests/CsOpenApi3TestsResults/storecove_com_2_0_1_.cs index c348866a..66e350a0 100644 --- a/Tests/CsOpenApi3TestsResults/storecove_com_2_0_1_.cs +++ b/Tests/CsOpenApi3TestsResults/storecove_com_2_0_1_.cs @@ -1003,8 +1003,7 @@ public class AdditionalTaxIdentifier /// Max length: 2 /// [System.Runtime.Serialization.DataMember(Name="country")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] public string Country { get; set; } /// @@ -1013,8 +1012,7 @@ public class AdditionalTaxIdentifier /// Max length: 2 /// [System.Runtime.Serialization.DataMember(Name="county")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] public string County { get; set; } /// @@ -1035,8 +1033,7 @@ public class AdditionalTaxIdentifier /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="scheme")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] public string Scheme { get; set; } /// @@ -1045,8 +1042,7 @@ public class AdditionalTaxIdentifier /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="superscheme")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] public string Superscheme { get; set; } } @@ -1062,8 +1058,7 @@ public class AdditionalTaxIdentifierCreate /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="country")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] public string Country { get; set; } /// @@ -1072,8 +1067,7 @@ public class AdditionalTaxIdentifierCreate /// Max length: 2 /// [System.Runtime.Serialization.DataMember(Name="county")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] public string County { get; set; } /// @@ -1092,8 +1086,7 @@ public class AdditionalTaxIdentifierCreate /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="scheme")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] public string Scheme { get; set; } /// @@ -1104,8 +1097,7 @@ public class AdditionalTaxIdentifierCreate /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="superscheme")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] public string Superscheme { get; set; } /// @@ -1114,8 +1106,7 @@ public class AdditionalTaxIdentifierCreate /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="third_party_password")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] public string Third_party_password { get; set; } /// @@ -1124,8 +1115,7 @@ public class AdditionalTaxIdentifierCreate /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="third_party_username")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] public string Third_party_username { get; set; } } @@ -1147,8 +1137,7 @@ public class AdditionalTaxIdentifierUpdate /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="third_party_password")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] public string Third_party_password { get; set; } /// @@ -1157,8 +1146,7 @@ public class AdditionalTaxIdentifierUpdate /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="third_party_username")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] public string Third_party_username { get; set; } } @@ -1172,8 +1160,7 @@ public class Administration /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="email")] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(5, 128)] public string Email { get; set; } /// @@ -1239,8 +1226,7 @@ public class AdministrationCreate /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="email")] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(5, 128)] public string Email { get; set; } /// @@ -1280,8 +1266,7 @@ public class AdministrationUpdate /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="email")] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(5, 128)] public string Email { get; set; } /// @@ -1541,8 +1526,7 @@ public class CorpPass /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="client_redirect_fail_url")] - [System.ComponentModel.DataAnnotations.MinLength(11)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(11, 255)] public string Client_redirect_fail_url { get; set; } /// @@ -1551,8 +1535,7 @@ public class CorpPass /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="client_redirect_success_url")] - [System.ComponentModel.DataAnnotations.MinLength(11)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(11, 255)] public string Client_redirect_success_url { get; set; } /// @@ -1561,8 +1544,7 @@ public class CorpPass /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="corppass_url")] - [System.ComponentModel.DataAnnotations.MinLength(11)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(11, 255)] public string Corppass_url { get; set; } /// @@ -1583,8 +1565,7 @@ public class CorpPass /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="signer_email")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(2, 128)] public string Signer_email { get; set; } /// @@ -1593,8 +1574,7 @@ public class CorpPass /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="signer_name")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] public string Signer_name { get; set; } /// @@ -1651,8 +1631,7 @@ public class CorpPassCreate /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="client_redirect_fail_url")] - [System.ComponentModel.DataAnnotations.MinLength(11)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(11, 255)] public string Client_redirect_fail_url { get; set; } /// @@ -1661,8 +1640,7 @@ public class CorpPassCreate /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="client_redirect_success_url")] - [System.ComponentModel.DataAnnotations.MinLength(11)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(11, 255)] public string Client_redirect_success_url { get; set; } /// @@ -1685,8 +1663,7 @@ public class CorpPassCreate /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="signer_email")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(2, 128)] public string Signer_email { get; set; } /// @@ -1695,8 +1672,7 @@ public class CorpPassCreate /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="signer_name")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] public string Signer_name { get; set; } /// @@ -3779,8 +3755,7 @@ public class OrderLine /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Description { get; set; } /// @@ -3813,8 +3788,7 @@ public class OrderLine /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -11540,8 +11514,7 @@ public class DocumentSubmission /// Max length: 36 /// [System.Runtime.Serialization.DataMember(Name="idempotencyGuid")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] public string IdempotencyGuid { get; set; } /// @@ -11901,8 +11874,7 @@ public class Invoice /// Maximum items: 1 /// [System.Runtime.Serialization.DataMember(Name="taxesDutiesFees")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(0, 1)] public Tax[] TaxesDutiesFees { get; set; } /// @@ -20275,8 +20247,7 @@ public class InvoiceSubmission /// Max length: 36 /// [System.Runtime.Serialization.DataMember(Name="idempotencyGuid")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] public string IdempotencyGuid { get; set; } /// @@ -20469,8 +20440,7 @@ public class PeppolIdentifier /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="identifier")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] public string Identifier { get; set; } /// @@ -20479,8 +20449,7 @@ public class PeppolIdentifier /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="scheme")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] public string Scheme { get; set; } /// @@ -20489,8 +20458,7 @@ public class PeppolIdentifier /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="superscheme")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] public string Superscheme { get; set; } } @@ -20512,8 +20480,7 @@ public class LegalEntityCreate /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="city")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] public string City { get; set; } /// @@ -20540,8 +20507,7 @@ public class LegalEntityCreate /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="line1")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(192)] + [System.ComponentModel.DataAnnotations.Length(2, 192)] public string Line1 { get; set; } /// @@ -20560,8 +20526,7 @@ public class LegalEntityCreate /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="party_name")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] public string Party_name { get; set; } /// @@ -20587,8 +20552,7 @@ public class LegalEntityCreate /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="third_party_password")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] public string Third_party_password { get; set; } /// @@ -20597,8 +20561,7 @@ public class LegalEntityCreate /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="third_party_username")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] public string Third_party_username { get; set; } /// @@ -20609,8 +20572,7 @@ public class LegalEntityCreate /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="zip")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(2, 32)] public string Zip { get; set; } } @@ -20630,8 +20592,7 @@ public class LegalEntityUpdate /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="city")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] public string City { get; set; } /// @@ -20660,8 +20621,7 @@ public class LegalEntityUpdate /// Max length: 192 /// [System.Runtime.Serialization.DataMember(Name="line1")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(192)] + [System.ComponentModel.DataAnnotations.Length(2, 192)] public string Line1 { get; set; } /// @@ -20678,8 +20638,7 @@ public class LegalEntityUpdate /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="party_name")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] public string Party_name { get; set; } /// @@ -20711,8 +20670,7 @@ public class LegalEntityUpdate /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="third_party_password")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] public string Third_party_password { get; set; } /// @@ -20721,8 +20679,7 @@ public class LegalEntityUpdate /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="third_party_username")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] public string Third_party_username { get; set; } /// @@ -20731,8 +20688,7 @@ public class LegalEntityUpdate /// Max length: 32 /// [System.Runtime.Serialization.DataMember(Name="zip")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(2, 32)] public string Zip { get; set; } } @@ -20782,8 +20738,7 @@ public class PeppolIdentifierCreate /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="identifier")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] public string Identifier { get; set; } /// @@ -20794,8 +20749,7 @@ public class PeppolIdentifierCreate /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="scheme")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] public string Scheme { get; set; } /// @@ -20806,8 +20760,7 @@ public class PeppolIdentifierCreate /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="superscheme")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(2, 64)] public string Superscheme { get; set; } } @@ -21869,8 +21822,7 @@ public class Rea /// Max length: 20 /// [System.Runtime.Serialization.DataMember(Name="identifier")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(2, 20)] public string Identifier { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/svix_com_1_4_.cs b/Tests/CsOpenApi3TestsResults/svix_com_1_4_.cs index 2ee5671c..3ed06aa3 100644 --- a/Tests/CsOpenApi3TestsResults/svix_com_1_4_.cs +++ b/Tests/CsOpenApi3TestsResults/svix_com_1_4_.cs @@ -44,8 +44,7 @@ public class AppPortalAccessOut /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="url")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65536)] + [System.ComponentModel.DataAnnotations.Length(1, 65536)] public string Url { get; set; } } @@ -77,8 +76,7 @@ public class ApplicationIn /// Pattern: ^[a-zA-Z0-9\-_.]+$ /// [System.Runtime.Serialization.DataMember(Name="uid")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9\-_.]+$")] public string Uid { get; set; } } @@ -125,8 +123,7 @@ public class ApplicationOut /// Pattern: ^[a-zA-Z0-9\-_.]+$ /// [System.Runtime.Serialization.DataMember(Name="uid")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9\-_.]+$")] public string Uid { get; set; } @@ -372,8 +369,7 @@ public class DashboardAccessOut /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="url")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65536)] + [System.ComponentModel.DataAnnotations.Length(1, 65536)] public string Url { get; set; } } @@ -413,8 +409,7 @@ public class EndpointCreatedEventData /// Pattern: ^[a-zA-Z0-9\-_.]+$ /// [System.Runtime.Serialization.DataMember(Name="appUid")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9\-_.]+$")] public string AppUid { get; set; } @@ -432,8 +427,7 @@ public class EndpointCreatedEventData /// Pattern: ^[a-zA-Z0-9\-_.]+$ /// [System.Runtime.Serialization.DataMember(Name="endpointUid")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9\-_.]+$")] public string EndpointUid { get; set; } } @@ -482,8 +476,7 @@ public class EndpointDeletedEventData /// Pattern: ^[a-zA-Z0-9\-_.]+$ /// [System.Runtime.Serialization.DataMember(Name="appUid")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9\-_.]+$")] public string AppUid { get; set; } @@ -501,8 +494,7 @@ public class EndpointDeletedEventData /// Pattern: ^[a-zA-Z0-9\-_.]+$ /// [System.Runtime.Serialization.DataMember(Name="endpointUid")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9\-_.]+$")] public string EndpointUid { get; set; } } @@ -551,8 +543,7 @@ public class EndpointDisabledEventData /// Pattern: ^[a-zA-Z0-9\-_.]+$ /// [System.Runtime.Serialization.DataMember(Name="appUid")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9\-_.]+$")] public string AppUid { get; set; } @@ -570,8 +561,7 @@ public class EndpointDisabledEventData /// Pattern: ^[a-zA-Z0-9\-_.]+$ /// [System.Runtime.Serialization.DataMember(Name="endpointUid")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9\-_.]+$")] public string EndpointUid { get; set; } @@ -649,8 +639,7 @@ public class EndpointIn /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="channels")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public string[] Channels { get; set; } [System.ComponentModel.DefaultValue("")] @@ -693,8 +682,7 @@ public class EndpointIn /// Pattern: ^[a-zA-Z0-9\-_.]+$ /// [System.Runtime.Serialization.DataMember(Name="uid")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9\-_.]+$")] public string Uid { get; set; } @@ -705,8 +693,7 @@ public class EndpointIn /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="url")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65536)] + [System.ComponentModel.DataAnnotations.Length(1, 65536)] public string Url { get; set; } /// @@ -729,8 +716,7 @@ public class EndpointMessageOut /// Maximum items: 5 /// [System.Runtime.Serialization.DataMember(Name="channels")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(1, 5)] public string[] Channels { get; set; } /// @@ -740,8 +726,7 @@ public class EndpointMessageOut /// Pattern: ^[a-zA-Z0-9\-_.]+$ /// [System.Runtime.Serialization.DataMember(Name="eventId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9\-_.]+$")] public string EventId { get; set; } @@ -827,8 +812,7 @@ public class EndpointOut /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="channels")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public string[] Channels { get; set; } /// @@ -877,8 +861,7 @@ public class EndpointOut /// Pattern: ^[a-zA-Z0-9\-_.]+$ /// [System.Runtime.Serialization.DataMember(Name="uid")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9\-_.]+$")] public string Uid { get; set; } @@ -896,8 +879,7 @@ public class EndpointOut /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="url")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65536)] + [System.ComponentModel.DataAnnotations.Length(1, 65536)] public string Url { get; set; } /// @@ -980,8 +962,7 @@ public class EndpointTransformationIn /// Max length: 51200 /// [System.Runtime.Serialization.DataMember(Name="code")] - [System.ComponentModel.DataAnnotations.MinLength(10)] - [System.ComponentModel.DataAnnotations.MaxLength(51200)] + [System.ComponentModel.DataAnnotations.Length(10, 51200)] public string Code { get; set; } [System.Runtime.Serialization.DataMember(Name="enabled")] @@ -997,8 +978,7 @@ public class EndpointTransformationOut /// Max length: 51200 /// [System.Runtime.Serialization.DataMember(Name="code")] - [System.ComponentModel.DataAnnotations.MinLength(10)] - [System.ComponentModel.DataAnnotations.MaxLength(51200)] + [System.ComponentModel.DataAnnotations.Length(10, 51200)] public string Code { get; set; } [System.Runtime.Serialization.DataMember(Name="enabled")] @@ -1015,8 +995,7 @@ public class EndpointUpdate /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="channels")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public string[] Channels { get; set; } [System.ComponentModel.DefaultValue("")] @@ -1051,8 +1030,7 @@ public class EndpointUpdate /// Pattern: ^[a-zA-Z0-9\-_.]+$ /// [System.Runtime.Serialization.DataMember(Name="uid")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9\-_.]+$")] public string Uid { get; set; } @@ -1063,8 +1041,7 @@ public class EndpointUpdate /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="url")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65536)] + [System.ComponentModel.DataAnnotations.Length(1, 65536)] public string Url { get; set; } /// @@ -1113,8 +1090,7 @@ public class EndpointUpdatedEventData /// Pattern: ^[a-zA-Z0-9\-_.]+$ /// [System.Runtime.Serialization.DataMember(Name="appUid")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9\-_.]+$")] public string AppUid { get; set; } @@ -1132,8 +1108,7 @@ public class EndpointUpdatedEventData /// Pattern: ^[a-zA-Z0-9\-_.]+$ /// [System.Runtime.Serialization.DataMember(Name="endpointUid")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9\-_.]+$")] public string EndpointUid { get; set; } } @@ -1657,8 +1632,7 @@ public class MessageAttemptEndpointOut /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="url")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65536)] + [System.ComponentModel.DataAnnotations.Length(1, 65536)] public string Url { get; set; } } @@ -1778,8 +1752,7 @@ public class MessageAttemptOut /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="url")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65536)] + [System.ComponentModel.DataAnnotations.Length(1, 65536)] public string Url { get; set; } } @@ -1815,8 +1788,7 @@ public class MessageEndpointOut /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="channels")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public string[] Channels { get; set; } /// @@ -1880,8 +1852,7 @@ public class MessageEndpointOut /// Pattern: ^[a-zA-Z0-9\-_.]+$ /// [System.Runtime.Serialization.DataMember(Name="uid")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9\-_.]+$")] public string Uid { get; set; } @@ -1892,8 +1863,7 @@ public class MessageEndpointOut /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="url")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65536)] + [System.ComponentModel.DataAnnotations.Length(1, 65536)] public string Url { get; set; } /// @@ -1941,8 +1911,7 @@ public class MessageOut /// Maximum items: 5 /// [System.Runtime.Serialization.DataMember(Name="channels")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(1, 5)] public string[] Channels { get; set; } /// @@ -1952,8 +1921,7 @@ public class MessageOut /// Pattern: ^[a-zA-Z0-9\-_.]+$ /// [System.Runtime.Serialization.DataMember(Name="eventId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9\-_.]+$")] public string EventId { get; set; } @@ -2026,8 +1994,7 @@ public class MessageAttemptExhaustedEventData /// Pattern: ^[a-zA-Z0-9\-_.]+$ /// [System.Runtime.Serialization.DataMember(Name="appUid")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9\-_.]+$")] public string AppUid { get; set; } @@ -2052,8 +2019,7 @@ public class MessageAttemptExhaustedEventData /// Pattern: ^[a-zA-Z0-9\-_.]+$ /// [System.Runtime.Serialization.DataMember(Name="msgEventId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9\-_.]+$")] public string MsgEventId { get; set; } @@ -2136,8 +2102,7 @@ public class MessageAttemptFailingEventData /// Pattern: ^[a-zA-Z0-9\-_.]+$ /// [System.Runtime.Serialization.DataMember(Name="appUid")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9\-_.]+$")] public string AppUid { get; set; } @@ -2162,8 +2127,7 @@ public class MessageAttemptFailingEventData /// Pattern: ^[a-zA-Z0-9\-_.]+$ /// [System.Runtime.Serialization.DataMember(Name="msgEventId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9\-_.]+$")] public string MsgEventId { get; set; } @@ -2196,8 +2160,7 @@ public class MessageIn /// Maximum items: 5 /// [System.Runtime.Serialization.DataMember(Name="channels")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(1, 5)] public string[] Channels { get; set; } /// @@ -2207,8 +2170,7 @@ public class MessageIn /// Pattern: ^[a-zA-Z0-9\-_.]+$ /// [System.Runtime.Serialization.DataMember(Name="eventId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9\-_.]+$")] public string EventId { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/telstra_com_3_x_.cs b/Tests/CsOpenApi3TestsResults/telstra_com_3_x_.cs index 0f2fdb7f..c811f879 100644 --- a/Tests/CsOpenApi3TestsResults/telstra_com_3_x_.cs +++ b/Tests/CsOpenApi3TestsResults/telstra_com_3_x_.cs @@ -30,8 +30,7 @@ public class Error /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="code")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Code { get; set; } /// @@ -40,8 +39,7 @@ public class Error /// Max length: 99999 /// [System.Runtime.Serialization.DataMember(Name="field")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(99999)] + [System.ComponentModel.DataAnnotations.Length(1, 99999)] public string Field { get; set; } /// @@ -52,8 +50,7 @@ public class Error /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="issue")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(99999)] + [System.ComponentModel.DataAnnotations.Length(1, 99999)] public string Issue { get; set; } /// @@ -62,8 +59,7 @@ public class Error /// Max length: 99999 /// [System.Runtime.Serialization.DataMember(Name="link")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(99999)] + [System.ComponentModel.DataAnnotations.Length(1, 99999)] public string Link { get; set; } /// @@ -80,8 +76,7 @@ public class Error /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="suggested_action")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(99999)] + [System.ComponentModel.DataAnnotations.Length(1, 99999)] public string Suggested_action { get; set; } /// @@ -90,8 +85,7 @@ public class Error /// Max length: 99999 /// [System.Runtime.Serialization.DataMember(Name="value")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(99999)] + [System.ComponentModel.DataAnnotations.Length(1, 99999)] public string Value { get; set; } } @@ -118,8 +112,7 @@ public class Errors /// Maximum items: 100 /// [System.Runtime.Serialization.DataMember(Name="errors")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public Error[] Errors1 { get; set; } } @@ -136,8 +129,7 @@ public class FreeTrialNumbers /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="freeTrialNumbers")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(0, 10)] public string[] FreeTrialNumbers1 { get; set; } } @@ -151,8 +143,7 @@ public class MessageGet /// Max length: 24 /// [System.Runtime.Serialization.DataMember(Name="createTimestamp")] - [System.ComponentModel.DataAnnotations.MinLength(24)] - [System.ComponentModel.DataAnnotations.MaxLength(24)] + [System.ComponentModel.DataAnnotations.Length(24, 24)] public System.Nullable CreateTimestamp { get; set; } /// @@ -175,8 +166,7 @@ public class MessageGet /// Max length: 13 /// [System.Runtime.Serialization.DataMember(Name="from")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(13)] + [System.ComponentModel.DataAnnotations.Length(1, 13)] public string From { get; set; } /// @@ -185,8 +175,7 @@ public class MessageGet /// Max length: 1600 /// [System.Runtime.Serialization.DataMember(Name="messageContent")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(1, 1600)] public string MessageContent { get; set; } /// @@ -195,8 +184,7 @@ public class MessageGet /// Max length: 36 /// [System.Runtime.Serialization.DataMember(Name="messageId")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] public string MessageId { get; set; } /// @@ -206,8 +194,7 @@ public class MessageGet /// Maximum items: 5 /// [System.Runtime.Serialization.DataMember(Name="multimedia")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(1, 5)] public MultimediaGet[] Multimedia { get; set; } /// @@ -225,8 +212,7 @@ public class MessageGet /// Max length: 24 /// [System.Runtime.Serialization.DataMember(Name="receivedTimestamp")] - [System.ComponentModel.DataAnnotations.MinLength(24)] - [System.ComponentModel.DataAnnotations.MaxLength(24)] + [System.ComponentModel.DataAnnotations.Length(24, 24)] public System.Nullable ReceivedTimestamp { get; set; } /// @@ -244,8 +230,7 @@ public class MessageGet /// Max length: 24 /// [System.Runtime.Serialization.DataMember(Name="scheduleSend")] - [System.ComponentModel.DataAnnotations.MinLength(10)] - [System.ComponentModel.DataAnnotations.MaxLength(24)] + [System.ComponentModel.DataAnnotations.Length(10, 24)] public System.Nullable ScheduleSend { get; set; } /// @@ -254,8 +239,7 @@ public class MessageGet /// Max length: 24 /// [System.Runtime.Serialization.DataMember(Name="sentTimestamp")] - [System.ComponentModel.DataAnnotations.MinLength(24)] - [System.ComponentModel.DataAnnotations.MaxLength(24)] + [System.ComponentModel.DataAnnotations.Length(24, 24)] public System.Nullable SentTimestamp { get; set; } /// @@ -276,8 +260,7 @@ public class MessageGet /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(0, 10)] public string[] Tags { get; set; } /// @@ -286,8 +269,7 @@ public class MessageGet /// Max length: 16 /// [System.Runtime.Serialization.DataMember(Name="to")] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(16)] + [System.ComponentModel.DataAnnotations.Length(5, 16)] public string To { get; set; } } @@ -314,8 +296,7 @@ public class MultimediaGet /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="fileName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string FileName { get; set; } /// @@ -326,8 +307,7 @@ public class MultimediaGet /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="type")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Type { get; set; } } @@ -367,8 +347,7 @@ public class MessageSent /// Max length: 13 /// [System.Runtime.Serialization.DataMember(Name="from")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(13)] + [System.ComponentModel.DataAnnotations.Length(1, 13)] public string From { get; set; } /// @@ -377,8 +356,7 @@ public class MessageSent /// Max length: 1600 /// [System.Runtime.Serialization.DataMember(Name="messageContent")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(1, 1600)] public string MessageContent { get; set; } /// @@ -394,8 +372,7 @@ public class MessageSent /// Maximum items: 5 /// [System.Runtime.Serialization.DataMember(Name="multimedia")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(1, 5)] public MultimediaGet[] Multimedia { get; set; } /// @@ -413,8 +390,7 @@ public class MessageSent /// Max length: 24 /// [System.Runtime.Serialization.DataMember(Name="scheduleSend")] - [System.ComponentModel.DataAnnotations.MinLength(10)] - [System.ComponentModel.DataAnnotations.MaxLength(24)] + [System.ComponentModel.DataAnnotations.Length(10, 24)] public System.Nullable ScheduleSend { get; set; } /// @@ -435,8 +411,7 @@ public class MessageSent /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(0, 10)] public string[] Tags { get; set; } /// @@ -462,8 +437,7 @@ public class MessageUpdate /// Max length: 13 /// [System.Runtime.Serialization.DataMember(Name="from")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(13)] + [System.ComponentModel.DataAnnotations.Length(1, 13)] public string From { get; set; } /// @@ -472,8 +446,7 @@ public class MessageUpdate /// Max length: 1600 /// [System.Runtime.Serialization.DataMember(Name="messageContent")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(1, 1600)] public string MessageContent { get; set; } /// @@ -482,8 +455,7 @@ public class MessageUpdate /// Max length: 36 /// [System.Runtime.Serialization.DataMember(Name="messageId")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] public string MessageId { get; set; } /// @@ -493,8 +465,7 @@ public class MessageUpdate /// Maximum items: 5 /// [System.Runtime.Serialization.DataMember(Name="multimedia")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(1, 5)] public MultimediaGet[] Multimedia { get; set; } /// @@ -521,8 +492,7 @@ public class MessageUpdate /// Max length: 24 /// [System.Runtime.Serialization.DataMember(Name="scheduleSend")] - [System.ComponentModel.DataAnnotations.MinLength(10)] - [System.ComponentModel.DataAnnotations.MaxLength(24)] + [System.ComponentModel.DataAnnotations.Length(10, 24)] public System.Nullable ScheduleSend { get; set; } /// @@ -543,8 +513,7 @@ public class MessageUpdate /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(0, 10)] public string[] Tags { get; set; } /// @@ -553,8 +522,7 @@ public class MessageUpdate /// Max length: 16 /// [System.Runtime.Serialization.DataMember(Name="to")] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(16)] + [System.ComponentModel.DataAnnotations.Length(5, 16)] public string To { get; set; } } @@ -570,8 +538,7 @@ public class Multimedia /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="fileName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string FileName { get; set; } /// @@ -583,8 +550,7 @@ public class Multimedia /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="payload")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(999999)] + [System.ComponentModel.DataAnnotations.Length(1, 999999)] public string Payload { get; set; } /// @@ -595,8 +561,7 @@ public class Multimedia /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="type")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Type { get; set; } } @@ -610,8 +575,7 @@ public class Recipient_optout /// Max length: 24 /// [System.Runtime.Serialization.DataMember(Name="createTimestamp")] - [System.ComponentModel.DataAnnotations.MinLength(24)] - [System.ComponentModel.DataAnnotations.MaxLength(24)] + [System.ComponentModel.DataAnnotations.Length(24, 24)] public System.Nullable CreateTimestamp { get; set; } /// @@ -620,8 +584,7 @@ public class Recipient_optout /// Max length: 16 /// [System.Runtime.Serialization.DataMember(Name="optoutNumber")] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(16)] + [System.ComponentModel.DataAnnotations.Length(5, 16)] public string OptoutNumber { get; set; } } @@ -635,8 +598,7 @@ public class Virtual_number /// Max length: 24 /// [System.Runtime.Serialization.DataMember(Name="lastUse")] - [System.ComponentModel.DataAnnotations.MinLength(24)] - [System.ComponentModel.DataAnnotations.MaxLength(24)] + [System.ComponentModel.DataAnnotations.Length(24, 24)] public System.Nullable LastUse { get; set; } /// @@ -652,8 +614,7 @@ public class Virtual_number /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(0, 10)] public string[] Tags { get; set; } /// @@ -663,8 +624,7 @@ public class Virtual_number /// Max length: 10 /// [System.Runtime.Serialization.DataMember(Name="virtualNumber")] - [System.ComponentModel.DataAnnotations.MinLength(10)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(10, 10)] public string VirtualNumber { get; set; } } @@ -692,8 +652,7 @@ public class MessagePost /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="from")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(13)] + [System.ComponentModel.DataAnnotations.Length(1, 13)] public string From { get; set; } /// @@ -705,8 +664,7 @@ public class MessagePost /// Max length: 1600 /// [System.Runtime.Serialization.DataMember(Name="messageContent")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(1, 1600)] public string MessageContent { get; set; } /// @@ -726,8 +684,7 @@ public class MessagePost /// Maximum items: 5 /// [System.Runtime.Serialization.DataMember(Name="multimedia")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(1, 5)] public Multimedia[] Multimedia { get; set; } /// @@ -751,8 +708,7 @@ public class MessagePost /// Max length: 24 /// [System.Runtime.Serialization.DataMember(Name="scheduleSend")] - [System.ComponentModel.DataAnnotations.MinLength(10)] - [System.ComponentModel.DataAnnotations.MaxLength(24)] + [System.ComponentModel.DataAnnotations.Length(10, 24)] public System.Nullable ScheduleSend { get; set; } /// @@ -788,8 +744,7 @@ public class MessagePost /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public string[] Tags { get; set; } /// @@ -828,8 +783,7 @@ public class MessagePut /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="from")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(13)] + [System.ComponentModel.DataAnnotations.Length(1, 13)] public string From { get; set; } /// @@ -841,8 +795,7 @@ public class MessagePut /// Max length: 1600 /// [System.Runtime.Serialization.DataMember(Name="messageContent")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1600)] + [System.ComponentModel.DataAnnotations.Length(1, 1600)] public string MessageContent { get; set; } /// @@ -862,8 +815,7 @@ public class MessagePut /// Maximum items: 5 /// [System.Runtime.Serialization.DataMember(Name="multimedia")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(1, 5)] public Multimedia[] Multimedia { get; set; } /// @@ -887,8 +839,7 @@ public class MessagePut /// Max length: 24 /// [System.Runtime.Serialization.DataMember(Name="scheduleSend")] - [System.ComponentModel.DataAnnotations.MinLength(10)] - [System.ComponentModel.DataAnnotations.MaxLength(24)] + [System.ComponentModel.DataAnnotations.Length(10, 24)] public System.Nullable ScheduleSend { get; set; } /// @@ -924,8 +875,7 @@ public class MessagePut /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public string[] Tags { get; set; } /// @@ -939,8 +889,7 @@ public class MessagePut /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="to")] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(16)] + [System.ComponentModel.DataAnnotations.Length(5, 16)] public string To { get; set; } } @@ -959,8 +908,7 @@ public class MessageTags /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(0, 10)] public string[] Tags { get; set; } } @@ -997,8 +945,7 @@ public class NumberPost /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public string[] Tags { get; set; } } @@ -1039,8 +986,7 @@ public class NumberPut /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public string[] Tags { get; set; } } @@ -1746,8 +1692,7 @@ public class GetMessagesReturn /// Maximum items: 50 /// [System.Runtime.Serialization.DataMember(Name="messages")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public MessageGet[] Messages { get; set; } [System.Runtime.Serialization.DataMember(Name="paging")] @@ -1796,8 +1741,7 @@ public class MessagesReportPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="endDate")] - [System.ComponentModel.DataAnnotations.MinLength(10)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(10, 10)] public System.DateOnly EndDate { get; set; } /// @@ -1837,8 +1781,7 @@ public class MessagesReportPostBody /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="startDate")] - [System.ComponentModel.DataAnnotations.MinLength(10)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(10, 10)] public System.DateOnly StartDate { get; set; } } @@ -1852,8 +1795,7 @@ public class GetReportReturn /// Max length: 36 /// [System.Runtime.Serialization.DataMember(Name="reportId")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] public string ReportId { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/threatjammer_com_1_2_27_.cs b/Tests/CsOpenApi3TestsResults/threatjammer_com_1_2_27_.cs index bff57f6d..29e93d6d 100644 --- a/Tests/CsOpenApi3TestsResults/threatjammer_com_1_2_27_.cs +++ b/Tests/CsOpenApi3TestsResults/threatjammer_com_1_2_27_.cs @@ -1301,8 +1301,7 @@ public class Body_change_status_of_the_origin_allowlist_v1_allowlist_private__al /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="origin")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2083)] + [System.ComponentModel.DataAnnotations.Length(1, 2083)] public string Origin { get; set; } /// @@ -1340,8 +1339,7 @@ public class Body_change_status_of_the_origin_allowlist_v1_allowlist_public__all /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="origin")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2083)] + [System.ComponentModel.DataAnnotations.Length(1, 2083)] public string Origin { get; set; } /// @@ -1365,8 +1363,7 @@ public class Body_change_status_of_the_origin_denylist_v1_denylist_private__deny /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="origin")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2083)] + [System.ComponentModel.DataAnnotations.Length(1, 2083)] public string Origin { get; set; } /// @@ -1390,8 +1387,7 @@ public class Body_change_status_of_the_origin_denylist_v1_denylist_public__denyl /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="origin")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2083)] + [System.ComponentModel.DataAnnotations.Length(1, 2083)] public string Origin { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/tl_api_azurewebsites_net_2020_08_10_6_22_.cs b/Tests/CsOpenApi3TestsResults/tl_api_azurewebsites_net_2020_08_10_6_22_.cs index a769dbc7..d66838d2 100644 --- a/Tests/CsOpenApi3TestsResults/tl_api_azurewebsites_net_2020_08_10_6_22_.cs +++ b/Tests/CsOpenApi3TestsResults/tl_api_azurewebsites_net_2020_08_10_6_22_.cs @@ -117,8 +117,7 @@ public class ArticleDTO /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="barcode")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string Barcode { get; set; } [System.Runtime.Serialization.DataMember(Name="createdDate")] @@ -198,8 +197,7 @@ public class ArticleDTO /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string Name { get; set; } [System.Runtime.Serialization.DataMember(Name="number")] @@ -237,8 +235,7 @@ public class ArticleDTO /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="tags")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public string Tags { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_accounts_v1_1_52_0_.cs b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_accounts_v1_1_52_0_.cs index 033cd832..e2f2e256 100644 --- a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_accounts_v1_1_52_0_.cs +++ b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_accounts_v1_1_52_0_.cs @@ -29,8 +29,7 @@ public class Accountsv1auth_token_promotion /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -75,8 +74,7 @@ public class Accountsv1credentialcredential_aws /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -105,8 +103,7 @@ public class Accountsv1credentialcredential_aws /// Pattern: ^CR[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^CR[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -128,8 +125,7 @@ public class Accountsv1credentialcredential_public_key /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -158,8 +154,7 @@ public class Accountsv1credentialcredential_public_key /// Pattern: ^CR[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^CR[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -187,8 +182,7 @@ public class Accountsv1safelist /// Pattern: ^GN[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^GN[0-9a-fA-F]{32}$")] public string Sid { get; set; } } @@ -204,8 +198,7 @@ public class Accountsv1secondary_auth_token /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_autopilot_v1_1_52_0_.cs b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_autopilot_v1_1_52_0_.cs index 1b579e65..8cff6ccd 100644 --- a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_autopilot_v1_1_52_0_.cs +++ b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_autopilot_v1_1_52_0_.cs @@ -29,8 +29,7 @@ public class Autopilotv1assistant /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -77,8 +76,7 @@ public class Autopilotv1assistant /// Pattern: ^UG[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="latest_model_build_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^UG[0-9a-fA-F]{32}$")] public string Latest_model_build_sid { get; set; } @@ -107,8 +105,7 @@ public class Autopilotv1assistant /// Pattern: ^UA[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^UA[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -136,8 +133,7 @@ public class Autopilotv1assistantdefaults /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -148,8 +144,7 @@ public class Autopilotv1assistantdefaults /// Pattern: ^UA[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="assistant_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^UA[0-9a-fA-F]{32}$")] public string Assistant_sid { get; set; } @@ -177,8 +172,7 @@ public class Autopilotv1assistantdialogue /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -189,8 +183,7 @@ public class Autopilotv1assistantdialogue /// Pattern: ^UA[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="assistant_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^UA[0-9a-fA-F]{32}$")] public string Assistant_sid { get; set; } @@ -207,8 +200,7 @@ public class Autopilotv1assistantdialogue /// Pattern: ^UK[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^UK[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -230,8 +222,7 @@ public class Autopilotv1assistantfield_type /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -242,8 +233,7 @@ public class Autopilotv1assistantfield_type /// Pattern: ^UA[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="assistant_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^UA[0-9a-fA-F]{32}$")] public string Assistant_sid { get; set; } @@ -278,8 +268,7 @@ public class Autopilotv1assistantfield_type /// Pattern: ^UB[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^UB[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -307,8 +296,7 @@ public class Autopilotv1assistantfield_typefield_value /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -319,8 +307,7 @@ public class Autopilotv1assistantfield_typefield_value /// Pattern: ^UA[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="assistant_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^UA[0-9a-fA-F]{32}$")] public string Assistant_sid { get; set; } @@ -343,8 +330,7 @@ public class Autopilotv1assistantfield_typefield_value /// Pattern: ^UB[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="field_type_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^UB[0-9a-fA-F]{32}$")] public string Field_type_sid { get; set; } @@ -361,8 +347,7 @@ public class Autopilotv1assistantfield_typefield_value /// Pattern: ^UC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^UC[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -373,8 +358,7 @@ public class Autopilotv1assistantfield_typefield_value /// Pattern: ^UC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="synonym_of")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^UC[0-9a-fA-F]{32}$")] public string Synonym_of { get; set; } @@ -402,8 +386,7 @@ public class Autopilotv1assistantmodel_build /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -414,8 +397,7 @@ public class Autopilotv1assistantmodel_build /// Pattern: ^UA[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="assistant_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^UA[0-9a-fA-F]{32}$")] public string Assistant_sid { get; set; } @@ -450,8 +432,7 @@ public class Autopilotv1assistantmodel_build /// Pattern: ^UG[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^UG[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -502,8 +483,7 @@ public class Autopilotv1assistantquery /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -514,8 +494,7 @@ public class Autopilotv1assistantquery /// Pattern: ^UA[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="assistant_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^UA[0-9a-fA-F]{32}$")] public string Assistant_sid { get; set; } @@ -538,8 +517,7 @@ public class Autopilotv1assistantquery /// Pattern: ^UK[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="dialogue_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^UK[0-9a-fA-F]{32}$")] public string Dialogue_sid { get; set; } @@ -556,8 +534,7 @@ public class Autopilotv1assistantquery /// Pattern: ^UG[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="model_build_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^UG[0-9a-fA-F]{32}$")] public string Model_build_sid { get; set; } @@ -580,8 +557,7 @@ public class Autopilotv1assistantquery /// Pattern: ^UF[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sample_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^UF[0-9a-fA-F]{32}$")] public string Sample_sid { get; set; } @@ -592,8 +568,7 @@ public class Autopilotv1assistantquery /// Pattern: ^UH[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^UH[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -627,8 +602,7 @@ public class Autopilotv1assistantstyle_sheet /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -639,8 +613,7 @@ public class Autopilotv1assistantstyle_sheet /// Pattern: ^UA[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="assistant_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^UA[0-9a-fA-F]{32}$")] public string Assistant_sid { get; set; } @@ -668,8 +641,7 @@ public class Autopilotv1assistanttask /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -686,8 +658,7 @@ public class Autopilotv1assistanttask /// Pattern: ^UA[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="assistant_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^UA[0-9a-fA-F]{32}$")] public string Assistant_sid { get; set; } @@ -722,8 +693,7 @@ public class Autopilotv1assistanttask /// Pattern: ^UD[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^UD[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -751,8 +721,7 @@ public class Autopilotv1assistanttaskfield /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -763,8 +732,7 @@ public class Autopilotv1assistanttaskfield /// Pattern: ^UA[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="assistant_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^UA[0-9a-fA-F]{32}$")] public string Assistant_sid { get; set; } @@ -793,8 +761,7 @@ public class Autopilotv1assistanttaskfield /// Pattern: ^UE[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^UE[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -805,8 +772,7 @@ public class Autopilotv1assistanttaskfield /// Pattern: ^UD[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="task_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^UD[0-9a-fA-F]{32}$")] public string Task_sid { get; set; } @@ -834,8 +800,7 @@ public class Autopilotv1assistanttasksample /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -846,8 +811,7 @@ public class Autopilotv1assistanttasksample /// Pattern: ^UA[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="assistant_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^UA[0-9a-fA-F]{32}$")] public string Assistant_sid { get; set; } @@ -876,8 +840,7 @@ public class Autopilotv1assistanttasksample /// Pattern: ^UF[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^UF[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -900,8 +863,7 @@ public class Autopilotv1assistanttasksample /// Pattern: ^UD[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="task_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^UD[0-9a-fA-F]{32}$")] public string Task_sid { get; set; } @@ -923,8 +885,7 @@ public class Autopilotv1assistanttasktask_actions /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -935,8 +896,7 @@ public class Autopilotv1assistanttasktask_actions /// Pattern: ^UA[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="assistant_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^UA[0-9a-fA-F]{32}$")] public string Assistant_sid { get; set; } @@ -953,8 +913,7 @@ public class Autopilotv1assistanttasktask_actions /// Pattern: ^UD[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="task_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^UD[0-9a-fA-F]{32}$")] public string Task_sid { get; set; } @@ -976,8 +935,7 @@ public class Autopilotv1assistanttasktask_statistics /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -988,8 +946,7 @@ public class Autopilotv1assistanttasktask_statistics /// Pattern: ^UA[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="assistant_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^UA[0-9a-fA-F]{32}$")] public string Assistant_sid { get; set; } @@ -1012,8 +969,7 @@ public class Autopilotv1assistanttasktask_statistics /// Pattern: ^UD[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="task_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^UD[0-9a-fA-F]{32}$")] public string Task_sid { get; set; } @@ -1035,8 +991,7 @@ public class Autopilotv1assistantwebhook /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -1047,8 +1002,7 @@ public class Autopilotv1assistantwebhook /// Pattern: ^UA[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="assistant_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^UA[0-9a-fA-F]{32}$")] public string Assistant_sid { get; set; } @@ -1077,8 +1031,7 @@ public class Autopilotv1assistantwebhook /// Pattern: ^UM[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^UM[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -1118,8 +1071,7 @@ public class Autopilotv1restore_assistant /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -1166,8 +1118,7 @@ public class Autopilotv1restore_assistant /// Pattern: ^UG[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="latest_model_build_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^UG[0-9a-fA-F]{32}$")] public string Latest_model_build_sid { get; set; } @@ -1190,8 +1141,7 @@ public class Autopilotv1restore_assistant /// Pattern: ^UA[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^UA[0-9a-fA-F]{32}$")] public string Sid { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_bulkexports_v1_1_52_0_.cs b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_bulkexports_v1_1_52_0_.cs index 83336bd9..d700014a 100644 --- a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_bulkexports_v1_1_52_0_.cs +++ b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_bulkexports_v1_1_52_0_.cs @@ -131,8 +131,7 @@ public class Bulkexportsv1exportexport_custom_job /// Pattern: ^JS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="job_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^JS[0-9a-fA-F]{32}$")] public string Job_sid { get; set; } @@ -208,8 +207,7 @@ public class Bulkexportsv1exportjob /// Pattern: ^JS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="job_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^JS[0-9a-fA-F]{32}$")] public string Job_sid { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_chat_v1_1_52_0_.cs b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_chat_v1_1_52_0_.cs index f3952a8e..f1862242 100644 --- a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_chat_v1_1_52_0_.cs +++ b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_chat_v1_1_52_0_.cs @@ -40,8 +40,7 @@ public class Chatv1credential /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -76,8 +75,7 @@ public class Chatv1credential /// Pattern: ^CR[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^CR[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -116,8 +114,7 @@ public class Chatv1service /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -146,8 +143,7 @@ public class Chatv1service /// Pattern: ^RL[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="default_channel_creator_role_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^RL[0-9a-fA-F]{32}$")] public string Default_channel_creator_role_sid { get; set; } @@ -158,8 +154,7 @@ public class Chatv1service /// Pattern: ^RL[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="default_channel_role_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^RL[0-9a-fA-F]{32}$")] public string Default_channel_role_sid { get; set; } @@ -170,8 +165,7 @@ public class Chatv1service /// Pattern: ^RL[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="default_service_role_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^RL[0-9a-fA-F]{32}$")] public string Default_service_role_sid { get; set; } @@ -230,8 +224,7 @@ public class Chatv1service /// Pattern: ^IS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^IS[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -277,8 +270,7 @@ public class Chatv1servicechannel /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -337,8 +329,7 @@ public class Chatv1servicechannel /// Pattern: ^IS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^IS[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } @@ -349,8 +340,7 @@ public class Chatv1servicechannel /// Pattern: ^CH[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^CH[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -392,8 +382,7 @@ public class Chatv1servicechannelinvite /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -404,8 +393,7 @@ public class Chatv1servicechannelinvite /// Pattern: ^CH[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="channel_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^CH[0-9a-fA-F]{32}$")] public string Channel_sid { get; set; } @@ -440,8 +428,7 @@ public class Chatv1servicechannelinvite /// Pattern: ^RL[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="role_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^RL[0-9a-fA-F]{32}$")] public string Role_sid { get; set; } @@ -452,8 +439,7 @@ public class Chatv1servicechannelinvite /// Pattern: ^IS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^IS[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } @@ -464,8 +450,7 @@ public class Chatv1servicechannelinvite /// Pattern: ^IN[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^IN[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -487,8 +472,7 @@ public class Chatv1servicechannelmember /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -499,8 +483,7 @@ public class Chatv1servicechannelmember /// Pattern: ^CH[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="channel_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^CH[0-9a-fA-F]{32}$")] public string Channel_sid { get; set; } @@ -541,8 +524,7 @@ public class Chatv1servicechannelmember /// Pattern: ^RL[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="role_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^RL[0-9a-fA-F]{32}$")] public string Role_sid { get; set; } @@ -553,8 +535,7 @@ public class Chatv1servicechannelmember /// Pattern: ^IS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^IS[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } @@ -565,8 +546,7 @@ public class Chatv1servicechannelmember /// Pattern: ^MB[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^MB[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -588,8 +568,7 @@ public class Chatv1servicechannelmessage /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -612,8 +591,7 @@ public class Chatv1servicechannelmessage /// Pattern: ^CH[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="channel_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^CH[0-9a-fA-F]{32}$")] public string Channel_sid { get; set; } @@ -648,8 +626,7 @@ public class Chatv1servicechannelmessage /// Pattern: ^IS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^IS[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } @@ -660,8 +637,7 @@ public class Chatv1servicechannelmessage /// Pattern: ^IM[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^IM[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -672,8 +648,7 @@ public class Chatv1servicechannelmessage /// Pattern: ^CH[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="to")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^CH[0-9a-fA-F]{32}$")] public string To { get; set; } @@ -701,8 +676,7 @@ public class Chatv1servicerole /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -737,8 +711,7 @@ public class Chatv1servicerole /// Pattern: ^IS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^IS[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } @@ -749,8 +722,7 @@ public class Chatv1servicerole /// Pattern: ^RL[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^RL[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -786,8 +758,7 @@ public class Chatv1serviceuser /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -852,8 +823,7 @@ public class Chatv1serviceuser /// Pattern: ^RL[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="role_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^RL[0-9a-fA-F]{32}$")] public string Role_sid { get; set; } @@ -864,8 +834,7 @@ public class Chatv1serviceuser /// Pattern: ^IS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^IS[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } @@ -876,8 +845,7 @@ public class Chatv1serviceuser /// Pattern: ^US[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^US[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -899,8 +867,7 @@ public class Chatv1serviceuseruser_channel /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -911,8 +878,7 @@ public class Chatv1serviceuseruser_channel /// Pattern: ^CH[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="channel_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^CH[0-9a-fA-F]{32}$")] public string Channel_sid { get; set; } @@ -935,8 +901,7 @@ public class Chatv1serviceuseruser_channel /// Pattern: ^MB[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="member_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^MB[0-9a-fA-F]{32}$")] public string Member_sid { get; set; } @@ -947,8 +912,7 @@ public class Chatv1serviceuseruser_channel /// Pattern: ^IS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^IS[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_content_v1_1_52_0_.cs b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_content_v1_1_52_0_.cs index 52ebc9f8..744af681 100644 --- a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_content_v1_1_52_0_.cs +++ b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_content_v1_1_52_0_.cs @@ -29,8 +29,7 @@ public class Contentv1content /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -71,8 +70,7 @@ public class Contentv1content /// Pattern: ^HX[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^HX[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -107,8 +105,7 @@ public class Contentv1contentapproval_fetch /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -119,8 +116,7 @@ public class Contentv1contentapproval_fetch /// Pattern: ^HX[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^HX[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -149,8 +145,7 @@ public class Contentv1content_and_approvals /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -191,8 +186,7 @@ public class Contentv1content_and_approvals /// Pattern: ^HX[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^HX[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -221,8 +215,7 @@ public class Contentv1legacy_content /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -269,8 +262,7 @@ public class Contentv1legacy_content /// Pattern: ^HX[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^HX[0-9a-fA-F]{32}$")] public string Sid { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_events_v1_1_52_0_.cs b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_events_v1_1_52_0_.cs index 6b7ebadf..38df7912 100644 --- a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_events_v1_1_52_0_.cs +++ b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_events_v1_1_52_0_.cs @@ -164,8 +164,7 @@ public class Eventsv1sink /// Pattern: ^DG[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^DG[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -252,8 +251,7 @@ public class Eventsv1subscription /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -288,8 +286,7 @@ public class Eventsv1subscription /// Pattern: ^DF[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^DF[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -300,8 +297,7 @@ public class Eventsv1subscription /// Pattern: ^DG[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sink_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^DG[0-9a-fA-F]{32}$")] public string Sink_sid { get; set; } @@ -323,8 +319,7 @@ public class Eventsv1subscriptionsubscribed_event /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -341,8 +336,7 @@ public class Eventsv1subscriptionsubscribed_event /// Pattern: ^DF[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="subscription_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^DF[0-9a-fA-F]{32}$")] public string Subscription_sid { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_fax_v1_1_29_1_.cs b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_fax_v1_1_29_1_.cs index f6f0da7b..4b5ddfd4 100644 --- a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_fax_v1_1_29_1_.cs +++ b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_fax_v1_1_29_1_.cs @@ -29,8 +29,7 @@ public class Faxv1fax /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -83,8 +82,7 @@ public class Faxv1fax /// Pattern: ^ME[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="media_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^ME[0-9a-fA-F]{32}$")] public string Media_sid { get; set; } @@ -125,8 +123,7 @@ public class Faxv1fax /// Pattern: ^FX[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^FX[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -220,8 +217,7 @@ public class Faxv1faxfax_media /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -250,8 +246,7 @@ public class Faxv1faxfax_media /// Pattern: ^FX[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="fax_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^FX[0-9a-fA-F]{32}$")] public string Fax_sid { get; set; } @@ -262,8 +257,7 @@ public class Faxv1faxfax_media /// Pattern: ^ME[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^ME[0-9a-fA-F]{32}$")] public string Sid { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_flex_v1_1_52_0_.cs b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_flex_v1_1_52_0_.cs index 0e5f4818..210769d9 100644 --- a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_flex_v1_1_52_0_.cs +++ b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_flex_v1_1_52_0_.cs @@ -43,8 +43,7 @@ public class Flexv1channel /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -67,8 +66,7 @@ public class Flexv1channel /// Pattern: ^FO[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="flex_flow_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^FO[0-9a-fA-F]{32}$")] public string Flex_flow_sid { get; set; } @@ -79,8 +77,7 @@ public class Flexv1channel /// Pattern: ^CH[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^CH[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -91,8 +88,7 @@ public class Flexv1channel /// Pattern: ^WT[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="task_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WT[0-9a-fA-F]{32}$")] public string Task_sid { get; set; } @@ -109,8 +105,7 @@ public class Flexv1channel /// Pattern: ^US[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="user_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^US[0-9a-fA-F]{32}$")] public string User_sid { get; set; } } @@ -126,8 +121,7 @@ public class Flexv1configuration /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -168,8 +162,7 @@ public class Flexv1configuration /// Pattern: ^IS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="chat_service_instance_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^IS[0-9a-fA-F]{32}$")] public string Chat_service_instance_sid { get; set; } @@ -246,8 +239,7 @@ public class Flexv1configuration /// Pattern: ^IS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="flex_service_instance_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^IS[0-9a-fA-F]{32}$")] public string Flex_service_instance_sid { get; set; } @@ -282,8 +274,7 @@ public class Flexv1configuration /// Pattern: ^MG[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="messaging_service_instance_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^MG[0-9a-fA-F]{32}$")] public string Messaging_service_instance_sid { get; set; } @@ -357,8 +348,7 @@ public class Flexv1configuration /// Pattern: ^WA[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="taskrouter_offline_activity_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WA[0-9a-fA-F]{32}$")] public string Taskrouter_offline_activity_sid { get; set; } @@ -375,8 +365,7 @@ public class Flexv1configuration /// Pattern: ^WQ[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="taskrouter_target_taskqueue_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WQ[0-9a-fA-F]{32}$")] public string Taskrouter_target_taskqueue_sid { get; set; } @@ -387,8 +376,7 @@ public class Flexv1configuration /// Pattern: ^WW[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="taskrouter_target_workflow_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WW[0-9a-fA-F]{32}$")] public string Taskrouter_target_workflow_sid { get; set; } @@ -417,8 +405,7 @@ public class Flexv1configuration /// Pattern: ^WS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="taskrouter_workspace_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WS[0-9a-fA-F]{32}$")] public string Taskrouter_workspace_sid { get; set; } @@ -464,8 +451,7 @@ public class Flexv1flex_flow /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -479,8 +465,7 @@ public class Flexv1flex_flow /// Pattern: ^IS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="chat_service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^IS[0-9a-fA-F]{32}$")] public string Chat_service_sid { get; set; } @@ -542,8 +527,7 @@ public class Flexv1flex_flow /// Pattern: ^FO[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^FO[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -602,8 +586,7 @@ public class Flexv1insights_assessments /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -638,8 +621,7 @@ public class Flexv1insights_assessments /// Pattern: ^FM[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="assessment_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^FM[0-9a-fA-F]{32}$")] public string Assessment_sid { get; set; } @@ -697,8 +679,7 @@ public class Flexv1insights_assessments_comment /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -715,8 +696,7 @@ public class Flexv1insights_assessments_comment /// Pattern: ^FM[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="assessment_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^FM[0-9a-fA-F]{32}$")] public string Assessment_sid { get; set; } @@ -812,8 +792,7 @@ public class Flexv1insights_questionnaires /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -842,8 +821,7 @@ public class Flexv1insights_questionnaires /// Pattern: ^GM[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="questionnaire_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^GM[0-9a-fA-F]{32}$")] public string Questionnaire_sid { get; set; } @@ -868,8 +846,7 @@ public class Flexv1insights_questionnaires_category /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -880,8 +857,7 @@ public class Flexv1insights_questionnaires_category /// Pattern: ^FY[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="category_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^FY[0-9a-fA-F]{32}$")] public string Category_sid { get; set; } @@ -906,8 +882,7 @@ public class Flexv1insights_questionnaires_question /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -954,8 +929,7 @@ public class Flexv1insights_questionnaires_question /// Pattern: ^GE[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="question_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^GE[0-9a-fA-F]{32}$")] public string Question_sid { get; set; } @@ -1143,8 +1117,7 @@ public class Flexv1insights_settings_answersets /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -1181,8 +1154,7 @@ public class Flexv1insights_settings_comment /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -1223,8 +1195,7 @@ public class Flexv1interaction /// Pattern: ^HQ[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="interaction_context_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^HQ[0-9a-fA-F]{32}$")] public string Interaction_context_sid { get; set; } @@ -1245,8 +1216,7 @@ public class Flexv1interaction /// Pattern: ^KD[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^KD[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -1277,8 +1247,7 @@ public class Flexv1interactioninteraction_channel /// Pattern: ^KD[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="interaction_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^KD[0-9a-fA-F]{32}$")] public string Interaction_sid { get; set; } @@ -1292,8 +1261,7 @@ public class Flexv1interactioninteraction_channel /// Pattern: ^UO[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^UO[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -1367,8 +1335,7 @@ public class Flexv1interactioninteraction_channelinteraction_channel_invite /// Pattern: ^UO[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="channel_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^UO[0-9a-fA-F]{32}$")] public string Channel_sid { get; set; } @@ -1379,8 +1346,7 @@ public class Flexv1interactioninteraction_channelinteraction_channel_invite /// Pattern: ^KD[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="interaction_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^KD[0-9a-fA-F]{32}$")] public string Interaction_sid { get; set; } @@ -1398,8 +1364,7 @@ public class Flexv1interactioninteraction_channelinteraction_channel_invite /// Pattern: ^KG[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^KG[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -1418,8 +1383,7 @@ public class Flexv1interactioninteraction_channelinteraction_channel_participant /// Pattern: ^UO[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="channel_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^UO[0-9a-fA-F]{32}$")] public string Channel_sid { get; set; } @@ -1430,8 +1394,7 @@ public class Flexv1interactioninteraction_channelinteraction_channel_participant /// Pattern: ^KD[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="interaction_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^KD[0-9a-fA-F]{32}$")] public string Interaction_sid { get; set; } @@ -1442,8 +1405,7 @@ public class Flexv1interactioninteraction_channelinteraction_channel_participant /// Pattern: ^UT[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^UT[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -1516,8 +1478,7 @@ public class Flexv1web_channel /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -1540,8 +1501,7 @@ public class Flexv1web_channel /// Pattern: ^FO[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="flex_flow_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^FO[0-9a-fA-F]{32}$")] public string Flex_flow_sid { get; set; } @@ -1552,8 +1512,7 @@ public class Flexv1web_channel /// Pattern: ^CH[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^CH[0-9a-fA-F]{32}$")] public string Sid { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_flex_v2_1_52_0_.cs b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_flex_v2_1_52_0_.cs index ac8ec242..a2cb85ad 100644 --- a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_flex_v2_1_52_0_.cs +++ b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_flex_v2_1_52_0_.cs @@ -29,8 +29,7 @@ public class Flexv2web_channel /// Pattern: ^CH[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="conversation_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^CH[0-9a-fA-F]{32}$")] public string Conversation_sid { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_frontline_v1_1_52_0_.cs b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_frontline_v1_1_52_0_.cs index c5b90d1b..b4f81aa6 100644 --- a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_frontline_v1_1_52_0_.cs +++ b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_frontline_v1_1_52_0_.cs @@ -53,8 +53,7 @@ public class Frontlinev1user /// Pattern: ^US[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^US[0-9a-fA-F]{32}$")] public string Sid { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_insights_v1_1_52_0_.cs b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_insights_v1_1_52_0_.cs index 4ac11d37..bbd74a10 100644 --- a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_insights_v1_1_52_0_.cs +++ b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_insights_v1_1_52_0_.cs @@ -495,8 +495,7 @@ public class Insightsv1account_settings /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -532,8 +531,7 @@ public class Insightsv1call /// Pattern: ^CA[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^CA[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -552,8 +550,7 @@ public class Insightsv1callannotation /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -573,8 +570,7 @@ public class Insightsv1callannotation /// Pattern: ^CA[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="call_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^CA[0-9a-fA-F]{32}$")] public string Call_sid { get; set; } @@ -620,8 +616,7 @@ public class Insightsv1callevent /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -632,8 +627,7 @@ public class Insightsv1callevent /// Pattern: ^CA[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="call_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^CA[0-9a-fA-F]{32}$")] public string Call_sid { get; set; } @@ -697,8 +691,7 @@ public class Insightsv1callmetric /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -709,8 +702,7 @@ public class Insightsv1callmetric /// Pattern: ^CA[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="call_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^CA[0-9a-fA-F]{32}$")] public string Call_sid { get; set; } @@ -779,8 +771,7 @@ public class Insightsv1callsummary /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -806,8 +797,7 @@ public class Insightsv1callsummary /// Pattern: ^CA[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="call_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^CA[0-9a-fA-F]{32}$")] public string Call_sid { get; set; } @@ -922,8 +912,7 @@ public class Insightsv1call_summaries /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -946,8 +935,7 @@ public class Insightsv1call_summaries /// Pattern: ^CA[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="call_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^CA[0-9a-fA-F]{32}$")] public string Call_sid { get; set; } @@ -1062,8 +1050,7 @@ public class Insightsv1conference /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -1074,8 +1061,7 @@ public class Insightsv1conference /// Pattern: ^CF[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="conference_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^CF[0-9a-fA-F]{32}$")] public string Conference_sid { get; set; } @@ -1119,8 +1105,7 @@ public class Insightsv1conference /// Pattern: ^CA[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="ended_by")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^CA[0-9a-fA-F]{32}$")] public string Ended_by { get; set; } @@ -1208,8 +1193,7 @@ public class Insightsv1conferenceconference_participant /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -1223,8 +1207,7 @@ public class Insightsv1conferenceconference_participant /// Pattern: ^CA[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="call_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^CA[0-9a-fA-F]{32}$")] public string Call_sid { get; set; } @@ -1250,8 +1233,7 @@ public class Insightsv1conferenceconference_participant /// Pattern: ^CF[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="conference_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^CF[0-9a-fA-F]{32}$")] public string Conference_sid { get; set; } @@ -1340,8 +1322,7 @@ public class Insightsv1conferenceconference_participant /// Pattern: ^CP[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="participant_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^CP[0-9a-fA-F]{32}$")] public string Participant_sid { get; set; } @@ -1378,8 +1359,7 @@ public class Insightsv1video_room_summary /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -1465,8 +1445,7 @@ public class Insightsv1video_room_summary /// Pattern: ^RM[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="room_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^RM[0-9a-fA-F]{32}$")] public string Room_sid { get; set; } @@ -1698,8 +1677,7 @@ public class Insightsv1video_room_summaryvideo_participant_summary /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -1764,8 +1742,7 @@ public class Insightsv1video_room_summaryvideo_participant_summary /// Pattern: ^PA[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="participant_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^PA[0-9a-fA-F]{32}$")] public string Participant_sid { get; set; } @@ -1788,8 +1765,7 @@ public class Insightsv1video_room_summaryvideo_participant_summary /// Pattern: ^RM[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="room_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^RM[0-9a-fA-F]{32}$")] public string Room_sid { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_intelligence_v2_1_52_0_.cs b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_intelligence_v2_1_52_0_.cs index 697bbd1f..d13a4fa5 100644 --- a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_intelligence_v2_1_52_0_.cs +++ b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_intelligence_v2_1_52_0_.cs @@ -29,8 +29,7 @@ public class Intelligencev2service /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -142,8 +141,7 @@ public class Intelligencev2transcript /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -209,8 +207,7 @@ public class Intelligencev2transcript /// Pattern: ^GA[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^GA[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } @@ -221,8 +218,7 @@ public class Intelligencev2transcript /// Pattern: ^GT[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^GT[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -267,8 +263,7 @@ public class Intelligencev2transcriptmedia /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -285,8 +280,7 @@ public class Intelligencev2transcriptmedia /// Pattern: ^GA[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^GA[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } @@ -297,8 +291,7 @@ public class Intelligencev2transcriptmedia /// Pattern: ^GT[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^GT[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -356,8 +349,7 @@ public class Intelligencev2transcriptoperator_result /// Pattern: ^LY[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="operator_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^LY[0-9a-fA-F]{32}$")] public string Operator_sid { get; set; } @@ -389,8 +381,7 @@ public class Intelligencev2transcriptoperator_result /// Pattern: ^GT[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="transcript_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^GT[0-9a-fA-F]{32}$")] public string Transcript_sid { get; set; } @@ -465,8 +456,7 @@ public class Intelligencev2transcriptsentence /// Pattern: ^GX[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^GX[0-9a-fA-F]{32}$")] public string Sid { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_ip_messaging_v1_1_52_0_.cs b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_ip_messaging_v1_1_52_0_.cs index 6332cd19..d3bae71c 100644 --- a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_ip_messaging_v1_1_52_0_.cs +++ b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_ip_messaging_v1_1_52_0_.cs @@ -53,8 +53,7 @@ public class Ip_messagingv1credential /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -76,8 +75,7 @@ public class Ip_messagingv1credential /// Pattern: ^CR[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^CR[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -98,8 +96,7 @@ public class Ip_messagingv1service /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -118,8 +115,7 @@ public class Ip_messagingv1service /// Pattern: ^RL[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="default_channel_creator_role_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^RL[0-9a-fA-F]{32}$")] public string Default_channel_creator_role_sid { get; set; } @@ -129,8 +125,7 @@ public class Ip_messagingv1service /// Pattern: ^RL[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="default_channel_role_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^RL[0-9a-fA-F]{32}$")] public string Default_channel_role_sid { get; set; } @@ -140,8 +135,7 @@ public class Ip_messagingv1service /// Pattern: ^RL[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="default_service_role_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^RL[0-9a-fA-F]{32}$")] public string Default_service_role_sid { get; set; } @@ -175,8 +169,7 @@ public class Ip_messagingv1service /// Pattern: ^IS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^IS[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -206,8 +199,7 @@ public class Ip_messagingv1servicechannel /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -241,8 +233,7 @@ public class Ip_messagingv1servicechannel /// Pattern: ^IS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^IS[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } @@ -252,8 +243,7 @@ public class Ip_messagingv1servicechannel /// Pattern: ^CH[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^CH[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -288,8 +278,7 @@ public class Ip_messagingv1servicechannelinvite /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -299,8 +288,7 @@ public class Ip_messagingv1servicechannelinvite /// Pattern: ^CH[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="channel_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^CH[0-9a-fA-F]{32}$")] public string Channel_sid { get; set; } @@ -322,8 +310,7 @@ public class Ip_messagingv1servicechannelinvite /// Pattern: ^RL[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="role_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^RL[0-9a-fA-F]{32}$")] public string Role_sid { get; set; } @@ -333,8 +320,7 @@ public class Ip_messagingv1servicechannelinvite /// Pattern: ^IS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^IS[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } @@ -344,8 +330,7 @@ public class Ip_messagingv1servicechannelinvite /// Pattern: ^IN[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^IN[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -363,8 +348,7 @@ public class Ip_messagingv1servicechannelmember /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -374,8 +358,7 @@ public class Ip_messagingv1servicechannelmember /// Pattern: ^CH[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="channel_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^CH[0-9a-fA-F]{32}$")] public string Channel_sid { get; set; } @@ -400,8 +383,7 @@ public class Ip_messagingv1servicechannelmember /// Pattern: ^RL[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="role_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^RL[0-9a-fA-F]{32}$")] public string Role_sid { get; set; } @@ -411,8 +393,7 @@ public class Ip_messagingv1servicechannelmember /// Pattern: ^IS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^IS[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } @@ -422,8 +403,7 @@ public class Ip_messagingv1servicechannelmember /// Pattern: ^MB[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^MB[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -441,8 +421,7 @@ public class Ip_messagingv1servicechannelmessage /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -458,8 +437,7 @@ public class Ip_messagingv1servicechannelmessage /// Pattern: ^CH[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="channel_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^CH[0-9a-fA-F]{32}$")] public string Channel_sid { get; set; } @@ -481,8 +459,7 @@ public class Ip_messagingv1servicechannelmessage /// Pattern: ^IS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^IS[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } @@ -492,8 +469,7 @@ public class Ip_messagingv1servicechannelmessage /// Pattern: ^IM[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^IM[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -503,8 +479,7 @@ public class Ip_messagingv1servicechannelmessage /// Pattern: ^CH[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="to")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^CH[0-9a-fA-F]{32}$")] public string To { get; set; } @@ -525,8 +500,7 @@ public class Ip_messagingv1servicerole /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -548,8 +522,7 @@ public class Ip_messagingv1servicerole /// Pattern: ^IS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^IS[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } @@ -559,8 +532,7 @@ public class Ip_messagingv1servicerole /// Pattern: ^RL[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^RL[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -592,8 +564,7 @@ public class Ip_messagingv1serviceuser /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -630,8 +601,7 @@ public class Ip_messagingv1serviceuser /// Pattern: ^RL[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="role_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^RL[0-9a-fA-F]{32}$")] public string Role_sid { get; set; } @@ -641,8 +611,7 @@ public class Ip_messagingv1serviceuser /// Pattern: ^IS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^IS[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } @@ -652,8 +621,7 @@ public class Ip_messagingv1serviceuser /// Pattern: ^US[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^US[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -671,8 +639,7 @@ public class Ip_messagingv1serviceuseruser_channel /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -682,8 +649,7 @@ public class Ip_messagingv1serviceuseruser_channel /// Pattern: ^CH[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="channel_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^CH[0-9a-fA-F]{32}$")] public string Channel_sid { get; set; } @@ -699,8 +665,7 @@ public class Ip_messagingv1serviceuseruser_channel /// Pattern: ^MB[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="member_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^MB[0-9a-fA-F]{32}$")] public string Member_sid { get; set; } @@ -710,8 +675,7 @@ public class Ip_messagingv1serviceuseruser_channel /// Pattern: ^IS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^IS[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_media_v1_1_52_0_.cs b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_media_v1_1_52_0_.cs index 31d214d0..e3553752 100644 --- a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_media_v1_1_52_0_.cs +++ b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_media_v1_1_52_0_.cs @@ -29,8 +29,7 @@ public class Mediav1media_processor /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -77,8 +76,7 @@ public class Mediav1media_processor /// Pattern: ^ZX[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^ZX[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -152,8 +150,7 @@ public class Mediav1media_recording /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -197,8 +194,7 @@ public class Mediav1media_recording /// Pattern: ^ZX[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="processor_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^ZX[0-9a-fA-F]{32}$")] public string Processor_sid { get; set; } @@ -215,8 +211,7 @@ public class Mediav1media_recording /// Pattern: ^KV[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^KV[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -227,8 +222,7 @@ public class Mediav1media_recording /// Pattern: ^[a-zA-Z]{2}[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="source_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z]{2}[0-9a-fA-F]{32}$")] public string Source_sid { get; set; } @@ -293,8 +287,7 @@ public class Mediav1player_streamer /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -332,8 +325,7 @@ public class Mediav1player_streamer /// Pattern: ^VJ[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^VJ[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -410,8 +402,7 @@ public class Mediav1player_streamerplayer_streamer_playback_grant /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -434,8 +425,7 @@ public class Mediav1player_streamerplayer_streamer_playback_grant /// Pattern: ^VJ[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^VJ[0-9a-fA-F]{32}$")] public string Sid { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_microvisor_v1_1_52_0_.cs b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_microvisor_v1_1_52_0_.cs index 429cc604..061fa91f 100644 --- a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_microvisor_v1_1_52_0_.cs +++ b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_microvisor_v1_1_52_0_.cs @@ -75,8 +75,7 @@ public class Microvisorv1app /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -108,8 +107,7 @@ public class Microvisorv1app /// Pattern: ^KA[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^KA[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -137,8 +135,7 @@ public class Microvisorv1appapp_manifest /// Pattern: ^KA[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="app_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^KA[0-9a-fA-F]{32}$")] public string App_sid { get; set; } @@ -172,8 +169,7 @@ public class Microvisorv1device /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -214,8 +210,7 @@ public class Microvisorv1device /// Pattern: ^UV[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^UV[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -246,8 +241,7 @@ public class Microvisorv1devicedevice_config /// Pattern: ^UV[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="device_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^UV[0-9a-fA-F]{32}$")] public string Device_sid { get; set; } @@ -284,8 +278,7 @@ public class Microvisorv1devicedevice_secret /// Pattern: ^UV[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="device_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^UV[0-9a-fA-F]{32}$")] public string Device_sid { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_monitor_v1_1_52_0_.cs b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_monitor_v1_1_52_0_.cs index 670cac61..b3f9a6da 100644 --- a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_monitor_v1_1_52_0_.cs +++ b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_monitor_v1_1_52_0_.cs @@ -29,8 +29,7 @@ public class Monitorv1alert /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -101,8 +100,7 @@ public class Monitorv1alert /// Pattern: ^[a-zA-Z]{2}[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="resource_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z]{2}[0-9a-fA-F]{32}$")] public string Resource_sid { get; set; } @@ -113,8 +111,7 @@ public class Monitorv1alert /// Pattern: ^[a-zA-Z]{2}[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z]{2}[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } @@ -125,8 +122,7 @@ public class Monitorv1alert /// Pattern: ^NO[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^NO[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -171,8 +167,7 @@ public class Monitorv1alert_instance /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -255,8 +250,7 @@ public class Monitorv1alert_instance /// Pattern: ^[a-zA-Z]{2}[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="resource_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z]{2}[0-9a-fA-F]{32}$")] public string Resource_sid { get; set; } @@ -279,8 +273,7 @@ public class Monitorv1alert_instance /// Pattern: ^[a-zA-Z]{2}[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z]{2}[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } @@ -291,8 +284,7 @@ public class Monitorv1alert_instance /// Pattern: ^NO[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^NO[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -314,8 +306,7 @@ public class Monitorv1event /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -326,8 +317,7 @@ public class Monitorv1event /// Pattern: ^US[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="actor_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^US[0-9a-fA-F]{32}$")] public string Actor_sid { get; set; } @@ -374,8 +364,7 @@ public class Monitorv1event /// Pattern: ^[a-zA-Z]{2}[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="resource_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z]{2}[0-9a-fA-F]{32}$")] public string Resource_sid { get; set; } @@ -392,8 +381,7 @@ public class Monitorv1event /// Pattern: ^AE[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AE[0-9a-fA-F]{32}$")] public string Sid { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_notify_v1_1_52_0_.cs b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_notify_v1_1_52_0_.cs index ea95ba2f..b8c8484e 100644 --- a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_notify_v1_1_52_0_.cs +++ b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_notify_v1_1_52_0_.cs @@ -77,8 +77,7 @@ public class Notifyv1credential /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -113,8 +112,7 @@ public class Notifyv1credential /// Pattern: ^CR[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^CR[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -139,8 +137,7 @@ public class Notifyv1service /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -157,8 +154,7 @@ public class Notifyv1service /// Pattern: ^CR[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="apn_credential_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^CR[0-9a-fA-F]{32}$")] public string Apn_credential_sid { get; set; } @@ -223,8 +219,7 @@ public class Notifyv1service /// Pattern: ^CR[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="fcm_credential_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^CR[0-9a-fA-F]{32}$")] public string Fcm_credential_sid { get; set; } @@ -241,8 +236,7 @@ public class Notifyv1service /// Pattern: ^CR[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="gcm_credential_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^CR[0-9a-fA-F]{32}$")] public string Gcm_credential_sid { get; set; } @@ -265,8 +259,7 @@ public class Notifyv1service /// Pattern: ^MG[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="messaging_service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^MG[0-9a-fA-F]{32}$")] public string Messaging_service_sid { get; set; } @@ -277,8 +270,7 @@ public class Notifyv1service /// Pattern: ^IS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^IS[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -300,8 +292,7 @@ public class Notifyv1servicebinding /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -324,8 +315,7 @@ public class Notifyv1servicebinding /// Pattern: ^CR[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="credential_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^CR[0-9a-fA-F]{32}$")] public string Credential_sid { get; set; } @@ -372,8 +362,7 @@ public class Notifyv1servicebinding /// Pattern: ^IS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^IS[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } @@ -384,8 +373,7 @@ public class Notifyv1servicebinding /// Pattern: ^BS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^BS[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -413,8 +401,7 @@ public class Notifyv1servicenotification /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -494,8 +481,7 @@ public class Notifyv1servicenotification /// Pattern: ^IS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^IS[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } @@ -506,8 +492,7 @@ public class Notifyv1servicenotification /// Pattern: ^NT[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^NT[0-9a-fA-F]{32}$")] public string Sid { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_numbers_v1_1_52_0_.cs b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_numbers_v1_1_52_0_.cs index 1f00296b..dfb31606 100644 --- a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_numbers_v1_1_52_0_.cs +++ b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_numbers_v1_1_52_0_.cs @@ -130,8 +130,7 @@ public class Numbersv1bulk_eligibility /// Pattern: ^EC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="request_id")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^EC[0-9a-fA-F]{32}$")] public string Request_id { get; set; } @@ -188,8 +187,7 @@ public class Numbersv1porting_bulk_portability /// Pattern: ^KZ[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^KZ[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -228,8 +226,7 @@ public class Numbersv1porting_port_in /// Pattern: ^KW[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="port_in_request_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^KW[0-9a-fA-F]{32}$")] public string Port_in_request_sid { get; set; } @@ -248,8 +245,7 @@ public class Numbersv1porting_port_in_fetch /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -284,8 +280,7 @@ public class Numbersv1porting_port_in_fetch /// Pattern: ^KW[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="port_in_request_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^KW[0-9a-fA-F]{32}$")] public string Port_in_request_sid { get; set; } @@ -325,8 +320,7 @@ public class Numbersv1porting_portability /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_oauth_v1_1_51_1_.cs b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_oauth_v1_1_51_1_.cs index 3a422468..24212562 100644 --- a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_oauth_v1_1_51_1_.cs +++ b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_oauth_v1_1_51_1_.cs @@ -223,8 +223,7 @@ public class Oauthv1user_info /// Pattern: ^US[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="user_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^US[0-9a-fA-F]{32}$")] public string User_sid { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_proxy_v1_1_52_0_.cs b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_proxy_v1_1_52_0_.cs index 9ea57c9e..23b9e6ce 100644 --- a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_proxy_v1_1_52_0_.cs +++ b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_proxy_v1_1_52_0_.cs @@ -193,8 +193,7 @@ public class Proxyv1service /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -211,8 +210,7 @@ public class Proxyv1service /// Pattern: ^IS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="chat_instance_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^IS[0-9a-fA-F]{32}$")] public string Chat_instance_sid { get; set; } @@ -265,8 +263,7 @@ public class Proxyv1service /// Pattern: ^KS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^KS[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -322,8 +319,7 @@ public class Proxyv1servicephone_number /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -382,8 +378,7 @@ public class Proxyv1servicephone_number /// Pattern: ^KS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^KS[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } @@ -394,8 +389,7 @@ public class Proxyv1servicephone_number /// Pattern: ^PN[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^PN[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -433,8 +427,7 @@ public class Proxyv1servicesession /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -496,8 +489,7 @@ public class Proxyv1servicesession /// Pattern: ^KS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^KS[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } @@ -508,8 +500,7 @@ public class Proxyv1servicesession /// Pattern: ^KC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^KC[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -580,8 +571,7 @@ public class Proxyv1servicesessioninteraction /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -610,8 +600,7 @@ public class Proxyv1servicesessioninteraction /// Pattern: ^KP[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="inbound_participant_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^KP[0-9a-fA-F]{32}$")] public string Inbound_participant_sid { get; set; } @@ -622,8 +611,7 @@ public class Proxyv1servicesessioninteraction /// Pattern: ^[a-zA-Z]{2}[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="inbound_resource_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z]{2}[0-9a-fA-F]{32}$")] public string Inbound_resource_sid { get; set; } @@ -649,8 +637,7 @@ public class Proxyv1servicesessioninteraction /// Pattern: ^KP[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="outbound_participant_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^KP[0-9a-fA-F]{32}$")] public string Outbound_participant_sid { get; set; } @@ -661,8 +648,7 @@ public class Proxyv1servicesessioninteraction /// Pattern: ^[a-zA-Z]{2}[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="outbound_resource_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z]{2}[0-9a-fA-F]{32}$")] public string Outbound_resource_sid { get; set; } @@ -688,8 +674,7 @@ public class Proxyv1servicesessioninteraction /// Pattern: ^KS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^KS[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } @@ -700,8 +685,7 @@ public class Proxyv1servicesessioninteraction /// Pattern: ^KC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="session_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^KC[0-9a-fA-F]{32}$")] public string Session_sid { get; set; } @@ -712,8 +696,7 @@ public class Proxyv1servicesessioninteraction /// Pattern: ^KI[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^KI[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -874,8 +857,7 @@ public class Proxyv1servicesessionparticipant /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -928,8 +910,7 @@ public class Proxyv1servicesessionparticipant /// Pattern: ^PN[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="proxy_identifier_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^PN[0-9a-fA-F]{32}$")] public string Proxy_identifier_sid { get; set; } @@ -940,8 +921,7 @@ public class Proxyv1servicesessionparticipant /// Pattern: ^KS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^KS[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } @@ -952,8 +932,7 @@ public class Proxyv1servicesessionparticipant /// Pattern: ^KC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="session_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^KC[0-9a-fA-F]{32}$")] public string Session_sid { get; set; } @@ -964,8 +943,7 @@ public class Proxyv1servicesessionparticipant /// Pattern: ^KP[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^KP[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -987,8 +965,7 @@ public class Proxyv1servicesessionparticipantmessage_interaction /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -1017,8 +994,7 @@ public class Proxyv1servicesessionparticipantmessage_interaction /// Pattern: ^KP[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="inbound_participant_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^KP[0-9a-fA-F]{32}$")] public string Inbound_participant_sid { get; set; } @@ -1029,8 +1005,7 @@ public class Proxyv1servicesessionparticipantmessage_interaction /// Pattern: ^[a-zA-Z]{2}[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="inbound_resource_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z]{2}[0-9a-fA-F]{32}$")] public string Inbound_resource_sid { get; set; } @@ -1056,8 +1031,7 @@ public class Proxyv1servicesessionparticipantmessage_interaction /// Pattern: ^KP[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="outbound_participant_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^KP[0-9a-fA-F]{32}$")] public string Outbound_participant_sid { get; set; } @@ -1068,8 +1042,7 @@ public class Proxyv1servicesessionparticipantmessage_interaction /// Pattern: ^[a-zA-Z]{2}[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="outbound_resource_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z]{2}[0-9a-fA-F]{32}$")] public string Outbound_resource_sid { get; set; } @@ -1095,8 +1068,7 @@ public class Proxyv1servicesessionparticipantmessage_interaction /// Pattern: ^KP[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="participant_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^KP[0-9a-fA-F]{32}$")] public string Participant_sid { get; set; } @@ -1107,8 +1079,7 @@ public class Proxyv1servicesessionparticipantmessage_interaction /// Pattern: ^KS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^KS[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } @@ -1119,8 +1090,7 @@ public class Proxyv1servicesessionparticipantmessage_interaction /// Pattern: ^KC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="session_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^KC[0-9a-fA-F]{32}$")] public string Session_sid { get; set; } @@ -1131,8 +1101,7 @@ public class Proxyv1servicesessionparticipantmessage_interaction /// Pattern: ^KI[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^KI[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -1293,8 +1262,7 @@ public class Proxyv1serviceshort_code /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -1335,8 +1303,7 @@ public class Proxyv1serviceshort_code /// Pattern: ^KS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^KS[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } @@ -1353,8 +1320,7 @@ public class Proxyv1serviceshort_code /// Pattern: ^SC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^SC[0-9a-fA-F]{32}$")] public string Sid { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_routes_v2_1_52_0_.cs b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_routes_v2_1_52_0_.cs index 5d88cc19..d36d02a0 100644 --- a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_routes_v2_1_52_0_.cs +++ b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_routes_v2_1_52_0_.cs @@ -29,8 +29,7 @@ public class Routesv2phone_number /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -65,8 +64,7 @@ public class Routesv2phone_number /// Pattern: ^QQ[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^QQ[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -93,8 +91,7 @@ public class Routesv2sip_domain /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -113,8 +110,7 @@ public class Routesv2sip_domain /// Pattern: ^QQ[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^QQ[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -139,8 +135,7 @@ public class Routesv2trunks /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -169,8 +164,7 @@ public class Routesv2trunks /// Pattern: ^QQ[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^QQ[0-9a-fA-F]{32}$")] public string Sid { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_serverless_v1_1_52_0_.cs b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_serverless_v1_1_52_0_.cs index 502f5a8b..8e5d3f19 100644 --- a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_serverless_v1_1_52_0_.cs +++ b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_serverless_v1_1_52_0_.cs @@ -122,8 +122,7 @@ public class Serverlessv1service /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -170,8 +169,7 @@ public class Serverlessv1service /// Pattern: ^ZS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^ZS[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -205,8 +203,7 @@ public class Serverlessv1serviceasset /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -241,8 +238,7 @@ public class Serverlessv1serviceasset /// Pattern: ^ZS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^ZS[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } @@ -253,8 +249,7 @@ public class Serverlessv1serviceasset /// Pattern: ^ZH[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^ZH[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -276,8 +271,7 @@ public class Serverlessv1serviceassetasset_version /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -288,8 +282,7 @@ public class Serverlessv1serviceassetasset_version /// Pattern: ^ZH[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="asset_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^ZH[0-9a-fA-F]{32}$")] public string Asset_sid { get; set; } @@ -312,8 +305,7 @@ public class Serverlessv1serviceassetasset_version /// Pattern: ^ZS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^ZS[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } @@ -324,8 +316,7 @@ public class Serverlessv1serviceassetasset_version /// Pattern: ^ZN[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^ZN[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -364,8 +355,7 @@ public class Serverlessv1servicebuild /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -412,8 +402,7 @@ public class Serverlessv1servicebuild /// Pattern: ^ZS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^ZS[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } @@ -424,8 +413,7 @@ public class Serverlessv1servicebuild /// Pattern: ^ZB[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^ZB[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -450,8 +438,7 @@ public class Serverlessv1servicebuildbuild_status /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -462,8 +449,7 @@ public class Serverlessv1servicebuildbuild_status /// Pattern: ^ZS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^ZS[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } @@ -474,8 +460,7 @@ public class Serverlessv1servicebuildbuild_status /// Pattern: ^ZB[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^ZB[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -500,8 +485,7 @@ public class Serverlessv1serviceenvironment /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -512,8 +496,7 @@ public class Serverlessv1serviceenvironment /// Pattern: ^ZB[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="build_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^ZB[0-9a-fA-F]{32}$")] public string Build_sid { get; set; } @@ -554,8 +537,7 @@ public class Serverlessv1serviceenvironment /// Pattern: ^ZS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^ZS[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } @@ -566,8 +548,7 @@ public class Serverlessv1serviceenvironment /// Pattern: ^ZE[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^ZE[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -595,8 +576,7 @@ public class Serverlessv1serviceenvironmentdeployment /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -607,8 +587,7 @@ public class Serverlessv1serviceenvironmentdeployment /// Pattern: ^ZB[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="build_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^ZB[0-9a-fA-F]{32}$")] public string Build_sid { get; set; } @@ -631,8 +610,7 @@ public class Serverlessv1serviceenvironmentdeployment /// Pattern: ^ZE[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="environment_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^ZE[0-9a-fA-F]{32}$")] public string Environment_sid { get; set; } @@ -643,8 +621,7 @@ public class Serverlessv1serviceenvironmentdeployment /// Pattern: ^ZS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^ZS[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } @@ -655,8 +632,7 @@ public class Serverlessv1serviceenvironmentdeployment /// Pattern: ^ZD[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^ZD[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -678,8 +654,7 @@ public class Serverlessv1serviceenvironmentlog /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -690,8 +665,7 @@ public class Serverlessv1serviceenvironmentlog /// Pattern: ^ZB[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="build_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^ZB[0-9a-fA-F]{32}$")] public string Build_sid { get; set; } @@ -708,8 +682,7 @@ public class Serverlessv1serviceenvironmentlog /// Pattern: ^ZD[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="deployment_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^ZD[0-9a-fA-F]{32}$")] public string Deployment_sid { get; set; } @@ -720,8 +693,7 @@ public class Serverlessv1serviceenvironmentlog /// Pattern: ^ZE[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="environment_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^ZE[0-9a-fA-F]{32}$")] public string Environment_sid { get; set; } @@ -732,8 +704,7 @@ public class Serverlessv1serviceenvironmentlog /// Pattern: ^ZH[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="function_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^ZH[0-9a-fA-F]{32}$")] public string Function_sid { get; set; } @@ -753,8 +724,7 @@ public class Serverlessv1serviceenvironmentlog /// Pattern: ^RQ[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="request_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^RQ[0-9a-fA-F]{32}$")] public string Request_sid { get; set; } @@ -765,8 +735,7 @@ public class Serverlessv1serviceenvironmentlog /// Pattern: ^ZS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^ZS[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } @@ -777,8 +746,7 @@ public class Serverlessv1serviceenvironmentlog /// Pattern: ^NO[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^NO[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -800,8 +768,7 @@ public class Serverlessv1serviceenvironmentvariable /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -824,8 +791,7 @@ public class Serverlessv1serviceenvironmentvariable /// Pattern: ^ZE[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="environment_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^ZE[0-9a-fA-F]{32}$")] public string Environment_sid { get; set; } @@ -842,8 +808,7 @@ public class Serverlessv1serviceenvironmentvariable /// Pattern: ^ZS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^ZS[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } @@ -854,8 +819,7 @@ public class Serverlessv1serviceenvironmentvariable /// Pattern: ^ZV[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^ZV[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -883,8 +847,7 @@ public class Serverlessv1servicefunction /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -919,8 +882,7 @@ public class Serverlessv1servicefunction /// Pattern: ^ZS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^ZS[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } @@ -931,8 +893,7 @@ public class Serverlessv1servicefunction /// Pattern: ^ZH[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^ZH[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -954,8 +915,7 @@ public class Serverlessv1servicefunctionfunction_version /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -972,8 +932,7 @@ public class Serverlessv1servicefunctionfunction_version /// Pattern: ^ZH[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="function_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^ZH[0-9a-fA-F]{32}$")] public string Function_sid { get; set; } @@ -993,8 +952,7 @@ public class Serverlessv1servicefunctionfunction_version /// Pattern: ^ZS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^ZS[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } @@ -1005,8 +963,7 @@ public class Serverlessv1servicefunctionfunction_version /// Pattern: ^ZN[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^ZN[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -1045,8 +1002,7 @@ public class Serverlessv1servicefunctionfunction_versionfunction_version_content /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -1063,8 +1019,7 @@ public class Serverlessv1servicefunctionfunction_versionfunction_version_content /// Pattern: ^ZH[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="function_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^ZH[0-9a-fA-F]{32}$")] public string Function_sid { get; set; } @@ -1075,8 +1030,7 @@ public class Serverlessv1servicefunctionfunction_versionfunction_version_content /// Pattern: ^ZS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^ZS[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } @@ -1087,8 +1041,7 @@ public class Serverlessv1servicefunctionfunction_versionfunction_version_content /// Pattern: ^ZN[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^ZN[0-9a-fA-F]{32}$")] public string Sid { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_studio_v1_1_52_0_.cs b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_studio_v1_1_52_0_.cs index 2fe16395..88e2b6e0 100644 --- a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_studio_v1_1_52_0_.cs +++ b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_studio_v1_1_52_0_.cs @@ -62,8 +62,7 @@ public class Studiov1flow /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -98,8 +97,7 @@ public class Studiov1flow /// Pattern: ^FW[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^FW[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -130,8 +128,7 @@ public class Studiov1flowengagement /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -148,8 +145,7 @@ public class Studiov1flowengagement /// Pattern: ^FC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="contact_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^FC[0-9a-fA-F]{32}$")] public string Contact_sid { get; set; } @@ -178,8 +174,7 @@ public class Studiov1flowengagement /// Pattern: ^FW[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="flow_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^FW[0-9a-fA-F]{32}$")] public string Flow_sid { get; set; } @@ -196,8 +191,7 @@ public class Studiov1flowengagement /// Pattern: ^FN[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^FN[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -222,8 +216,7 @@ public class Studiov1flowengagementengagement_context /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -240,8 +233,7 @@ public class Studiov1flowengagementengagement_context /// Pattern: ^FN[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="engagement_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^FN[0-9a-fA-F]{32}$")] public string Engagement_sid { get; set; } @@ -252,8 +244,7 @@ public class Studiov1flowengagementengagement_context /// Pattern: ^FW[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="flow_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^FW[0-9a-fA-F]{32}$")] public string Flow_sid { get; set; } @@ -275,8 +266,7 @@ public class Studiov1flowengagementstep /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -305,8 +295,7 @@ public class Studiov1flowengagementstep /// Pattern: ^FN[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="engagement_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^FN[0-9a-fA-F]{32}$")] public string Engagement_sid { get; set; } @@ -317,8 +306,7 @@ public class Studiov1flowengagementstep /// Pattern: ^FW[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="flow_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^FW[0-9a-fA-F]{32}$")] public string Flow_sid { get; set; } @@ -341,8 +329,7 @@ public class Studiov1flowengagementstep /// Pattern: ^FT[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^FT[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -376,8 +363,7 @@ public class Studiov1flowengagementstepstep_context /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -394,8 +380,7 @@ public class Studiov1flowengagementstepstep_context /// Pattern: ^FN[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="engagement_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^FN[0-9a-fA-F]{32}$")] public string Engagement_sid { get; set; } @@ -406,8 +391,7 @@ public class Studiov1flowengagementstepstep_context /// Pattern: ^FW[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="flow_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^FW[0-9a-fA-F]{32}$")] public string Flow_sid { get; set; } @@ -418,8 +402,7 @@ public class Studiov1flowengagementstepstep_context /// Pattern: ^FT[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="step_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^FT[0-9a-fA-F]{32}$")] public string Step_sid { get; set; } @@ -441,8 +424,7 @@ public class Studiov1flowexecution /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -459,8 +441,7 @@ public class Studiov1flowexecution /// Pattern: ^FC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="contact_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^FC[0-9a-fA-F]{32}$")] public string Contact_sid { get; set; } @@ -489,8 +470,7 @@ public class Studiov1flowexecution /// Pattern: ^FW[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="flow_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^FW[0-9a-fA-F]{32}$")] public string Flow_sid { get; set; } @@ -507,8 +487,7 @@ public class Studiov1flowexecution /// Pattern: ^FN[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^FN[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -533,8 +512,7 @@ public class Studiov1flowexecutionexecution_context /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -551,8 +529,7 @@ public class Studiov1flowexecutionexecution_context /// Pattern: ^FN[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="execution_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^FN[0-9a-fA-F]{32}$")] public string Execution_sid { get; set; } @@ -563,8 +540,7 @@ public class Studiov1flowexecutionexecution_context /// Pattern: ^FW[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="flow_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^FW[0-9a-fA-F]{32}$")] public string Flow_sid { get; set; } @@ -586,8 +562,7 @@ public class Studiov1flowexecutionexecution_step /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -616,8 +591,7 @@ public class Studiov1flowexecutionexecution_step /// Pattern: ^FN[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="execution_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^FN[0-9a-fA-F]{32}$")] public string Execution_sid { get; set; } @@ -628,8 +602,7 @@ public class Studiov1flowexecutionexecution_step /// Pattern: ^FW[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="flow_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^FW[0-9a-fA-F]{32}$")] public string Flow_sid { get; set; } @@ -652,8 +625,7 @@ public class Studiov1flowexecutionexecution_step /// Pattern: ^FT[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^FT[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -687,8 +659,7 @@ public class Studiov1flowexecutionexecution_stepexecution_step_context /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -705,8 +676,7 @@ public class Studiov1flowexecutionexecution_stepexecution_step_context /// Pattern: ^FN[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="execution_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^FN[0-9a-fA-F]{32}$")] public string Execution_sid { get; set; } @@ -717,8 +687,7 @@ public class Studiov1flowexecutionexecution_stepexecution_step_context /// Pattern: ^FW[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="flow_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^FW[0-9a-fA-F]{32}$")] public string Flow_sid { get; set; } @@ -729,8 +698,7 @@ public class Studiov1flowexecutionexecution_stepexecution_step_context /// Pattern: ^FT[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="step_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^FT[0-9a-fA-F]{32}$")] public string Step_sid { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_studio_v2_1_52_0_.cs b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_studio_v2_1_52_0_.cs index 63176416..0c7abc2c 100644 --- a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_studio_v2_1_52_0_.cs +++ b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_studio_v2_1_52_0_.cs @@ -73,8 +73,7 @@ public class Studiov2flow /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -133,8 +132,7 @@ public class Studiov2flow /// Pattern: ^FW[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^FW[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -174,8 +172,7 @@ public class Studiov2flowexecution /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -210,8 +207,7 @@ public class Studiov2flowexecution /// Pattern: ^FW[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="flow_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^FW[0-9a-fA-F]{32}$")] public string Flow_sid { get; set; } @@ -228,8 +224,7 @@ public class Studiov2flowexecution /// Pattern: ^FN[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^FN[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -254,8 +249,7 @@ public class Studiov2flowexecutionexecution_context /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -272,8 +266,7 @@ public class Studiov2flowexecutionexecution_context /// Pattern: ^FN[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="execution_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^FN[0-9a-fA-F]{32}$")] public string Execution_sid { get; set; } @@ -284,8 +277,7 @@ public class Studiov2flowexecutionexecution_context /// Pattern: ^FW[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="flow_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^FW[0-9a-fA-F]{32}$")] public string Flow_sid { get; set; } @@ -307,8 +299,7 @@ public class Studiov2flowexecutionexecution_step /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -337,8 +328,7 @@ public class Studiov2flowexecutionexecution_step /// Pattern: ^FN[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="execution_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^FN[0-9a-fA-F]{32}$")] public string Execution_sid { get; set; } @@ -349,8 +339,7 @@ public class Studiov2flowexecutionexecution_step /// Pattern: ^FW[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="flow_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^FW[0-9a-fA-F]{32}$")] public string Flow_sid { get; set; } @@ -373,8 +362,7 @@ public class Studiov2flowexecutionexecution_step /// Pattern: ^FT[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^FT[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -408,8 +396,7 @@ public class Studiov2flowexecutionexecution_stepexecution_step_context /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -426,8 +413,7 @@ public class Studiov2flowexecutionexecution_stepexecution_step_context /// Pattern: ^FN[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="execution_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^FN[0-9a-fA-F]{32}$")] public string Execution_sid { get; set; } @@ -438,8 +424,7 @@ public class Studiov2flowexecutionexecution_stepexecution_step_context /// Pattern: ^FW[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="flow_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^FW[0-9a-fA-F]{32}$")] public string Flow_sid { get; set; } @@ -450,8 +435,7 @@ public class Studiov2flowexecutionexecution_stepexecution_step_context /// Pattern: ^FT[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="step_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^FT[0-9a-fA-F]{32}$")] public string Step_sid { get; set; } @@ -473,8 +457,7 @@ public class Studiov2flowflow_revision /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -527,8 +510,7 @@ public class Studiov2flowflow_revision /// Pattern: ^FW[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^FW[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -559,8 +541,7 @@ public class Studiov2flowtest_user /// Pattern: ^FW[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^FW[0-9a-fA-F]{32}$")] public string Sid { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_sync_v1_1_52_0_.cs b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_sync_v1_1_52_0_.cs index 2208941f..5dcf2f72 100644 --- a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_sync_v1_1_52_0_.cs +++ b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_sync_v1_1_52_0_.cs @@ -29,8 +29,7 @@ public class Syncv1service /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -89,8 +88,7 @@ public class Syncv1service /// Pattern: ^IS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^IS[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -130,8 +128,7 @@ public class Syncv1servicedocument /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -184,8 +181,7 @@ public class Syncv1servicedocument /// Pattern: ^IS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^IS[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } @@ -196,8 +192,7 @@ public class Syncv1servicedocument /// Pattern: ^ET[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^ET[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -225,8 +220,7 @@ public class Syncv1servicedocumentdocument_permission /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -237,8 +231,7 @@ public class Syncv1servicedocumentdocument_permission /// Pattern: ^ET[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="document_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^ET[0-9a-fA-F]{32}$")] public string Document_sid { get; set; } @@ -267,8 +260,7 @@ public class Syncv1servicedocumentdocument_permission /// Pattern: ^IS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^IS[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } @@ -296,8 +288,7 @@ public class Syncv1servicesync_list /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -344,8 +335,7 @@ public class Syncv1servicesync_list /// Pattern: ^IS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^IS[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } @@ -356,8 +346,7 @@ public class Syncv1servicesync_list /// Pattern: ^ES[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^ES[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -385,8 +374,7 @@ public class Syncv1servicesync_listsync_list_item /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -433,8 +421,7 @@ public class Syncv1servicesync_listsync_list_item /// Pattern: ^ES[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="list_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^ES[0-9a-fA-F]{32}$")] public string List_sid { get; set; } @@ -451,8 +438,7 @@ public class Syncv1servicesync_listsync_list_item /// Pattern: ^IS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^IS[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } @@ -474,8 +460,7 @@ public class Syncv1servicesync_listsync_list_permission /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -492,8 +477,7 @@ public class Syncv1servicesync_listsync_list_permission /// Pattern: ^ES[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="list_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^ES[0-9a-fA-F]{32}$")] public string List_sid { get; set; } @@ -516,8 +500,7 @@ public class Syncv1servicesync_listsync_list_permission /// Pattern: ^IS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^IS[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } @@ -545,8 +528,7 @@ public class Syncv1servicesync_map /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -593,8 +575,7 @@ public class Syncv1servicesync_map /// Pattern: ^IS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^IS[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } @@ -605,8 +586,7 @@ public class Syncv1servicesync_map /// Pattern: ^MP[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^MP[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -634,8 +614,7 @@ public class Syncv1servicesync_mapsync_map_item /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -682,8 +661,7 @@ public class Syncv1servicesync_mapsync_map_item /// Pattern: ^MP[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="map_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^MP[0-9a-fA-F]{32}$")] public string Map_sid { get; set; } @@ -700,8 +678,7 @@ public class Syncv1servicesync_mapsync_map_item /// Pattern: ^IS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^IS[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } @@ -723,8 +700,7 @@ public class Syncv1servicesync_mapsync_map_permission /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -747,8 +723,7 @@ public class Syncv1servicesync_mapsync_map_permission /// Pattern: ^MP[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="map_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^MP[0-9a-fA-F]{32}$")] public string Map_sid { get; set; } @@ -765,8 +740,7 @@ public class Syncv1servicesync_mapsync_map_permission /// Pattern: ^IS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^IS[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } @@ -794,8 +768,7 @@ public class Syncv1servicesync_stream /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -836,8 +809,7 @@ public class Syncv1servicesync_stream /// Pattern: ^IS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="service_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^IS[0-9a-fA-F]{32}$")] public string Service_sid { get; set; } @@ -848,8 +820,7 @@ public class Syncv1servicesync_stream /// Pattern: ^TO[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^TO[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -883,8 +854,7 @@ public class Syncv1servicesync_streamstream_message /// Pattern: ^TZ[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^TZ[0-9a-fA-F]{32}$")] public string Sid { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_taskrouter_v1_1_52_0_.cs b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_taskrouter_v1_1_52_0_.cs index 8e1b3709..949485e0 100644 --- a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_taskrouter_v1_1_52_0_.cs +++ b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_taskrouter_v1_1_52_0_.cs @@ -149,8 +149,7 @@ public class Taskrouterv1workspace /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -179,8 +178,7 @@ public class Taskrouterv1workspace /// Pattern: ^WA[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="default_activity_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WA[0-9a-fA-F]{32}$")] public string Default_activity_sid { get; set; } @@ -224,8 +222,7 @@ public class Taskrouterv1workspace /// Pattern: ^WS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WS[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -242,8 +239,7 @@ public class Taskrouterv1workspace /// Pattern: ^WA[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="timeout_activity_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WA[0-9a-fA-F]{32}$")] public string Timeout_activity_sid { get; set; } @@ -265,8 +261,7 @@ public class Taskrouterv1workspaceactivity /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -304,8 +299,7 @@ public class Taskrouterv1workspaceactivity /// Pattern: ^WA[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WA[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -322,8 +316,7 @@ public class Taskrouterv1workspaceactivity /// Pattern: ^WS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="workspace_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WS[0-9a-fA-F]{32}$")] public string Workspace_sid { get; set; } } @@ -339,8 +332,7 @@ public class Taskrouterv1workspaceevent /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -351,8 +343,7 @@ public class Taskrouterv1workspaceevent /// Pattern: ^[a-zA-Z]{2}[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="actor_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z]{2}[0-9a-fA-F]{32}$")] public string Actor_sid { get; set; } @@ -405,8 +396,7 @@ public class Taskrouterv1workspaceevent /// Pattern: ^[a-zA-Z]{2}[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="resource_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z]{2}[0-9a-fA-F]{32}$")] public string Resource_sid { get; set; } @@ -429,8 +419,7 @@ public class Taskrouterv1workspaceevent /// Pattern: ^EV[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^EV[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -459,8 +448,7 @@ public class Taskrouterv1workspaceevent /// Pattern: ^WS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="workspace_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WS[0-9a-fA-F]{32}$")] public string Workspace_sid { get; set; } } @@ -476,8 +464,7 @@ public class Taskrouterv1workspacetask /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -539,8 +526,7 @@ public class Taskrouterv1workspacetask /// Pattern: ^WT[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WT[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -551,8 +537,7 @@ public class Taskrouterv1workspacetask /// Pattern: ^TC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="task_channel_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^TC[0-9a-fA-F]{32}$")] public string Task_channel_sid { get; set; } @@ -581,8 +566,7 @@ public class Taskrouterv1workspacetask /// Pattern: ^WQ[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="task_queue_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WQ[0-9a-fA-F]{32}$")] public string Task_queue_sid { get; set; } @@ -617,8 +601,7 @@ public class Taskrouterv1workspacetask /// Pattern: ^WW[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="workflow_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WW[0-9a-fA-F]{32}$")] public string Workflow_sid { get; set; } @@ -629,8 +612,7 @@ public class Taskrouterv1workspacetask /// Pattern: ^WS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="workspace_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WS[0-9a-fA-F]{32}$")] public string Workspace_sid { get; set; } } @@ -646,8 +628,7 @@ public class Taskrouterv1workspacetasktask_reservation /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -679,8 +660,7 @@ public class Taskrouterv1workspacetasktask_reservation /// Pattern: ^WR[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WR[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -691,8 +671,7 @@ public class Taskrouterv1workspacetasktask_reservation /// Pattern: ^WT[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="task_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WT[0-9a-fA-F]{32}$")] public string Task_sid { get; set; } @@ -715,8 +694,7 @@ public class Taskrouterv1workspacetasktask_reservation /// Pattern: ^WK[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="worker_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WK[0-9a-fA-F]{32}$")] public string Worker_sid { get; set; } @@ -727,8 +705,7 @@ public class Taskrouterv1workspacetasktask_reservation /// Pattern: ^WS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="workspace_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WS[0-9a-fA-F]{32}$")] public string Workspace_sid { get; set; } } @@ -744,8 +721,7 @@ public class Taskrouterv1workspacetask_channel /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -786,8 +762,7 @@ public class Taskrouterv1workspacetask_channel /// Pattern: ^TC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^TC[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -810,8 +785,7 @@ public class Taskrouterv1workspacetask_channel /// Pattern: ^WS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="workspace_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WS[0-9a-fA-F]{32}$")] public string Workspace_sid { get; set; } } @@ -827,8 +801,7 @@ public class Taskrouterv1workspacetask_queue /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -845,8 +818,7 @@ public class Taskrouterv1workspacetask_queue /// Pattern: ^WA[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="assignment_activity_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WA[0-9a-fA-F]{32}$")] public string Assignment_activity_sid { get; set; } @@ -893,8 +865,7 @@ public class Taskrouterv1workspacetask_queue /// Pattern: ^WA[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="reservation_activity_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WA[0-9a-fA-F]{32}$")] public string Reservation_activity_sid { get; set; } @@ -905,8 +876,7 @@ public class Taskrouterv1workspacetask_queue /// Pattern: ^WQ[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WQ[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -932,8 +902,7 @@ public class Taskrouterv1workspacetask_queue /// Pattern: ^WS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="workspace_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WS[0-9a-fA-F]{32}$")] public string Workspace_sid { get; set; } } @@ -949,8 +918,7 @@ public class Taskrouterv1workspacetask_queuetask_queue_bulk_real_time_statistics /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -998,8 +966,7 @@ public class Taskrouterv1workspacetask_queuetask_queue_bulk_real_time_statistics /// Pattern: ^WS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="workspace_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WS[0-9a-fA-F]{32}$")] public string Workspace_sid { get; set; } } @@ -1015,8 +982,7 @@ public class Taskrouterv1workspacetask_queuetask_queue_cumulative_statistics /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -1087,8 +1053,7 @@ public class Taskrouterv1workspacetask_queuetask_queue_cumulative_statistics /// Pattern: ^WQ[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="task_queue_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WQ[0-9a-fA-F]{32}$")] public string Task_queue_sid { get; set; } @@ -1153,8 +1118,7 @@ public class Taskrouterv1workspacetask_queuetask_queue_cumulative_statistics /// Pattern: ^WS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="workspace_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WS[0-9a-fA-F]{32}$")] public string Workspace_sid { get; set; } } @@ -1170,8 +1134,7 @@ public class Taskrouterv1workspacetask_queuetask_queue_real_time_statistics /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -1194,8 +1157,7 @@ public class Taskrouterv1workspacetask_queuetask_queue_real_time_statistics /// Pattern: ^WT[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="longest_relative_task_sid_in_queue")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WT[0-9a-fA-F]{32}$")] public string Longest_relative_task_sid_in_queue { get; set; } @@ -1212,8 +1174,7 @@ public class Taskrouterv1workspacetask_queuetask_queue_real_time_statistics /// Pattern: ^WT[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="longest_task_waiting_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WT[0-9a-fA-F]{32}$")] public string Longest_task_waiting_sid { get; set; } @@ -1224,8 +1185,7 @@ public class Taskrouterv1workspacetask_queuetask_queue_real_time_statistics /// Pattern: ^WQ[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="task_queue_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WQ[0-9a-fA-F]{32}$")] public string Task_queue_sid { get; set; } @@ -1272,8 +1232,7 @@ public class Taskrouterv1workspacetask_queuetask_queue_real_time_statistics /// Pattern: ^WS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="workspace_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WS[0-9a-fA-F]{32}$")] public string Workspace_sid { get; set; } } @@ -1289,8 +1248,7 @@ public class Taskrouterv1workspacetask_queuetask_queue_statistics /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -1313,8 +1271,7 @@ public class Taskrouterv1workspacetask_queuetask_queue_statistics /// Pattern: ^WQ[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="task_queue_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WQ[0-9a-fA-F]{32}$")] public string Task_queue_sid { get; set; } @@ -1331,8 +1288,7 @@ public class Taskrouterv1workspacetask_queuetask_queue_statistics /// Pattern: ^WS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="workspace_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WS[0-9a-fA-F]{32}$")] public string Workspace_sid { get; set; } } @@ -1348,8 +1304,7 @@ public class Taskrouterv1workspacetask_queuetask_queues_statistics /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -1372,8 +1327,7 @@ public class Taskrouterv1workspacetask_queuetask_queues_statistics /// Pattern: ^WQ[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="task_queue_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WQ[0-9a-fA-F]{32}$")] public string Task_queue_sid { get; set; } @@ -1384,8 +1338,7 @@ public class Taskrouterv1workspacetask_queuetask_queues_statistics /// Pattern: ^WS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="workspace_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WS[0-9a-fA-F]{32}$")] public string Workspace_sid { get; set; } } @@ -1401,8 +1354,7 @@ public class Taskrouterv1workspaceworker /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -1419,8 +1371,7 @@ public class Taskrouterv1workspaceworker /// Pattern: ^WA[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="activity_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WA[0-9a-fA-F]{32}$")] public string Activity_sid { get; set; } @@ -1473,8 +1424,7 @@ public class Taskrouterv1workspaceworker /// Pattern: ^WK[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WK[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -1491,8 +1441,7 @@ public class Taskrouterv1workspaceworker /// Pattern: ^WS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="workspace_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WS[0-9a-fA-F]{32}$")] public string Workspace_sid { get; set; } } @@ -1508,8 +1457,7 @@ public class Taskrouterv1workspaceworkerworker_channel /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -1556,8 +1504,7 @@ public class Taskrouterv1workspaceworkerworker_channel /// Pattern: ^WC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WC[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -1568,8 +1515,7 @@ public class Taskrouterv1workspaceworkerworker_channel /// Pattern: ^TC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="task_channel_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^TC[0-9a-fA-F]{32}$")] public string Task_channel_sid { get; set; } @@ -1592,8 +1538,7 @@ public class Taskrouterv1workspaceworkerworker_channel /// Pattern: ^WK[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="worker_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WK[0-9a-fA-F]{32}$")] public string Worker_sid { get; set; } @@ -1604,8 +1549,7 @@ public class Taskrouterv1workspaceworkerworker_channel /// Pattern: ^WS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="workspace_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WS[0-9a-fA-F]{32}$")] public string Workspace_sid { get; set; } } @@ -1621,8 +1565,7 @@ public class Taskrouterv1workspaceworkerworker_instance_statistics /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -1645,8 +1588,7 @@ public class Taskrouterv1workspaceworkerworker_instance_statistics /// Pattern: ^WK[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="worker_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WK[0-9a-fA-F]{32}$")] public string Worker_sid { get; set; } @@ -1657,8 +1599,7 @@ public class Taskrouterv1workspaceworkerworker_instance_statistics /// Pattern: ^WS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="workspace_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WS[0-9a-fA-F]{32}$")] public string Workspace_sid { get; set; } } @@ -1674,8 +1615,7 @@ public class Taskrouterv1workspaceworkerworker_reservation /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -1707,8 +1647,7 @@ public class Taskrouterv1workspaceworkerworker_reservation /// Pattern: ^WR[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WR[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -1719,8 +1658,7 @@ public class Taskrouterv1workspaceworkerworker_reservation /// Pattern: ^WT[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="task_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WT[0-9a-fA-F]{32}$")] public string Task_sid { get; set; } @@ -1743,8 +1681,7 @@ public class Taskrouterv1workspaceworkerworker_reservation /// Pattern: ^WK[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="worker_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WK[0-9a-fA-F]{32}$")] public string Worker_sid { get; set; } @@ -1755,8 +1692,7 @@ public class Taskrouterv1workspaceworkerworker_reservation /// Pattern: ^WS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="workspace_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WS[0-9a-fA-F]{32}$")] public string Workspace_sid { get; set; } } @@ -1772,8 +1708,7 @@ public class Taskrouterv1workspaceworkerworker_statistics /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -1802,8 +1737,7 @@ public class Taskrouterv1workspaceworkerworker_statistics /// Pattern: ^WS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="workspace_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WS[0-9a-fA-F]{32}$")] public string Workspace_sid { get; set; } } @@ -1819,8 +1753,7 @@ public class Taskrouterv1workspaceworkerworkers_cumulative_statistics /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -1891,8 +1824,7 @@ public class Taskrouterv1workspaceworkerworkers_cumulative_statistics /// Pattern: ^WS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="workspace_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WS[0-9a-fA-F]{32}$")] public string Workspace_sid { get; set; } } @@ -1908,8 +1840,7 @@ public class Taskrouterv1workspaceworkerworkers_real_time_statistics /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -1938,8 +1869,7 @@ public class Taskrouterv1workspaceworkerworkers_real_time_statistics /// Pattern: ^WS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="workspace_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WS[0-9a-fA-F]{32}$")] public string Workspace_sid { get; set; } } @@ -1955,8 +1885,7 @@ public class Taskrouterv1workspaceworkflow /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -2015,8 +1944,7 @@ public class Taskrouterv1workspaceworkflow /// Pattern: ^WW[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WW[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -2039,8 +1967,7 @@ public class Taskrouterv1workspaceworkflow /// Pattern: ^WS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="workspace_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WS[0-9a-fA-F]{32}$")] public string Workspace_sid { get; set; } } @@ -2056,8 +1983,7 @@ public class Taskrouterv1workspaceworkflowworkflow_cumulative_statistics /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -2182,8 +2108,7 @@ public class Taskrouterv1workspaceworkflowworkflow_cumulative_statistics /// Pattern: ^WW[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="workflow_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WW[0-9a-fA-F]{32}$")] public string Workflow_sid { get; set; } @@ -2194,8 +2119,7 @@ public class Taskrouterv1workspaceworkflowworkflow_cumulative_statistics /// Pattern: ^WS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="workspace_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WS[0-9a-fA-F]{32}$")] public string Workspace_sid { get; set; } } @@ -2211,8 +2135,7 @@ public class Taskrouterv1workspaceworkflowworkflow_real_time_statistics /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -2229,8 +2152,7 @@ public class Taskrouterv1workspaceworkflowworkflow_real_time_statistics /// Pattern: ^WT[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="longest_task_waiting_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WT[0-9a-fA-F]{32}$")] public string Longest_task_waiting_sid { get; set; } @@ -2265,8 +2187,7 @@ public class Taskrouterv1workspaceworkflowworkflow_real_time_statistics /// Pattern: ^WW[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="workflow_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WW[0-9a-fA-F]{32}$")] public string Workflow_sid { get; set; } @@ -2277,8 +2198,7 @@ public class Taskrouterv1workspaceworkflowworkflow_real_time_statistics /// Pattern: ^WS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="workspace_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WS[0-9a-fA-F]{32}$")] public string Workspace_sid { get; set; } } @@ -2294,8 +2214,7 @@ public class Taskrouterv1workspaceworkflowworkflow_statistics /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -2324,8 +2243,7 @@ public class Taskrouterv1workspaceworkflowworkflow_statistics /// Pattern: ^WW[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="workflow_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WW[0-9a-fA-F]{32}$")] public string Workflow_sid { get; set; } @@ -2336,8 +2254,7 @@ public class Taskrouterv1workspaceworkflowworkflow_statistics /// Pattern: ^WS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="workspace_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WS[0-9a-fA-F]{32}$")] public string Workspace_sid { get; set; } } @@ -2353,8 +2270,7 @@ public class Taskrouterv1workspaceworkspace_cumulative_statistics /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -2479,8 +2395,7 @@ public class Taskrouterv1workspaceworkspace_cumulative_statistics /// Pattern: ^WS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="workspace_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WS[0-9a-fA-F]{32}$")] public string Workspace_sid { get; set; } } @@ -2496,8 +2411,7 @@ public class Taskrouterv1workspaceworkspace_real_time_statistics /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -2520,8 +2434,7 @@ public class Taskrouterv1workspaceworkspace_real_time_statistics /// Pattern: ^WT[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="longest_task_waiting_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WT[0-9a-fA-F]{32}$")] public string Longest_task_waiting_sid { get; set; } @@ -2562,8 +2475,7 @@ public class Taskrouterv1workspaceworkspace_real_time_statistics /// Pattern: ^WS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="workspace_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WS[0-9a-fA-F]{32}$")] public string Workspace_sid { get; set; } } @@ -2579,8 +2491,7 @@ public class Taskrouterv1workspaceworkspace_statistics /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -2609,8 +2520,7 @@ public class Taskrouterv1workspaceworkspace_statistics /// Pattern: ^WS[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="workspace_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^WS[0-9a-fA-F]{32}$")] public string Workspace_sid { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_trunking_v1_1_52_0_.cs b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_trunking_v1_1_52_0_.cs index 47026ad1..54c88c66 100644 --- a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_trunking_v1_1_52_0_.cs +++ b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_trunking_v1_1_52_0_.cs @@ -102,8 +102,7 @@ public class Trunkingv1trunk /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -186,8 +185,7 @@ public class Trunkingv1trunk /// Pattern: ^TK[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^TK[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -263,8 +261,7 @@ public class Trunkingv1trunkcredential_list /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -293,8 +290,7 @@ public class Trunkingv1trunkcredential_list /// Pattern: ^CL[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^CL[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -305,8 +301,7 @@ public class Trunkingv1trunkcredential_list /// Pattern: ^TK[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="trunk_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^TK[0-9a-fA-F]{32}$")] public string Trunk_sid { get; set; } @@ -328,8 +323,7 @@ public class Trunkingv1trunkip_access_control_list /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -358,8 +352,7 @@ public class Trunkingv1trunkip_access_control_list /// Pattern: ^AL[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AL[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -370,8 +363,7 @@ public class Trunkingv1trunkip_access_control_list /// Pattern: ^TK[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="trunk_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^TK[0-9a-fA-F]{32}$")] public string Trunk_sid { get; set; } @@ -393,8 +385,7 @@ public class Trunkingv1trunkorigination_url /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -435,8 +426,7 @@ public class Trunkingv1trunkorigination_url /// Pattern: ^OU[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^OU[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -453,8 +443,7 @@ public class Trunkingv1trunkorigination_url /// Pattern: ^TK[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="trunk_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^TK[0-9a-fA-F]{32}$")] public string Trunk_sid { get; set; } @@ -482,8 +471,7 @@ public class Trunkingv1trunkphone_number /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -545,8 +533,7 @@ public class Trunkingv1trunkphone_number /// Pattern: ^PN[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^PN[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -557,8 +544,7 @@ public class Trunkingv1trunkphone_number /// Pattern: ^AP[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sms_application_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AP[0-9a-fA-F]{32}$")] public string Sms_application_sid { get; set; } @@ -605,8 +591,7 @@ public class Trunkingv1trunkphone_number /// Pattern: ^TK[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="trunk_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^TK[0-9a-fA-F]{32}$")] public string Trunk_sid { get; set; } @@ -623,8 +608,7 @@ public class Trunkingv1trunkphone_number /// Pattern: ^AP[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="voice_application_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AP[0-9a-fA-F]{32}$")] public string Voice_application_sid { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_voice_v1_1_52_0_.cs b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_voice_v1_1_52_0_.cs index c962562a..39c00620 100644 --- a/Tests/CsOpenApi3TestsResults/twilio_com_twilio_voice_v1_1_52_0_.cs +++ b/Tests/CsOpenApi3TestsResults/twilio_com_twilio_voice_v1_1_52_0_.cs @@ -35,8 +35,7 @@ public class Voicev1archived_call /// Pattern: ^CA[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^CA[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -58,8 +57,7 @@ public class Voicev1byoc_trunk /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -76,8 +74,7 @@ public class Voicev1byoc_trunk /// Pattern: ^NY[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="connection_policy_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^NY[0-9a-fA-F]{32}$")] public string Connection_policy_sid { get; set; } @@ -106,8 +103,7 @@ public class Voicev1byoc_trunk /// Pattern: ^SD[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="from_domain_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^SD[0-9a-fA-F]{32}$")] public string From_domain_sid { get; set; } @@ -118,8 +114,7 @@ public class Voicev1byoc_trunk /// Pattern: ^BY[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^BY[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -200,8 +195,7 @@ public class Voicev1connection_policy /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -236,8 +230,7 @@ public class Voicev1connection_policy /// Pattern: ^NY[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^NY[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -259,8 +252,7 @@ public class Voicev1connection_policyconnection_policy_target /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -271,8 +263,7 @@ public class Voicev1connection_policyconnection_policy_target /// Pattern: ^NY[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="connection_policy_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^NY[0-9a-fA-F]{32}$")] public string Connection_policy_sid { get; set; } @@ -313,8 +304,7 @@ public class Voicev1connection_policyconnection_policy_target /// Pattern: ^NE[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^NE[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -516,8 +506,7 @@ public class Voicev1ip_record /// Pattern: ^AC[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="account_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^AC[0-9a-fA-F]{32}$")] public string Account_sid { get; set; } @@ -558,8 +547,7 @@ public class Voicev1ip_record /// Pattern: ^IL[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^IL[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -593,8 +581,7 @@ public class Voicev1source_ip_mapping /// Pattern: ^IL[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="ip_record_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^IL[0-9a-fA-F]{32}$")] public string Ip_record_sid { get; set; } @@ -605,8 +592,7 @@ public class Voicev1source_ip_mapping /// Pattern: ^IB[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^IB[0-9a-fA-F]{32}$")] public string Sid { get; set; } @@ -617,8 +603,7 @@ public class Voicev1source_ip_mapping /// Pattern: ^SD[0-9a-fA-F]{32}$ /// [System.Runtime.Serialization.DataMember(Name="sip_domain_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^SD[0-9a-fA-F]{32}$")] public string Sip_domain_sid { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/twitter_com_current_2_62_.cs b/Tests/CsOpenApi3TestsResults/twitter_com_current_2_62_.cs index f69f4e5b..8fc325d2 100644 --- a/Tests/CsOpenApi3TestsResults/twitter_com_current_2_62_.cs +++ b/Tests/CsOpenApi3TestsResults/twitter_com_current_2_62_.cs @@ -684,8 +684,7 @@ public class CreateDmConversationRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="participant_ids")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(49)] + [System.ComponentModel.DataAnnotations.Length(2, 49)] public string[] Participant_ids { get; set; } } @@ -1191,8 +1190,7 @@ public class Geo /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="bbox")] - [System.ComponentModel.DataAnnotations.MinLength(4)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(4, 4)] public double[] Bbox { get; set; } /// @@ -1231,8 +1229,7 @@ public class Point /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="coordinates")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] public double[] Coordinates { get; set; } /// @@ -1317,8 +1314,7 @@ public class Poll /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="options")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(2, 4)] public PollOption[] Options { get; set; } [System.Runtime.Serialization.DataMember(Name="voting_status")] @@ -1340,8 +1336,7 @@ public class PollOption /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="label")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(1, 25)] public string Label { get; set; } /// @@ -4447,8 +4442,7 @@ public class ListCreateRequest /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string Description { get; set; } /// @@ -4458,8 +4452,7 @@ public class ListCreateRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(1, 25)] public string Name { get; set; } [System.Runtime.Serialization.DataMember(Name="private")] @@ -4655,8 +4648,7 @@ public class ListUpdateRequest /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string Description { get; set; } /// @@ -4664,8 +4656,7 @@ public class ListUpdateRequest /// Max length: 25 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(1, 25)] public string Name { get; set; } [System.Runtime.Serialization.DataMember(Name="private")] @@ -5185,8 +5176,7 @@ public class TweetCreateRequestMedia /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="media_ids")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(1, 4)] public string[] Media_ids { get; set; } /// @@ -5195,8 +5185,7 @@ public class TweetCreateRequestMedia /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="tagged_user_ids")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(0, 10)] public string[] Tagged_user_ids { get; set; } } @@ -5221,8 +5210,7 @@ public class TweetCreateRequestPoll /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="options")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(2, 4)] public string[] Options { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/unicourt_com_1_0_0_.cs b/Tests/CsOpenApi3TestsResults/unicourt_com_1_0_0_.cs index e6d85ad8..9c2cbd38 100644 --- a/Tests/CsOpenApi3TestsResults/unicourt_com_1_0_0_.cs +++ b/Tests/CsOpenApi3TestsResults/unicourt_com_1_0_0_.cs @@ -30,8 +30,7 @@ public class AccessTokenIdListResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember()] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(0, 10)] public AccessTokenIdResponse[] AccessTokenIdArray { get; set; } /// @@ -43,8 +42,7 @@ public class AccessTokenIdListResponse [System.ComponentModel.DefaultValue("AccessTokenIdListResponse")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public string Object { get; set; } = "AccessTokenIdListResponse"; } @@ -60,8 +58,7 @@ public class AccessTokenIdResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="issueAddress")] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(15)] + [System.ComponentModel.DataAnnotations.Length(7, 15)] public string IssueAddress { get; set; } /// @@ -72,8 +69,7 @@ public class AccessTokenIdResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="issuedDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset IssuedDate { get; set; } /// @@ -85,8 +81,7 @@ public class AccessTokenIdResponse [System.ComponentModel.DefaultValue("AccessTokenIdResponse")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(21)] - [System.ComponentModel.DataAnnotations.MaxLength(21)] + [System.ComponentModel.DataAnnotations.Length(21, 21)] public string Object { get; set; } = "AccessTokenIdResponse"; /// @@ -97,8 +92,7 @@ public class AccessTokenIdResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="tokenId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string TokenId { get; set; } } @@ -114,8 +108,7 @@ public class AccessTokenRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientId")] - [System.ComponentModel.DataAnnotations.MinLength(32)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(32, 32)] public string ClientId { get; set; } /// @@ -126,8 +119,7 @@ public class AccessTokenRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientSecret")] - [System.ComponentModel.DataAnnotations.MinLength(64)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(64, 64)] public string ClientSecret { get; set; } } @@ -143,8 +135,7 @@ public class AccessTokenResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="accessToken")] - [System.ComponentModel.DataAnnotations.MinLength(700)] - [System.ComponentModel.DataAnnotations.MaxLength(2000)] + [System.ComponentModel.DataAnnotations.Length(700, 2000)] public string AccessToken { get; set; } /// @@ -156,8 +147,7 @@ public class AccessTokenResponse [System.ComponentModel.DefaultValue("AccessTokenResponse")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(19)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(19, 19)] public string Object { get; set; } = "AccessTokenResponse"; /// @@ -168,8 +158,7 @@ public class AccessTokenResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="tokenId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string TokenId { get; set; } /// @@ -180,8 +169,7 @@ public class AccessTokenResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="tokenType")] - [System.ComponentModel.DataAnnotations.MinLength(6)] - [System.ComponentModel.DataAnnotations.MaxLength(6)] + [System.ComponentModel.DataAnnotations.Length(6, 6)] public string TokenType { get; set; } } @@ -196,8 +184,7 @@ public class AdditionalLevels /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="level1")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Level1 { get; set; } /// @@ -207,8 +194,7 @@ public class AdditionalLevels /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="level2")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Level2 { get; set; } /// @@ -218,8 +204,7 @@ public class AdditionalLevels /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="level3")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Level3 { get; set; } /// @@ -229,8 +214,7 @@ public class AdditionalLevels /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="level4")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Level4 { get; set; } /// @@ -241,8 +225,7 @@ public class AdditionalLevels [System.ComponentModel.DefaultValue("AdditionalLevels")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(16)] - [System.ComponentModel.DataAnnotations.MaxLength(16)] + [System.ComponentModel.DataAnnotations.Length(16, 16)] public string Object { get; set; } = "AdditionalLevels"; } @@ -261,8 +244,7 @@ public class Address /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="city")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string City { get; set; } /// @@ -273,8 +255,7 @@ public class Address /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="countryCode")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(2, 3)] public string CountryCode { get; set; } /// @@ -286,8 +267,7 @@ public class Address [System.ComponentModel.DefaultValue("UNKNOWN")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="countryName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string CountryName { get; set; } = "UNKNOWN"; /// @@ -298,8 +278,7 @@ public class Address /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="firstFetchDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(25, 35)] public System.DateTimeOffset FirstFetchDate { get; set; } /// @@ -310,8 +289,7 @@ public class Address /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="isVisible")] - [System.ComponentModel.DataAnnotations.MinLength(4)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(4, 5)] public bool IsVisible { get; set; } /// @@ -322,8 +300,7 @@ public class Address /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="lastFetchDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(25, 35)] public System.DateTimeOffset LastFetchDate { get; set; } /// @@ -336,8 +313,7 @@ public class Address /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="latitude")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.Range(-90, 90)] public System.Nullable Latitude { get; set; } @@ -351,8 +327,7 @@ public class Address /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="longitude")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] [System.ComponentModel.DataAnnotations.Range(-180, 180)] public System.Nullable Longitude { get; set; } @@ -364,8 +339,7 @@ public class Address [System.ComponentModel.DefaultValue("Address")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(7)] + [System.ComponentModel.DataAnnotations.Length(7, 7)] public string Object { get; set; } = "Address"; /// @@ -376,8 +350,7 @@ public class Address /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="stateCode")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] public string StateCode { get; set; } /// @@ -389,8 +362,7 @@ public class Address [System.ComponentModel.DefaultValue("UNKNOWN")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="stateName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string StateName { get; set; } = "UNKNOWN"; /// @@ -401,8 +373,7 @@ public class Address /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="streetAddress1")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(1, 250)] public string StreetAddress1 { get; set; } /// @@ -413,8 +384,7 @@ public class Address /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="streetAddress2")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(150)] + [System.ComponentModel.DataAnnotations.Length(1, 150)] public string StreetAddress2 { get; set; } /// @@ -425,8 +395,7 @@ public class Address /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="zip")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public string Zip { get; set; } /// @@ -437,8 +406,7 @@ public class Address /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="zip4")] - [System.ComponentModel.DataAnnotations.MinLength(4)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(4, 4)] public string Zip4 { get; set; } } @@ -453,8 +421,7 @@ public class AreaOfLaw /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="areaOfLawId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string AreaOfLawId { get; set; } /// @@ -464,8 +431,7 @@ public class AreaOfLaw /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseClass")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string CaseClass { get; set; } /// @@ -475,8 +441,7 @@ public class AreaOfLaw /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseClassId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string CaseClassId { get; set; } /// @@ -487,8 +452,7 @@ public class AreaOfLaw /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="createdDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset CreatedDate { get; set; } /// @@ -498,8 +462,7 @@ public class AreaOfLaw /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -510,8 +473,7 @@ public class AreaOfLaw [System.ComponentModel.DefaultValue("AreaOfLaw")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(9)] - [System.ComponentModel.DataAnnotations.MaxLength(9)] + [System.ComponentModel.DataAnnotations.Length(9, 9)] public string Object { get; set; } = "AreaOfLaw"; } @@ -536,8 +498,7 @@ public class AreaOfLawResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="nextPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2140)] + [System.ComponentModel.DataAnnotations.Length(1, 2140)] public string NextPageAPI { get; set; } /// @@ -548,8 +509,7 @@ public class AreaOfLawResponse [System.ComponentModel.DefaultValue("AreaOfLawResponse")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(17)] - [System.ComponentModel.DataAnnotations.MaxLength(17)] + [System.ComponentModel.DataAnnotations.Length(17, 17)] public string Object { get; set; } = "AreaOfLawResponse"; /// @@ -560,8 +520,7 @@ public class AreaOfLawResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="pageNumber")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int PageNumber { get; set; } /// @@ -572,8 +531,7 @@ public class AreaOfLawResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="previousPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2139)] + [System.ComponentModel.DataAnnotations.Length(1, 2139)] public string PreviousPageAPI { get; set; } /// @@ -584,8 +542,7 @@ public class AreaOfLawResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalCount")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalCount { get; set; } /// @@ -596,8 +553,7 @@ public class AreaOfLawResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalPages")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalPages { get; set; } } @@ -682,8 +638,7 @@ public class AssociatedNormAttorney /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="normAttorneyId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string NormAttorneyId { get; set; } /// @@ -913,8 +868,7 @@ public class AssociatedNormJudge /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="normJudgeId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string NormJudgeId { get; set; } /// @@ -1039,8 +993,7 @@ public class AssociatedNormLawFirm /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="normLawFirmId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string NormLawFirmId { get; set; } /// @@ -1196,8 +1149,7 @@ public class AssociatedNormParty /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="normPartyId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string NormPartyId { get; set; } /// @@ -1338,8 +1290,7 @@ public class Contact [System.ComponentModel.DefaultValue("Contact")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(7)] + [System.ComponentModel.DataAnnotations.Length(7, 7)] public string Object { get; set; } = "Contact"; /// @@ -1366,8 +1317,7 @@ public class Email /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="emailId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string EmailId { get; set; } /// @@ -1378,8 +1328,7 @@ public class Email /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="firstFetchDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(25, 35)] public System.DateTimeOffset FirstFetchDate { get; set; } /// @@ -1390,8 +1339,7 @@ public class Email /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="isVisible")] - [System.ComponentModel.DataAnnotations.MinLength(4)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(4, 5)] public bool IsVisible { get; set; } /// @@ -1402,8 +1350,7 @@ public class Email /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="lastFetchDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(25, 35)] public System.DateTimeOffset LastFetchDate { get; set; } /// @@ -1414,8 +1361,7 @@ public class Email [System.ComponentModel.DefaultValue("Email")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(5, 5)] public string Object { get; set; } = "Email"; } @@ -1434,8 +1380,7 @@ public class Phone /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="firstFetchDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(25, 35)] public System.DateTimeOffset FirstFetchDate { get; set; } /// @@ -1446,8 +1391,7 @@ public class Phone /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="isVisible")] - [System.ComponentModel.DataAnnotations.MinLength(4)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(4, 5)] public bool IsVisible { get; set; } /// @@ -1458,8 +1402,7 @@ public class Phone /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="lastFetchDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(25, 35)] public System.DateTimeOffset LastFetchDate { get; set; } /// @@ -1470,8 +1413,7 @@ public class Phone [System.ComponentModel.DefaultValue("Phone")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(5, 5)] public string Object { get; set; } = "Phone"; /// @@ -1482,8 +1424,7 @@ public class Phone /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="phoneNumber")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(30)] + [System.ComponentModel.DataAnnotations.Length(1, 30)] public string PhoneNumber { get; set; } /// @@ -1494,8 +1435,7 @@ public class Phone /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="phoneType")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(1, 250)] public PhonePhoneType PhoneType { get; set; } } @@ -1548,8 +1488,7 @@ public class Attorney /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="attorneyId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string AttorneyId { get; set; } /// @@ -1594,8 +1533,7 @@ public class Attorney /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="firstFetchDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset FirstFetchDate { get; set; } /// @@ -1624,8 +1562,7 @@ public class Attorney /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="lastFetchDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset LastFetchDate { get; set; } /// @@ -1656,8 +1593,7 @@ public class Attorney /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(1, 250)] public string Name { get; set; } /// @@ -1687,8 +1623,7 @@ public class Attorney [System.ComponentModel.DefaultValue("Attorney")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(8)] - [System.ComponentModel.DataAnnotations.MaxLength(8)] + [System.ComponentModel.DataAnnotations.Length(8, 8)] public string Object { get; set; } = "Attorney"; /// @@ -1755,8 +1690,7 @@ public class AttorneyLawFirm /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="attorneyLawFirmId")] - [System.ComponentModel.DataAnnotations.MinLength(17)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(17, 18)] public string AttorneyLawFirmId { get; set; } /// @@ -1767,8 +1701,7 @@ public class AttorneyLawFirm /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="firstFetchDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public string FirstFetchDate { get; set; } /// @@ -1787,8 +1720,7 @@ public class AttorneyLawFirm /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="lastFetchDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public string LastFetchDate { get; set; } /// @@ -1799,8 +1731,7 @@ public class AttorneyLawFirm /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(1, 250)] public string Name { get; set; } /// @@ -1812,8 +1743,7 @@ public class AttorneyLawFirm [System.ComponentModel.DefaultValue("AttorneyLawFirm")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(15)] - [System.ComponentModel.DataAnnotations.MaxLength(15)] + [System.ComponentModel.DataAnnotations.Length(15, 15)] public string Object { get; set; } = "AttorneyLawFirm"; } @@ -1828,8 +1758,7 @@ public class AttorneyType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="attorneyTypeId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string AttorneyTypeId { get; set; } /// @@ -1840,8 +1769,7 @@ public class AttorneyType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="createdDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset CreatedDate { get; set; } /// @@ -1851,8 +1779,7 @@ public class AttorneyType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -1863,8 +1790,7 @@ public class AttorneyType [System.ComponentModel.DefaultValue("AttorneyType")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] public string Object { get; set; } = "AttorneyType"; } @@ -1891,8 +1817,7 @@ public class PartyAttorneyAssociations [System.ComponentModel.DefaultValue("PartyAttorneyAssociations")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public string Object { get; set; } = "PartyAttorneyAssociations"; /// @@ -1941,8 +1866,7 @@ public class PartyAttorneyAssociation /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="attorneyId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string AttorneyId { get; set; } /// @@ -1962,8 +1886,7 @@ public class PartyAttorneyAssociation [System.ComponentModel.DefaultValue("PartyAttorneyAssociation")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(24)] - [System.ComponentModel.DataAnnotations.MaxLength(24)] + [System.ComponentModel.DataAnnotations.Length(24, 24)] public string Object { get; set; } = "PartyAttorneyAssociation"; /// @@ -1974,8 +1897,7 @@ public class PartyAttorneyAssociation /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="partyAttorneyAssociationId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string PartyAttorneyAssociationId { get; set; } /// @@ -1986,8 +1908,7 @@ public class PartyAttorneyAssociation /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="partyId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string PartyId { get; set; } } @@ -2071,8 +1992,7 @@ public class PossibleNormAttorney /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="normAttorneyId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string NormAttorneyId { get; set; } /// @@ -2093,8 +2013,7 @@ public class PossibleNormAttorney [System.ComponentModel.DefaultValue("PossibleNormAttorney")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(20, 20)] public string Object { get; set; } = "PossibleNormAttorney"; /// @@ -2262,8 +2181,7 @@ public class PossibleNormLawFirm /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="normLawFirmId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string NormLawFirmId { get; set; } /// @@ -2284,8 +2202,7 @@ public class PossibleNormLawFirm [System.ComponentModel.DefaultValue("PossibleNormLawFirm")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(19)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(19, 19)] public string Object { get; set; } = "PossibleNormLawFirm"; /// @@ -2478,8 +2395,7 @@ public class AttorneyRepresentationType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="attorneyRepresentationTypeId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string AttorneyRepresentationTypeId { get; set; } /// @@ -2490,8 +2406,7 @@ public class AttorneyRepresentationType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="createdDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset CreatedDate { get; set; } /// @@ -2501,8 +2416,7 @@ public class AttorneyRepresentationType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -2513,8 +2427,7 @@ public class AttorneyRepresentationType [System.ComponentModel.DefaultValue("AttorneyRepresentationType")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(26)] - [System.ComponentModel.DataAnnotations.MaxLength(26)] + [System.ComponentModel.DataAnnotations.Length(26, 26)] public string Object { get; set; } = "AttorneyRepresentationType"; } @@ -2539,8 +2452,7 @@ public class AttorneyRepresentationTypeResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="nextPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2159)] + [System.ComponentModel.DataAnnotations.Length(1, 2159)] public string NextPageAPI { get; set; } /// @@ -2551,8 +2463,7 @@ public class AttorneyRepresentationTypeResponse [System.ComponentModel.DefaultValue("AttorneyRepresentationTypeResponse")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] public string Object { get; set; } = "AttorneyRepresentationTypeResponse"; /// @@ -2563,8 +2474,7 @@ public class AttorneyRepresentationTypeResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="pageNumber")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int PageNumber { get; set; } /// @@ -2575,8 +2485,7 @@ public class AttorneyRepresentationTypeResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="previousPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2158)] + [System.ComponentModel.DataAnnotations.Length(1, 2158)] public string PreviousPageAPI { get; set; } /// @@ -2587,8 +2496,7 @@ public class AttorneyRepresentationTypeResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalCount")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalCount { get; set; } /// @@ -2599,8 +2507,7 @@ public class AttorneyRepresentationTypeResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalPages")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalPages { get; set; } } @@ -2625,8 +2532,7 @@ public class AttorneyTypeResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="nextPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2145)] + [System.ComponentModel.DataAnnotations.Length(1, 2145)] public string NextPageAPI { get; set; } /// @@ -2637,8 +2543,7 @@ public class AttorneyTypeResponse [System.ComponentModel.DefaultValue("AttorneyTypeResponse")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(20, 20)] public string Object { get; set; } = "AttorneyTypeResponse"; /// @@ -2649,8 +2554,7 @@ public class AttorneyTypeResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="pageNumber")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int PageNumber { get; set; } /// @@ -2661,8 +2565,7 @@ public class AttorneyTypeResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="previousPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2144)] + [System.ComponentModel.DataAnnotations.Length(1, 2144)] public string PreviousPageAPI { get; set; } /// @@ -2673,8 +2576,7 @@ public class AttorneyTypeResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalCount")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalCount { get; set; } /// @@ -2685,8 +2587,7 @@ public class AttorneyTypeResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalPages")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalPages { get; set; } } @@ -2722,8 +2623,7 @@ public class Attorneys [System.ComponentModel.DefaultValue("Attorneys")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(9)] - [System.ComponentModel.DataAnnotations.MaxLength(9)] + [System.ComponentModel.DataAnnotations.Length(9, 9)] public string Object { get; set; } = "Attorneys"; /// @@ -3684,8 +3584,7 @@ public class BarSourceDataDisciplinaryHistoryArray /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="contactId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(1, 250)] public string ContactId { get; set; } /// @@ -4198,8 +4097,7 @@ public class BarSourceDataRelatedCasesArray /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(1, 250)] public string CaseId { get; set; } } @@ -4387,8 +4285,7 @@ public class BillingCycleUsageResponse [System.ComponentModel.DefaultValue("BillingCycleUsageResponse")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public string Object { get; set; } = "BillingCycleUsageResponse"; /// @@ -4419,8 +4316,7 @@ public class BillingCycleUsageResponseApiCallsBillable /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="lastUpdated")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.Nullable LastUpdated { get; set; } } @@ -4443,8 +4339,7 @@ public class BillingCycleUsageResponseApiCallsCredited /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="lastUpdated")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.Nullable LastUpdated { get; set; } } @@ -4467,8 +4362,7 @@ public class BillingCycleUsageResponseApiCallsMade /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="lastUpdated")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.Nullable LastUpdated { get; set; } } @@ -4483,8 +4377,7 @@ public class BillingCycleUsageResponseBillingCycle /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="endDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset EndDate { get; set; } /// @@ -4495,8 +4388,7 @@ public class BillingCycleUsageResponseBillingCycle /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="startDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset StartDate { get; set; } } @@ -4512,8 +4404,7 @@ public class BillingCyclesResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="billingCycleArray")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(0, 12)] public string[] BillingCycleArray { get; set; } /// @@ -4525,8 +4416,7 @@ public class BillingCyclesResponse [System.ComponentModel.DefaultValue("BillingCyclesResponse")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(21)] - [System.ComponentModel.DataAnnotations.MaxLength(21)] + [System.ComponentModel.DataAnnotations.Length(21, 21)] public string Object { get; set; } = "BillingCyclesResponse"; } @@ -4557,8 +4447,7 @@ public class CallbackListResponse [System.ComponentModel.DefaultValue("CallbackListResponse")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(20, 20)] public string Object { get; set; } = "CallbackListResponse"; } @@ -4579,8 +4468,7 @@ public class CallbackListResponseCaseDocumentOrderCallbacks /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="link")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string Link { get; set; } } @@ -4601,8 +4489,7 @@ public class CallbackListResponseCaseExportCallbacks /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="link")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string Link { get; set; } } @@ -4632,8 +4519,7 @@ public class Case /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string CaseId { get; set; } /// @@ -4654,8 +4540,7 @@ public class Case /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseNumber")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(3, 50)] public string CaseNumber { get; set; } /// @@ -4728,8 +4613,7 @@ public class Case /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="courtServiceStatusId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string CourtServiceStatusId { get; set; } /// @@ -4757,8 +4641,7 @@ public class Case /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="filedDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset FiledDate { get; set; } /// @@ -4769,8 +4652,7 @@ public class Case /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="firstFetchDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset FirstFetchDate { get; set; } /// @@ -4811,8 +4693,7 @@ public class Case /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="lastFetchDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset LastFetchDate { get; set; } /// @@ -4823,8 +4704,7 @@ public class Case /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="lastFetchDateWithUpdates")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset LastFetchDateWithUpdates { get; set; } /// @@ -4836,8 +4716,7 @@ public class Case [System.ComponentModel.DefaultValue("Case")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(4)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(4, 4)] public string Object { get; set; } = "Case"; /// @@ -4848,8 +4727,7 @@ public class Case /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="participantsLastFetchDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.Nullable ParticipantsLastFetchDate { get; set; } /// @@ -4925,8 +4803,7 @@ public class CaseDocuments [System.ComponentModel.DefaultValue("CaseDocuments")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(13)] - [System.ComponentModel.DataAnnotations.MaxLength(13)] + [System.ComponentModel.DataAnnotations.Length(13, 13)] public string Object { get; set; } = "CaseDocuments"; /// @@ -4966,8 +4843,7 @@ public class CaseDocument /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="addedToLibraryDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public string AddedToLibraryDate { get; set; } /// @@ -4978,8 +4854,7 @@ public class CaseDocument /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseDocumentId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string CaseDocumentId { get; set; } /// @@ -5008,8 +4883,7 @@ public class CaseDocument /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="documentFiledDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public string DocumentFiledDate { get; set; } /// @@ -5031,8 +4905,7 @@ public class CaseDocument [System.ComponentModel.DefaultValue(CaseDocumentEstimatedOrderDuration.estimateUnavailable)] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="estimatedOrderDuration")] - [System.ComponentModel.DataAnnotations.MinLength(10)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(10, 25)] public CaseDocumentEstimatedOrderDuration EstimatedOrderDuration { get; set; } = CaseDocumentEstimatedOrderDuration.estimateUnavailable; /// @@ -5043,8 +4916,7 @@ public class CaseDocument /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="firstFetchDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public string FirstFetchDate { get; set; } /// @@ -5082,8 +4954,7 @@ public class CaseDocument [System.ComponentModel.DefaultValue("CaseDocument")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] public string Object { get; set; } = "CaseDocument"; /// @@ -5102,8 +4973,7 @@ public class CaseDocument /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="parentDocumentId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string ParentDocumentId { get; set; } /// @@ -5170,8 +5040,7 @@ public class PreviewDocument /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="addedToLibraryDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public string AddedToLibraryDate { get; set; } /// @@ -5201,8 +5070,7 @@ public class PreviewDocument [System.ComponentModel.DefaultValue("PreviewDocument")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(15)] - [System.ComponentModel.DataAnnotations.MaxLength(15)] + [System.ComponentModel.DataAnnotations.Length(15, 15)] public string Object { get; set; } = "PreviewDocument"; } @@ -5295,8 +5163,7 @@ public class CaseStats [System.ComponentModel.DefaultValue("CaseStats")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(9)] - [System.ComponentModel.DataAnnotations.MaxLength(9)] + [System.ComponentModel.DataAnnotations.Length(9, 9)] public string Object { get; set; } = "CaseStats"; /// @@ -5342,8 +5209,7 @@ public class CaseStatus /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseStatusGroup")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string CaseStatusGroup { get; set; } /// @@ -5353,8 +5219,7 @@ public class CaseStatus /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseStatusGroupId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string CaseStatusGroupId { get; set; } /// @@ -5364,8 +5229,7 @@ public class CaseStatus /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseStatusId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string CaseStatusId { get; set; } /// @@ -5376,8 +5240,7 @@ public class CaseStatus /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="createdDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset CreatedDate { get; set; } /// @@ -5387,8 +5250,7 @@ public class CaseStatus /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -5399,8 +5261,7 @@ public class CaseStatus [System.ComponentModel.DefaultValue("CaseStatus")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(10)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(10, 10)] public string Object { get; set; } = "CaseStatus"; } @@ -5415,8 +5276,7 @@ public class CaseType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="areaOfLaw")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string AreaOfLaw { get; set; } /// @@ -5426,8 +5286,7 @@ public class CaseType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="areaOfLawId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string AreaOfLawId { get; set; } /// @@ -5437,8 +5296,7 @@ public class CaseType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseClass")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string CaseClass { get; set; } /// @@ -5448,8 +5306,7 @@ public class CaseType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseClassId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string CaseClassId { get; set; } /// @@ -5459,8 +5316,7 @@ public class CaseType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseTypeGroup")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string CaseTypeGroup { get; set; } /// @@ -5470,8 +5326,7 @@ public class CaseType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseTypeGroupId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string CaseTypeGroupId { get; set; } /// @@ -5481,8 +5336,7 @@ public class CaseType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseTypeId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string CaseTypeId { get; set; } /// @@ -5492,8 +5346,7 @@ public class CaseType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseTypeTag")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string CaseTypeTag { get; set; } /// @@ -5504,8 +5357,7 @@ public class CaseType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="createdDate")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public System.DateTimeOffset CreatedDate { get; set; } /// @@ -5515,8 +5367,7 @@ public class CaseType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -5527,8 +5378,7 @@ public class CaseType [System.ComponentModel.DefaultValue("CaseType")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(8)] - [System.ComponentModel.DataAnnotations.MaxLength(8)] + [System.ComponentModel.DataAnnotations.Length(8, 8)] public string Object { get; set; } = "CaseType"; /// @@ -5538,8 +5388,7 @@ public class CaseType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="saliCode")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string SaliCode { get; set; } } @@ -5570,8 +5419,7 @@ public class CaseCauseOfAction [System.ComponentModel.DefaultValue("CaseCauseOfAction")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(17)] - [System.ComponentModel.DataAnnotations.MaxLength(17)] + [System.ComponentModel.DataAnnotations.Length(17, 17)] public string Object { get; set; } = "CaseCauseOfAction"; } @@ -5586,8 +5434,7 @@ public class CauseOfAction /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="causeOfActionGroup")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string CauseOfActionGroup { get; set; } /// @@ -5597,8 +5444,7 @@ public class CauseOfAction /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="causeOfActionGroupId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string CauseOfActionGroupId { get; set; } /// @@ -5608,8 +5454,7 @@ public class CauseOfAction /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="causeOfActionId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string CauseOfActionId { get; set; } /// @@ -5620,8 +5465,7 @@ public class CauseOfAction /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="createdDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset CreatedDate { get; set; } /// @@ -5631,8 +5475,7 @@ public class CauseOfAction /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -5643,8 +5486,7 @@ public class CauseOfAction [System.ComponentModel.DefaultValue("CauseOfAction")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(13)] - [System.ComponentModel.DataAnnotations.MaxLength(13)] + [System.ComponentModel.DataAnnotations.Length(13, 13)] public string Object { get; set; } = "CauseOfAction"; } @@ -5659,8 +5501,7 @@ public class CauseOfActionAdditionalData /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="causeOfActionAdditionalDataId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string CauseOfActionAdditionalDataId { get; set; } /// @@ -5671,8 +5512,7 @@ public class CauseOfActionAdditionalData /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="createdDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset CreatedDate { get; set; } /// @@ -5683,8 +5523,7 @@ public class CauseOfActionAdditionalData [System.ComponentModel.DefaultValue("CauseOfActionAdditionalData")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(27)] - [System.ComponentModel.DataAnnotations.MaxLength(27)] + [System.ComponentModel.DataAnnotations.Length(27, 27)] public string Object { get; set; } = "CauseOfActionAdditionalData"; /// @@ -5694,8 +5533,7 @@ public class CauseOfActionAdditionalData /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="type")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Type { get; set; } /// @@ -5705,8 +5543,7 @@ public class CauseOfActionAdditionalData /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="value")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Value { get; set; } } @@ -5751,8 +5588,7 @@ public class CaseCharge [System.ComponentModel.DefaultValue("CaseCharge")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(10)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(10, 10)] public string Object { get; set; } = "CaseCharge"; } @@ -5767,8 +5603,7 @@ public class Charge /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="chargeGroup")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string ChargeGroup { get; set; } /// @@ -5778,8 +5613,7 @@ public class Charge /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="chargeGroupId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string ChargeGroupId { get; set; } /// @@ -5789,8 +5623,7 @@ public class Charge /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="chargeId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string ChargeId { get; set; } /// @@ -5801,8 +5634,7 @@ public class Charge /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="createdDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset CreatedDate { get; set; } /// @@ -5812,8 +5644,7 @@ public class Charge /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -5824,8 +5655,7 @@ public class Charge [System.ComponentModel.DefaultValue("Charge")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(6)] - [System.ComponentModel.DataAnnotations.MaxLength(6)] + [System.ComponentModel.DataAnnotations.Length(6, 6)] public string Object { get; set; } = "Charge"; } @@ -5840,8 +5670,7 @@ public class ChargeAdditionalData /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="chargeAdditionalDataId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string ChargeAdditionalDataId { get; set; } /// @@ -5852,8 +5681,7 @@ public class ChargeAdditionalData /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="createdDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset CreatedDate { get; set; } /// @@ -5864,8 +5692,7 @@ public class ChargeAdditionalData [System.ComponentModel.DefaultValue("ChargeAdditionalData")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(20, 20)] public string Object { get; set; } = "ChargeAdditionalData"; /// @@ -5875,8 +5702,7 @@ public class ChargeAdditionalData /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="type")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Type { get; set; } /// @@ -5886,8 +5712,7 @@ public class ChargeAdditionalData /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="value")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Value { get; set; } } @@ -5902,8 +5727,7 @@ public class ChargeDegree /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="chargeDegreeId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string ChargeDegreeId { get; set; } /// @@ -5914,8 +5738,7 @@ public class ChargeDegree /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="createdDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset CreatedDate { get; set; } /// @@ -5925,8 +5748,7 @@ public class ChargeDegree /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -5937,8 +5759,7 @@ public class ChargeDegree [System.ComponentModel.DefaultValue("ChargeDegree")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] public string Object { get; set; } = "ChargeDegree"; } @@ -5953,8 +5774,7 @@ public class ChargeSeverity /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="chargeSeverityId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string ChargeSeverityId { get; set; } /// @@ -5965,8 +5785,7 @@ public class ChargeSeverity /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="createdDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset CreatedDate { get; set; } /// @@ -5976,8 +5795,7 @@ public class ChargeSeverity /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -5988,8 +5806,7 @@ public class ChargeSeverity [System.ComponentModel.DefaultValue("ChargeSeverity")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(14)] - [System.ComponentModel.DataAnnotations.MaxLength(14)] + [System.ComponentModel.DataAnnotations.Length(14, 14)] public string Object { get; set; } = "ChargeSeverity"; } @@ -6011,8 +5828,7 @@ public class Court /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="appealCourtsForCourtAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string AppealCourtsForCourtAPI { get; set; } /// @@ -6022,8 +5838,7 @@ public class Court /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="container")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Container { get; set; } /// @@ -6033,8 +5848,7 @@ public class Court /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="containerType")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string ContainerType { get; set; } /// @@ -6044,8 +5858,7 @@ public class Court /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="courtId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string CourtId { get; set; } /// @@ -6055,8 +5868,7 @@ public class Court /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="courtLocationsForCourtAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string CourtLocationsForCourtAPI { get; set; } /// @@ -6066,8 +5878,7 @@ public class Court /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="courtServiceStatusAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string CourtServiceStatusAPI { get; set; } /// @@ -6077,8 +5888,7 @@ public class Court /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="courtSystemId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string CourtSystemId { get; set; } /// @@ -6088,8 +5898,7 @@ public class Court /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="courtTypeId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string CourtTypeId { get; set; } /// @@ -6100,8 +5909,7 @@ public class Court /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="createdDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset CreatedDate { get; set; } /// @@ -6111,8 +5919,7 @@ public class Court /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="jurisdictionGeoForCourtAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string JurisdictionGeoForCourtAPI { get; set; } /// @@ -6122,8 +5929,7 @@ public class Court /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -6133,8 +5939,7 @@ public class Court /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="nameAka")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string NameAka { get; set; } /// @@ -6145,8 +5950,7 @@ public class Court [System.ComponentModel.DefaultValue("Court")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(5, 5)] public string Object { get; set; } = "Court"; /// @@ -6156,8 +5960,7 @@ public class Court /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="system")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string System { get; set; } /// @@ -6167,8 +5970,7 @@ public class Court /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="type")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Type { get; set; } } @@ -6193,8 +5995,7 @@ public class CourtLocation /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="courtLocationId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string CourtLocationId { get; set; } /// @@ -6204,8 +6005,7 @@ public class CourtLocation /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="courtServiceStatusAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string CourtServiceStatusAPI { get; set; } /// @@ -6215,8 +6015,7 @@ public class CourtLocation /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="courtsForCourtLocationAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string CourtsForCourtLocationAPI { get; set; } /// @@ -6227,8 +6026,7 @@ public class CourtLocation /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="createdDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset CreatedDate { get; set; } /// @@ -6238,8 +6036,7 @@ public class CourtLocation /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -6250,8 +6047,7 @@ public class CourtLocation [System.ComponentModel.DefaultValue("CourtLocation")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(13)] - [System.ComponentModel.DataAnnotations.MaxLength(13)] + [System.ComponentModel.DataAnnotations.Length(13, 13)] public string Object { get; set; } = "CourtLocation"; /// @@ -6263,8 +6059,7 @@ public class CourtLocation [System.ComponentModel.DefaultValue("UNKNOWN")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="stateName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string StateName { get; set; } = "UNKNOWN"; /// @@ -6275,8 +6070,7 @@ public class CourtLocation /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="streetAddress1")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(1, 250)] public string StreetAddress1 { get; set; } /// @@ -6322,8 +6116,7 @@ public class DocketEntries [System.ComponentModel.DefaultValue("DocketEntries")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(13)] - [System.ComponentModel.DataAnnotations.MaxLength(13)] + [System.ComponentModel.DataAnnotations.Length(13, 13)] public string Object { get; set; } = "DocketEntries"; /// @@ -6379,8 +6172,7 @@ public class DocketEntry /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="docketEntryDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset DocketEntryDate { get; set; } /// @@ -6415,8 +6207,7 @@ public class DocketEntry /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="lastFetchDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public string LastFetchDate { get; set; } /// @@ -6428,8 +6219,7 @@ public class DocketEntry [System.ComponentModel.DefaultValue("DocketEntry")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(11)] - [System.ComponentModel.DataAnnotations.MaxLength(11)] + [System.ComponentModel.DataAnnotations.Length(11, 11)] public string Object { get; set; } = "DocketEntry"; /// @@ -6568,8 +6358,7 @@ public class DocketEntryPrimaryDocuments [System.ComponentModel.DefaultValue("DocketEntryPrimaryDocuments")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(27)] - [System.ComponentModel.DataAnnotations.MaxLength(27)] + [System.ComponentModel.DataAnnotations.Length(27, 27)] public string Object { get; set; } = "DocketEntryPrimaryDocuments"; /// @@ -6632,8 +6421,7 @@ public class DocketEntrySecondaryDocuments [System.ComponentModel.DefaultValue("DocketEntrySecondaryDocuments")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(29)] - [System.ComponentModel.DataAnnotations.MaxLength(29)] + [System.ComponentModel.DataAnnotations.Length(29, 29)] public string Object { get; set; } = "DocketEntrySecondaryDocuments"; /// @@ -6695,8 +6483,7 @@ public class ReferencedDocketNumber [System.ComponentModel.DefaultValue("ReferencedDocketNumber")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(22)] - [System.ComponentModel.DataAnnotations.MaxLength(22)] + [System.ComponentModel.DataAnnotations.Length(22, 22)] public string Object { get; set; } = "ReferencedDocketNumber"; } @@ -6881,8 +6668,7 @@ public class Hearings [System.ComponentModel.DefaultValue("Hearings")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(8)] - [System.ComponentModel.DataAnnotations.MaxLength(8)] + [System.ComponentModel.DataAnnotations.Length(8, 8)] public string Object { get; set; } = "Hearings"; /// @@ -6922,8 +6708,7 @@ public class Hearing /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="firstFetchDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public string FirstFetchDate { get; set; } /// @@ -6934,8 +6719,7 @@ public class Hearing /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="hearingDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset HearingDate { get; set; } /// @@ -6963,8 +6747,7 @@ public class Hearing /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="lastFetchDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public string LastFetchDate { get; set; } /// @@ -6986,8 +6769,7 @@ public class Hearing [System.ComponentModel.DefaultValue("Hearing")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(7)] + [System.ComponentModel.DataAnnotations.Length(7, 7)] public string Object { get; set; } = "Hearing"; } @@ -7023,8 +6805,7 @@ public class Judges [System.ComponentModel.DefaultValue("Judges")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(6)] - [System.ComponentModel.DataAnnotations.MaxLength(6)] + [System.ComponentModel.DataAnnotations.Length(6, 6)] public string Object { get; set; } = "Judges"; /// @@ -7072,8 +6853,7 @@ public class Judge /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="firstFetchDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset FirstFetchDate { get; set; } /// @@ -7102,8 +6882,7 @@ public class Judge /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="judgeId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string JudgeId { get; set; } /// @@ -7121,8 +6900,7 @@ public class Judge /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="lastFetchDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset LastFetchDate { get; set; } /// @@ -7153,8 +6931,7 @@ public class Judge /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(1, 250)] public string Name { get; set; } /// @@ -7184,8 +6961,7 @@ public class Judge [System.ComponentModel.DefaultValue("Judge")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(5, 5)] public string Object { get; set; } = "Judge"; /// @@ -7217,8 +6993,7 @@ public class JudgeType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="createdDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset CreatedDate { get; set; } /// @@ -7228,8 +7003,7 @@ public class JudgeType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="judgeTypeId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string JudgeTypeId { get; set; } /// @@ -7239,8 +7013,7 @@ public class JudgeType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -7251,8 +7024,7 @@ public class JudgeType [System.ComponentModel.DefaultValue("JudgeType")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(9)] - [System.ComponentModel.DataAnnotations.MaxLength(9)] + [System.ComponentModel.DataAnnotations.Length(9, 9)] public string Object { get; set; } = "JudgeType"; } @@ -7328,8 +7100,7 @@ public class PossibleNormJudge /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="normJudgeId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string NormJudgeId { get; set; } /// @@ -7350,8 +7121,7 @@ public class PossibleNormJudge [System.ComponentModel.DefaultValue("PossibleNormJudge")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(17)] - [System.ComponentModel.DataAnnotations.MaxLength(17)] + [System.ComponentModel.DataAnnotations.Length(17, 17)] public string Object { get; set; } = "PossibleNormJudge"; /// @@ -7430,8 +7200,7 @@ public class Parties [System.ComponentModel.DefaultValue("Parties")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(7)] + [System.ComponentModel.DataAnnotations.Length(7, 7)] public string Object { get; set; } = "Parties"; /// @@ -7495,8 +7264,7 @@ public class Party /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="firstFetchDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset FirstFetchDate { get; set; } /// @@ -7525,8 +7293,7 @@ public class Party /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="lastFetchDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset LastFetchDate { get; set; } /// @@ -7557,8 +7324,7 @@ public class Party /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(1, 250)] public string Name { get; set; } /// @@ -7588,8 +7354,7 @@ public class Party [System.ComponentModel.DefaultValue("Party")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(5, 5)] public string Object { get; set; } = "Party"; /// @@ -7617,8 +7382,7 @@ public class Party /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="partyId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string PartyId { get; set; } /// @@ -7672,8 +7436,7 @@ public class PartyRole /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="createdDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset CreatedDate { get; set; } /// @@ -7683,8 +7446,7 @@ public class PartyRole /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Description { get; set; } /// @@ -7694,8 +7456,7 @@ public class PartyRole /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -7706,8 +7467,7 @@ public class PartyRole [System.ComponentModel.DefaultValue("PartyRole")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(9)] - [System.ComponentModel.DataAnnotations.MaxLength(9)] + [System.ComponentModel.DataAnnotations.Length(9, 9)] public string Object { get; set; } = "PartyRole"; /// @@ -7717,8 +7477,7 @@ public class PartyRole /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="partyRoleGroup")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string PartyRoleGroup { get; set; } /// @@ -7728,8 +7487,7 @@ public class PartyRole /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="partyRoleGroupId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string PartyRoleGroupId { get; set; } /// @@ -7739,8 +7497,7 @@ public class PartyRole /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="partyRoleId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string PartyRoleId { get; set; } } @@ -7825,8 +7582,7 @@ public class PossibleNormParty /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="normPartyId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string NormPartyId { get; set; } /// @@ -7847,8 +7603,7 @@ public class PossibleNormParty [System.ComponentModel.DefaultValue("PossibleNormParty")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(17)] - [System.ComponentModel.DataAnnotations.MaxLength(17)] + [System.ComponentModel.DataAnnotations.Length(17, 17)] public string Object { get; set; } = "PossibleNormParty"; /// @@ -7936,8 +7691,7 @@ public class RelatedCases [System.ComponentModel.DefaultValue("RelatedCases")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] public string Object { get; set; } = "RelatedCases"; /// @@ -8003,8 +7757,7 @@ public class RelatedCase /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string CaseId { get; set; } /// @@ -8025,8 +7778,7 @@ public class RelatedCase /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseNumber")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(3, 50)] public string CaseNumber { get; set; } /// @@ -8053,8 +7805,7 @@ public class RelatedCase [System.ComponentModel.DefaultValue("RelatedCase")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(11)] - [System.ComponentModel.DataAnnotations.MaxLength(11)] + [System.ComponentModel.DataAnnotations.Length(11, 11)] public string Object { get; set; } = "RelatedCase"; /// @@ -8065,8 +7816,7 @@ public class RelatedCase /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceCaseRelationshipType")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(3, 250)] public string SourceCaseRelationshipType { get; set; } } @@ -8081,8 +7831,7 @@ public class CaseRelationshipType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseRelationshipTypeId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string CaseRelationshipTypeId { get; set; } /// @@ -8093,8 +7842,7 @@ public class CaseRelationshipType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="createdDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset CreatedDate { get; set; } /// @@ -8104,8 +7852,7 @@ public class CaseRelationshipType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -8116,8 +7863,7 @@ public class CaseRelationshipType [System.ComponentModel.DefaultValue("CaseRelationshipType")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(20, 20)] public string Object { get; set; } = "CaseRelationshipType"; } @@ -8145,8 +7891,7 @@ public class SourceCaseData [System.ComponentModel.DefaultValue("SourceCaseData")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(14)] - [System.ComponentModel.DataAnnotations.MaxLength(14)] + [System.ComponentModel.DataAnnotations.Length(14, 14)] public string Object { get; set; } = "SourceCaseData"; /// @@ -8237,8 +7982,7 @@ public class NatureOfSuit [System.ComponentModel.DefaultValue("NatureOfSuit")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] public string Object { get; set; } = "NatureOfSuit"; /// @@ -8277,8 +8021,7 @@ public class SourceCauseOfAction /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="firstFetchDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public string FirstFetchDate { get; set; } /// @@ -8297,8 +8040,7 @@ public class SourceCauseOfAction /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="lastFetchDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public string LastFetchDate { get; set; } /// @@ -8310,8 +8052,7 @@ public class SourceCauseOfAction [System.ComponentModel.DefaultValue("SourceCauseOfAction")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(19)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(19, 19)] public string Object { get; set; } = "SourceCauseOfAction"; /// @@ -8360,8 +8101,7 @@ public class SourceCharge /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="firstFetchDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public string FirstFetchDate { get; set; } /// @@ -8380,8 +8120,7 @@ public class SourceCharge /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="lastFetchDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public string LastFetchDate { get; set; } /// @@ -8393,8 +8132,7 @@ public class SourceCharge [System.ComponentModel.DefaultValue("SourceCharge")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(12)] - [System.ComponentModel.DataAnnotations.MaxLength(12)] + [System.ComponentModel.DataAnnotations.Length(12, 12)] public string Object { get; set; } = "SourceCharge"; /// @@ -8472,8 +8210,7 @@ public class SourceChargeAdditionalData [System.ComponentModel.DefaultValue("SourceChargeAdditionalData")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(26)] - [System.ComponentModel.DataAnnotations.MaxLength(26)] + [System.ComponentModel.DataAnnotations.Length(26, 26)] public string Object { get; set; } = "SourceChargeAdditionalData"; /// @@ -8519,8 +8256,7 @@ public class SourcePageData /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="firstFetchDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public string FirstFetchDate { get; set; } /// @@ -8531,8 +8267,7 @@ public class SourcePageData /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="lastFetchDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public string LastFetchDate { get; set; } /// @@ -8544,8 +8279,7 @@ public class SourcePageData [System.ComponentModel.DefaultValue("SourcePageData")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(14)] - [System.ComponentModel.DataAnnotations.MaxLength(14)] + [System.ComponentModel.DataAnnotations.Length(14, 14)] public string Object { get; set; } = "SourcePageData"; /// @@ -8708,8 +8442,7 @@ public class CaseClass /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseClassId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string CaseClassId { get; set; } /// @@ -8720,8 +8453,7 @@ public class CaseClass /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="createdDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset CreatedDate { get; set; } /// @@ -8731,8 +8463,7 @@ public class CaseClass /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -8743,8 +8474,7 @@ public class CaseClass [System.ComponentModel.DefaultValue("CaseClass")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(9)] - [System.ComponentModel.DataAnnotations.MaxLength(9)] + [System.ComponentModel.DataAnnotations.Length(9, 9)] public string Object { get; set; } = "CaseClass"; } @@ -8799,8 +8529,7 @@ public class CaseClassCoverage /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="courtServiceStatusAPI")] - [System.ComponentModel.DataAnnotations.MinLength(50)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(50, 250)] public string CourtServiceStatusAPI { get; set; } /// @@ -8828,8 +8557,7 @@ public class CaseClassCoverage [System.ComponentModel.DefaultValue("CaseClassCoverage")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(17)] - [System.ComponentModel.DataAnnotations.MaxLength(17)] + [System.ComponentModel.DataAnnotations.Length(17, 17)] public string Object { get; set; } = "CaseClassCoverage"; /// @@ -8870,8 +8598,7 @@ public class CaseClassResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="nextPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2140)] + [System.ComponentModel.DataAnnotations.Length(1, 2140)] public string NextPageAPI { get; set; } /// @@ -8882,8 +8609,7 @@ public class CaseClassResponse [System.ComponentModel.DefaultValue("CaseClassResponse")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(17)] - [System.ComponentModel.DataAnnotations.MaxLength(17)] + [System.ComponentModel.DataAnnotations.Length(17, 17)] public string Object { get; set; } = "CaseClassResponse"; /// @@ -8894,8 +8620,7 @@ public class CaseClassResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="pageNumber")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int PageNumber { get; set; } /// @@ -8906,8 +8631,7 @@ public class CaseClassResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="previousPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2140)] + [System.ComponentModel.DataAnnotations.Length(1, 2140)] public string PreviousPageAPI { get; set; } /// @@ -8918,8 +8642,7 @@ public class CaseClassResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalCount")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalCount { get; set; } /// @@ -8930,8 +8653,7 @@ public class CaseClassResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalPages")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalPages { get; set; } } @@ -9478,8 +9200,7 @@ public class CaseTypeGroup /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="areaOfLaw")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string AreaOfLaw { get; set; } /// @@ -9489,8 +9210,7 @@ public class CaseTypeGroup /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="areaOfLawId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string AreaOfLawId { get; set; } /// @@ -9500,8 +9220,7 @@ public class CaseTypeGroup /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseClass")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string CaseClass { get; set; } /// @@ -9511,8 +9230,7 @@ public class CaseTypeGroup /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseClassId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string CaseClassId { get; set; } /// @@ -9522,8 +9240,7 @@ public class CaseTypeGroup /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseTypeGroupId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string CaseTypeGroupId { get; set; } /// @@ -9534,8 +9251,7 @@ public class CaseTypeGroup /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="createdDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset CreatedDate { get; set; } /// @@ -9545,8 +9261,7 @@ public class CaseTypeGroup /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -9557,8 +9272,7 @@ public class CaseTypeGroup [System.ComponentModel.DefaultValue("CaseTypeGroup")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(13)] - [System.ComponentModel.DataAnnotations.MaxLength(13)] + [System.ComponentModel.DataAnnotations.Length(13, 13)] public string Object { get; set; } = "CaseTypeGroup"; } @@ -10060,8 +9774,7 @@ public class CourtSystem /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="courtSystemId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string CourtSystemId { get; set; } /// @@ -10071,8 +9784,7 @@ public class CourtSystem /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="courtType")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string CourtType { get; set; } /// @@ -10082,8 +9794,7 @@ public class CourtSystem /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="courtTypeId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string CourtTypeId { get; set; } /// @@ -10094,8 +9805,7 @@ public class CourtSystem /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="createdDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset CreatedDate { get; set; } /// @@ -10105,8 +9815,7 @@ public class CourtSystem /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -10117,8 +9826,7 @@ public class CourtSystem [System.ComponentModel.DefaultValue("CourtSystem")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(11)] - [System.ComponentModel.DataAnnotations.MaxLength(11)] + [System.ComponentModel.DataAnnotations.Length(11, 11)] public string Object { get; set; } = "CourtSystem"; } @@ -10270,8 +9978,7 @@ public class CourtType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="courtTypeId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string CourtTypeId { get; set; } /// @@ -10282,8 +9989,7 @@ public class CourtType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="createdDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset CreatedDate { get; set; } /// @@ -10293,8 +9999,7 @@ public class CourtType /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -10305,8 +10010,7 @@ public class CourtType [System.ComponentModel.DefaultValue("CourtType")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(9)] - [System.ComponentModel.DataAnnotations.MaxLength(9)] + [System.ComponentModel.DataAnnotations.Length(9, 9)] public string Object { get; set; } = "CourtType"; } @@ -10458,8 +10162,7 @@ public class JurisdictionGeo /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="city")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string City { get; set; } /// @@ -10469,8 +10172,7 @@ public class JurisdictionGeo /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="country")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Country { get; set; } /// @@ -10480,8 +10182,7 @@ public class JurisdictionGeo /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="county")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string County { get; set; } /// @@ -10491,8 +10192,7 @@ public class JurisdictionGeo /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="courtsForJurisdictionGeoAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string CourtsForJurisdictionGeoAPI { get; set; } /// @@ -10503,8 +10203,7 @@ public class JurisdictionGeo /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="createdDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset CreatedDate { get; set; } /// @@ -10514,8 +10213,7 @@ public class JurisdictionGeo /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="fipsCode")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string FipsCode { get; set; } /// @@ -10525,8 +10223,7 @@ public class JurisdictionGeo /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="jurisdictionGeoId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string JurisdictionGeoId { get; set; } /// @@ -10537,8 +10234,7 @@ public class JurisdictionGeo [System.ComponentModel.DefaultValue("JurisdictionGeo")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(15)] - [System.ComponentModel.DataAnnotations.MaxLength(15)] + [System.ComponentModel.DataAnnotations.Length(15, 15)] public string Object { get; set; } = "JurisdictionGeo"; /// @@ -10548,8 +10244,7 @@ public class JurisdictionGeo /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="state")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string State { get; set; } /// @@ -10657,8 +10352,7 @@ public class CaseCountAnalyticsByNormAttorney /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="normAttorneyId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string NormAttorneyId { get; set; } /// @@ -10775,8 +10469,7 @@ public class CaseCountAnalyticsByNormJudge /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="normJudgeId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string NormJudgeId { get; set; } /// @@ -10893,8 +10586,7 @@ public class CaseCountAnalyticsByNormLawFirm /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="normLawFirmId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string NormLawFirmId { get; set; } /// @@ -11011,8 +10703,7 @@ public class CaseCountAnalyticsByNormParty /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="normPartyId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string NormPartyId { get; set; } /// @@ -11191,8 +10882,7 @@ public class PartyRoleGroup /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="createdDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset CreatedDate { get; set; } /// @@ -11202,8 +10892,7 @@ public class PartyRoleGroup /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Description { get; set; } /// @@ -11213,8 +10902,7 @@ public class PartyRoleGroup /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -11225,8 +10913,7 @@ public class PartyRoleGroup [System.ComponentModel.DefaultValue("PartyRoleGroup")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(14)] - [System.ComponentModel.DataAnnotations.MaxLength(14)] + [System.ComponentModel.DataAnnotations.Length(14, 14)] public string Object { get; set; } = "PartyRoleGroup"; /// @@ -11236,8 +10923,7 @@ public class PartyRoleGroup /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="partyRoleGroupId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string PartyRoleGroupId { get; set; } } @@ -11391,8 +11077,7 @@ public class CaseDocumentOrderCallback /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="callbackGeneratedDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.Nullable CallbackGeneratedDate { get; set; } /// @@ -11410,8 +11095,7 @@ public class CaseDocumentOrderCallback /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseDocumentId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string CaseDocumentId { get; set; } /// @@ -11421,8 +11105,7 @@ public class CaseDocumentOrderCallback /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseDocumentOrderCallbackAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string CaseDocumentOrderCallbackAPI { get; set; } /// @@ -11433,8 +11116,7 @@ public class CaseDocumentOrderCallback /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseDocumentOrderCallbackId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string CaseDocumentOrderCallbackId { get; set; } /// @@ -11461,8 +11143,7 @@ public class CaseDocumentOrderCallback [System.ComponentModel.DefaultValue("CaseDocumentOrderCallback")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public string Object { get; set; } = "CaseDocumentOrderCallback"; /// @@ -11473,8 +11154,7 @@ public class CaseDocumentOrderCallback /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="status")] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(11)] + [System.ComponentModel.DataAnnotations.Length(7, 11)] public CaseDocumentOrderCallbackStatus Status { get; set; } } @@ -11493,8 +11173,7 @@ public class Exception /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="code")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(75)] + [System.ComponentModel.DataAnnotations.Length(1, 75)] public string Code { get; set; } /// @@ -11505,8 +11184,7 @@ public class Exception /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="details")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Details { get; set; } /// @@ -11517,8 +11195,7 @@ public class Exception /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="message")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Message { get; set; } /// @@ -11529,8 +11206,7 @@ public class Exception [System.ComponentModel.DefaultValue("Exception")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(9)] - [System.ComponentModel.DataAnnotations.MaxLength(9)] + [System.ComponentModel.DataAnnotations.Length(9, 9)] public string Object { get; set; } = "Exception"; } @@ -11546,8 +11222,7 @@ public class ExportFile /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="expiryDate")] - [System.ComponentModel.DataAnnotations.MinLength(10)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(10, 40)] public System.DateTimeOffset ExpiryDate { get; set; } /// @@ -11558,8 +11233,7 @@ public class ExportFile /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="fileUrl")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string FileUrl { get; set; } /// @@ -11570,8 +11244,7 @@ public class ExportFile /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -11582,8 +11255,7 @@ public class ExportFile [System.ComponentModel.DefaultValue("ExportFile")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(10)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(10, 10)] public string Object { get; set; } = "ExportFile"; } @@ -11613,8 +11285,7 @@ public class CaseDocumentOrderCallbackListResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="callbackArray")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public CaseDocumentOrderCallback[] CallbackArray { get; set; } /// @@ -11625,8 +11296,7 @@ public class CaseDocumentOrderCallbackListResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="nextPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string NextPageAPI { get; set; } /// @@ -11638,8 +11308,7 @@ public class CaseDocumentOrderCallbackListResponse [System.ComponentModel.DefaultValue("CaseDocumentOrderCallbackListResponse")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(37)] - [System.ComponentModel.DataAnnotations.MaxLength(37)] + [System.ComponentModel.DataAnnotations.Length(37, 37)] public string Object { get; set; } = "CaseDocumentOrderCallbackListResponse"; /// @@ -11658,8 +11327,7 @@ public class CaseDocumentOrderCallbackListResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="previousPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string PreviousPageAPI { get; set; } /// @@ -11692,8 +11360,7 @@ public class CaseDocumentOrderPacerOptions /// Max length: 32 /// [System.Runtime.Serialization.DataMember(Name="pacerClientCode")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(0, 32)] public string PacerClientCode { get; set; } /// @@ -11704,8 +11371,7 @@ public class CaseDocumentOrderPacerOptions /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="pacerUserId")] - [System.ComponentModel.DataAnnotations.MinLength(6)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(6, 40)] public string PacerUserId { get; set; } } @@ -11721,8 +11387,7 @@ public class CaseDocumentOrderRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseDocumentId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string CaseDocumentId { get; set; } /// @@ -11752,8 +11417,7 @@ public class CaseExportCallback /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="callbackGeneratedDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.Nullable CallbackGeneratedDate { get; set; } /// @@ -11763,8 +11427,7 @@ public class CaseExportCallback /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseExportCallbackAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string CaseExportCallbackAPI { get; set; } /// @@ -11775,8 +11438,7 @@ public class CaseExportCallback /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseExportCallbackId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string CaseExportCallbackId { get; set; } /// @@ -11787,8 +11449,7 @@ public class CaseExportCallback /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string CaseId { get; set; } /// @@ -11815,8 +11476,7 @@ public class CaseExportCallback [System.ComponentModel.DefaultValue("CaseExportCallback")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string Object { get; set; } = "CaseExportCallback"; /// @@ -11827,8 +11487,7 @@ public class CaseExportCallback /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="status")] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(11)] + [System.ComponentModel.DataAnnotations.Length(7, 11)] public CaseDocumentOrderCallbackStatus Status { get; set; } } @@ -11844,8 +11503,7 @@ public class CaseExportCallbackListResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="callbackArray")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public CaseExportCallback[] CallbackArray { get; set; } /// @@ -11856,8 +11514,7 @@ public class CaseExportCallbackListResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="nextPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string NextPageAPI { get; set; } /// @@ -11869,8 +11526,7 @@ public class CaseExportCallbackListResponse [System.ComponentModel.DefaultValue("CaseExportCallbackListResponse")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(30)] - [System.ComponentModel.DataAnnotations.MaxLength(30)] + [System.ComponentModel.DataAnnotations.Length(30, 30)] public string Object { get; set; } = "CaseExportCallbackListResponse"; /// @@ -11889,8 +11545,7 @@ public class CaseExportCallbackListResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="previousPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string PreviousPageAPI { get; set; } /// @@ -11931,8 +11586,7 @@ public class CaseRelationshipTypeResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="nextPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2153)] + [System.ComponentModel.DataAnnotations.Length(1, 2153)] public string NextPageAPI { get; set; } /// @@ -11943,8 +11597,7 @@ public class CaseRelationshipTypeResponse [System.ComponentModel.DefaultValue("CaseRelationshipTypeResponse")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(28)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(28, 28)] public string Object { get; set; } = "CaseRelationshipTypeResponse"; /// @@ -11955,8 +11608,7 @@ public class CaseRelationshipTypeResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="pageNumber")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int PageNumber { get; set; } /// @@ -11967,8 +11619,7 @@ public class CaseRelationshipTypeResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="previousPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2152)] + [System.ComponentModel.DataAnnotations.Length(1, 2152)] public string PreviousPageAPI { get; set; } /// @@ -11979,8 +11630,7 @@ public class CaseRelationshipTypeResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalCount")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalCount { get; set; } /// @@ -11991,8 +11641,7 @@ public class CaseRelationshipTypeResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalPages")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalPages { get; set; } } @@ -12008,8 +11657,7 @@ public class CaseSearchResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseSearchId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string CaseSearchId { get; set; } /// @@ -12029,8 +11677,7 @@ public class CaseSearchResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="nextPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2138)] + [System.ComponentModel.DataAnnotations.Length(1, 2138)] public string NextPageAPI { get; set; } /// @@ -12041,8 +11688,7 @@ public class CaseSearchResponse [System.ComponentModel.DefaultValue("CaseSearchResponse")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string Object { get; set; } = "CaseSearchResponse"; /// @@ -12052,8 +11698,7 @@ public class CaseSearchResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="pageNumber")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(1, 4)] public int PageNumber { get; set; } /// @@ -12064,8 +11709,7 @@ public class CaseSearchResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="previousPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2138)] + [System.ComponentModel.DataAnnotations.Length(1, 2138)] public string PreviousPageAPI { get; set; } /// @@ -12076,8 +11720,7 @@ public class CaseSearchResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="q")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(3, 2048)] public string Q { get; set; } /// @@ -12088,8 +11731,7 @@ public class CaseSearchResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalCount")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(11)] + [System.ComponentModel.DataAnnotations.Length(1, 11)] public int TotalCount { get; set; } /// @@ -12100,8 +11742,7 @@ public class CaseSearchResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalPages")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(1, 4)] public int TotalPages { get; set; } } @@ -12116,8 +11757,7 @@ public class CaseSearchResult /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string CaseAPI { get; set; } /// @@ -12127,8 +11767,7 @@ public class CaseSearchResult /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string CaseId { get; set; } /// @@ -12147,8 +11786,7 @@ public class CaseSearchResult /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseNumber")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string CaseNumber { get; set; } /// @@ -12186,8 +11824,7 @@ public class CaseSearchResult /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="filedDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset FiledDate { get; set; } /// @@ -12197,8 +11834,7 @@ public class CaseSearchResult /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="firstFetchDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset FirstFetchDate { get; set; } /// @@ -12208,8 +11844,7 @@ public class CaseSearchResult /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="lastFetchDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset LastFetchDate { get; set; } /// @@ -12219,8 +11854,7 @@ public class CaseSearchResult /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="lastFetchDateWithUpdates")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset LastFetchDateWithUpdates { get; set; } /// @@ -12238,8 +11872,7 @@ public class CaseSearchResult [System.ComponentModel.DefaultValue("CaseSearchResult")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(16)] - [System.ComponentModel.DataAnnotations.MaxLength(16)] + [System.ComponentModel.DataAnnotations.Length(16, 16)] public string Object { get; set; } = "CaseSearchResult"; /// @@ -12249,8 +11882,7 @@ public class CaseSearchResult /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="participantsLastFetchDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.Nullable ParticipantsLastFetchDate { get; set; } } @@ -12265,8 +11897,7 @@ public class MatchedObject /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="highlightSnippet")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10000)] + [System.ComponentModel.DataAnnotations.Length(1, 10000)] public string HighlightSnippet { get; set; } /// @@ -12276,8 +11907,7 @@ public class MatchedObject /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="matchedObjectAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(1, 2048)] public string MatchedObjectAPI { get; set; } /// @@ -12287,8 +11917,7 @@ public class MatchedObject /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="matchedObjectAttribute")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string MatchedObjectAttribute { get; set; } /// @@ -12298,8 +11927,7 @@ public class MatchedObject /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="matchedObjectId")] - [System.ComponentModel.DataAnnotations.MinLength(17)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(17, 18)] public string MatchedObjectId { get; set; } /// @@ -12309,8 +11937,7 @@ public class MatchedObject /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="matchedObjectName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string MatchedObjectName { get; set; } /// @@ -12321,8 +11948,7 @@ public class MatchedObject [System.ComponentModel.DefaultValue("MatchedObject")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(13)] - [System.ComponentModel.DataAnnotations.MaxLength(13)] + [System.ComponentModel.DataAnnotations.Length(13, 13)] public string Object { get; set; } = "MatchedObject"; } @@ -12337,8 +11963,7 @@ public class CaseStatusGroup /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseStatusGroupId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string CaseStatusGroupId { get; set; } /// @@ -12349,8 +11974,7 @@ public class CaseStatusGroup /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="createdDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset CreatedDate { get; set; } /// @@ -12360,8 +11984,7 @@ public class CaseStatusGroup /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -12372,8 +11995,7 @@ public class CaseStatusGroup [System.ComponentModel.DefaultValue("CaseStatusGroup")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(15)] - [System.ComponentModel.DataAnnotations.MaxLength(15)] + [System.ComponentModel.DataAnnotations.Length(15, 15)] public string Object { get; set; } = "CaseStatusGroup"; } @@ -12398,8 +12020,7 @@ public class CaseStatusGroupResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="nextPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2148)] + [System.ComponentModel.DataAnnotations.Length(1, 2148)] public string NextPageAPI { get; set; } /// @@ -12410,8 +12031,7 @@ public class CaseStatusGroupResponse [System.ComponentModel.DefaultValue("CaseStatusGroupResponse")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(23)] - [System.ComponentModel.DataAnnotations.MaxLength(23)] + [System.ComponentModel.DataAnnotations.Length(23, 23)] public string Object { get; set; } = "CaseStatusGroupResponse"; /// @@ -12422,8 +12042,7 @@ public class CaseStatusGroupResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="pageNumber")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int PageNumber { get; set; } /// @@ -12434,8 +12053,7 @@ public class CaseStatusGroupResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="previousPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2147)] + [System.ComponentModel.DataAnnotations.Length(1, 2147)] public string PreviousPageAPI { get; set; } /// @@ -12446,8 +12064,7 @@ public class CaseStatusGroupResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalCount")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalCount { get; set; } /// @@ -12458,8 +12075,7 @@ public class CaseStatusGroupResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalPages")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalPages { get; set; } } @@ -12484,8 +12100,7 @@ public class CaseStatusResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="nextPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(2143)] + [System.ComponentModel.DataAnnotations.Length(18, 2143)] public string NextPageAPI { get; set; } /// @@ -12496,8 +12111,7 @@ public class CaseStatusResponse [System.ComponentModel.DefaultValue("CaseStatusResponse")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string Object { get; set; } = "CaseStatusResponse"; /// @@ -12508,8 +12122,7 @@ public class CaseStatusResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="pageNumber")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int PageNumber { get; set; } /// @@ -12520,8 +12133,7 @@ public class CaseStatusResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="previousPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(2142)] + [System.ComponentModel.DataAnnotations.Length(18, 2142)] public string PreviousPageAPI { get; set; } /// @@ -12532,8 +12144,7 @@ public class CaseStatusResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalCount")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalCount { get; set; } /// @@ -12544,8 +12155,7 @@ public class CaseStatusResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalPages")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalPages { get; set; } } @@ -12567,8 +12177,7 @@ public class CaseTrack /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string CaseAPI { get; set; } /// @@ -12579,8 +12188,7 @@ public class CaseTrack /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string CaseId { get; set; } /// @@ -12591,8 +12199,7 @@ public class CaseTrack /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="lastFetchDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.Nullable LastFetchDate { get; set; } /// @@ -12603,8 +12210,7 @@ public class CaseTrack /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="lastFetchDateWithUpdates")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.Nullable LastFetchDateWithUpdates { get; set; } /// @@ -12623,8 +12229,7 @@ public class CaseTrack [System.ComponentModel.DefaultValue("CaseTrack")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(9)] - [System.ComponentModel.DataAnnotations.MaxLength(9)] + [System.ComponentModel.DataAnnotations.Length(9, 9)] public string Object { get; set; } = "CaseTrack"; /// @@ -12655,8 +12260,7 @@ public class LastTrackedDetails /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="lastTrackDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.Nullable LastTrackDate { get; set; } /// @@ -12676,8 +12280,7 @@ public class LastTrackedDetails [System.ComponentModel.DefaultValue("LastTrackedDetails")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string Object { get; set; } = "LastTrackedDetails"; /// @@ -12746,8 +12349,7 @@ public class CaseUpdatePacerOptionsResponse [System.ComponentModel.DefaultValue("CaseUpdatePacerOptionsResponse")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(30)] - [System.ComponentModel.DataAnnotations.MaxLength(30)] + [System.ComponentModel.DataAnnotations.Length(30, 30)] public string Object { get; set; } = "CaseUpdatePacerOptionsResponse"; /// @@ -12758,8 +12360,7 @@ public class CaseUpdatePacerOptionsResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="pacerClientCode")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(0, 32)] public string PacerClientCode { get; set; } /// @@ -12770,8 +12371,7 @@ public class CaseUpdatePacerOptionsResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="pacerUserId")] - [System.ComponentModel.DataAnnotations.MinLength(6)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(6, 40)] public string PacerUserId { get; set; } /// @@ -12789,8 +12389,7 @@ public class CaseUpdatePacerOptionsResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="refreshType")] - [System.ComponentModel.DataAnnotations.MinLength(21)] - [System.ComponentModel.DataAnnotations.MaxLength(21)] + [System.ComponentModel.DataAnnotations.Length(21, 21)] public System.Nullable RefreshType { get; set; } } @@ -12818,8 +12417,7 @@ public class CaseUpdatePacerOptionsResponseAdditionalPageArray /// Max length: 15 /// [System.Runtime.Serialization.DataMember(Name="page")] - [System.ComponentModel.DataAnnotations.MinLength(11)] - [System.ComponentModel.DataAnnotations.MaxLength(15)] + [System.ComponentModel.DataAnnotations.Length(11, 15)] public System.Nullable Page { get; set; } } @@ -12872,8 +12470,7 @@ public class Schedule [System.ComponentModel.DefaultValue("Schedule")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(8)] - [System.ComponentModel.DataAnnotations.MaxLength(8)] + [System.ComponentModel.DataAnnotations.Length(8, 8)] public string Object { get; set; } = "Schedule"; /// @@ -12883,8 +12480,7 @@ public class Schedule /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="type")] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(7)] + [System.ComponentModel.DataAnnotations.Length(5, 7)] public ScheduleType Type { get; set; } } @@ -12914,8 +12510,7 @@ public class CaseTrackListResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseTrackPreviewArray")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public CaseTrackPreview[] CaseTrackPreviewArray { get; set; } /// @@ -12926,8 +12521,7 @@ public class CaseTrackListResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="nextPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string NextPageAPI { get; set; } /// @@ -12939,8 +12533,7 @@ public class CaseTrackListResponse [System.ComponentModel.DefaultValue("CaseTrackListResponse")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(21)] - [System.ComponentModel.DataAnnotations.MaxLength(21)] + [System.ComponentModel.DataAnnotations.Length(21, 21)] public string Object { get; set; } = "CaseTrackListResponse"; /// @@ -12959,8 +12552,7 @@ public class CaseTrackListResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="previousPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string PreviousPageAPI { get; set; } /// @@ -12991,8 +12583,7 @@ public class CaseTrackPreview /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string CaseAPI { get; set; } /// @@ -13003,8 +12594,7 @@ public class CaseTrackPreview /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string CaseId { get; set; } /// @@ -13015,8 +12605,7 @@ public class CaseTrackPreview /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="lastFetchDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.Nullable LastFetchDate { get; set; } /// @@ -13027,8 +12616,7 @@ public class CaseTrackPreview /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="lastFetchDateWithUpdates")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.Nullable LastFetchDateWithUpdates { get; set; } /// @@ -13047,8 +12635,7 @@ public class CaseTrackPreview [System.ComponentModel.DefaultValue("CaseTrackPreview")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(16)] - [System.ComponentModel.DataAnnotations.MaxLength(16)] + [System.ComponentModel.DataAnnotations.Length(16, 16)] public string Object { get; set; } = "CaseTrackPreview"; /// @@ -13098,8 +12685,7 @@ public class CaseUpdateRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string CaseId { get; set; } /// @@ -13158,8 +12744,7 @@ public class CaseUpdatePacerOptions /// Max length: 32 /// [System.Runtime.Serialization.DataMember(Name="pacerClientCode")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(0, 32)] public string PacerClientCode { get; set; } /// @@ -13170,8 +12755,7 @@ public class CaseUpdatePacerOptions /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="pacerUserId")] - [System.ComponentModel.DataAnnotations.MinLength(6)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(6, 40)] public string PacerUserId { get; set; } /// @@ -13188,8 +12772,7 @@ public class CaseUpdatePacerOptions /// [System.ComponentModel.DefaultValue(CaseUpdatePacerOptionsResponseRefreshType.fetchNewDocketEntries)] [System.Runtime.Serialization.DataMember(Name="refreshType")] - [System.ComponentModel.DataAnnotations.MinLength(21)] - [System.ComponentModel.DataAnnotations.MaxLength(21)] + [System.ComponentModel.DataAnnotations.Length(21, 21)] public CaseUpdatePacerOptionsResponseRefreshType RefreshType { get; set; } = CaseUpdatePacerOptionsResponseRefreshType.fetchNewDocketEntries; } @@ -13217,8 +12800,7 @@ public class CaseUpdatePacerOptionsAdditionalPageArray /// Max length: 15 /// [System.Runtime.Serialization.DataMember(Name="page")] - [System.ComponentModel.DataAnnotations.MinLength(11)] - [System.ComponentModel.DataAnnotations.MaxLength(15)] + [System.ComponentModel.DataAnnotations.Length(11, 15)] public CaseUpdatePacerOptionsResponseAdditionalPageArrayPage Page { get; set; } } @@ -13244,8 +12826,7 @@ public class CaseTrackSchedule /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="type")] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(7)] + [System.ComponentModel.DataAnnotations.Length(5, 7)] public ScheduleType Type { get; set; } } @@ -13270,8 +12851,7 @@ public class CaseTypeGroupResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="nextPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2144)] + [System.ComponentModel.DataAnnotations.Length(1, 2144)] public string NextPageAPI { get; set; } /// @@ -13282,8 +12862,7 @@ public class CaseTypeGroupResponse [System.ComponentModel.DefaultValue("CaseTypeGroupResponse")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(21)] - [System.ComponentModel.DataAnnotations.MaxLength(21)] + [System.ComponentModel.DataAnnotations.Length(21, 21)] public string Object { get; set; } = "CaseTypeGroupResponse"; /// @@ -13294,8 +12873,7 @@ public class CaseTypeGroupResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="pageNumber")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int PageNumber { get; set; } /// @@ -13306,8 +12884,7 @@ public class CaseTypeGroupResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="previousPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2143)] + [System.ComponentModel.DataAnnotations.Length(1, 2143)] public string PreviousPageAPI { get; set; } /// @@ -13318,8 +12895,7 @@ public class CaseTypeGroupResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalCount")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalCount { get; set; } /// @@ -13330,8 +12906,7 @@ public class CaseTypeGroupResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalPages")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalPages { get; set; } } @@ -13356,8 +12931,7 @@ public class CaseTypeResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="nextPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2139)] + [System.ComponentModel.DataAnnotations.Length(1, 2139)] public string NextPageAPI { get; set; } /// @@ -13368,8 +12942,7 @@ public class CaseTypeResponse [System.ComponentModel.DefaultValue("CaseTypeResponse")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(16)] - [System.ComponentModel.DataAnnotations.MaxLength(16)] + [System.ComponentModel.DataAnnotations.Length(16, 16)] public string Object { get; set; } = "CaseTypeResponse"; /// @@ -13380,8 +12953,7 @@ public class CaseTypeResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="pageNumber")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int PageNumber { get; set; } /// @@ -13392,8 +12964,7 @@ public class CaseTypeResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="previousPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2138)] + [System.ComponentModel.DataAnnotations.Length(1, 2138)] public string PreviousPageAPI { get; set; } /// @@ -13404,8 +12975,7 @@ public class CaseTypeResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalCount")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalCount { get; set; } /// @@ -13416,8 +12986,7 @@ public class CaseTypeResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalPages")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalPages { get; set; } } @@ -13439,8 +13008,7 @@ public class CaseUpdate /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string CaseAPI { get; set; } /// @@ -13451,8 +13019,7 @@ public class CaseUpdate /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string CaseId { get; set; } /// @@ -13472,8 +13039,7 @@ public class CaseUpdate [System.ComponentModel.DefaultValue("CaseUpdate")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(10)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(10, 10)] public string Object { get; set; } = "CaseUpdate"; /// @@ -13492,8 +13058,7 @@ public class CaseUpdate /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="requestedDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset RequestedDate { get; set; } /// @@ -13504,8 +13069,7 @@ public class CaseUpdate /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="status")] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(11)] + [System.ComponentModel.DataAnnotations.Length(7, 11)] public CaseDocumentOrderCallbackStatus Status { get; set; } } @@ -13521,8 +13085,7 @@ public class CaseUpdateListResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseUpdatePreviewArray")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public CaseUpdatePreview[] CaseUpdatePreviewArray { get; set; } /// @@ -13533,8 +13096,7 @@ public class CaseUpdateListResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="nextPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string NextPageAPI { get; set; } /// @@ -13546,8 +13108,7 @@ public class CaseUpdateListResponse [System.ComponentModel.DefaultValue("CaseUpdateListResponse")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(22)] - [System.ComponentModel.DataAnnotations.MaxLength(22)] + [System.ComponentModel.DataAnnotations.Length(22, 22)] public string Object { get; set; } = "CaseUpdateListResponse"; /// @@ -13566,8 +13127,7 @@ public class CaseUpdateListResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="previousPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string PreviousPageAPI { get; set; } /// @@ -13598,8 +13158,7 @@ public class CaseUpdatePreview /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string CaseAPI { get; set; } /// @@ -13610,8 +13169,7 @@ public class CaseUpdatePreview /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string CaseId { get; set; } /// @@ -13631,8 +13189,7 @@ public class CaseUpdatePreview [System.ComponentModel.DefaultValue("CaseUpdatePreview")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(17)] - [System.ComponentModel.DataAnnotations.MaxLength(17)] + [System.ComponentModel.DataAnnotations.Length(17, 17)] public string Object { get; set; } = "CaseUpdatePreview"; /// @@ -13651,8 +13208,7 @@ public class CaseUpdatePreview /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="requestedDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset RequestedDate { get; set; } /// @@ -13663,8 +13219,7 @@ public class CaseUpdatePreview /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="status")] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(11)] + [System.ComponentModel.DataAnnotations.Length(7, 11)] public CaseDocumentOrderCallbackStatus Status { get; set; } } @@ -13689,8 +13244,7 @@ public class CauseOfActionAdditionalDataResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="nextPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2160)] + [System.ComponentModel.DataAnnotations.Length(1, 2160)] public string NextPageAPI { get; set; } /// @@ -13701,8 +13255,7 @@ public class CauseOfActionAdditionalDataResponse [System.ComponentModel.DefaultValue("CauseOfActionAdditionalDataResponse")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(35)] - [System.ComponentModel.DataAnnotations.MaxLength(35)] + [System.ComponentModel.DataAnnotations.Length(35, 35)] public string Object { get; set; } = "CauseOfActionAdditionalDataResponse"; /// @@ -13713,8 +13266,7 @@ public class CauseOfActionAdditionalDataResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="pageNumber")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int PageNumber { get; set; } /// @@ -13725,8 +13277,7 @@ public class CauseOfActionAdditionalDataResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="previousPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2159)] + [System.ComponentModel.DataAnnotations.Length(1, 2159)] public string PreviousPageAPI { get; set; } /// @@ -13737,8 +13288,7 @@ public class CauseOfActionAdditionalDataResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalCount")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalCount { get; set; } /// @@ -13749,8 +13299,7 @@ public class CauseOfActionAdditionalDataResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalPages")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalPages { get; set; } } @@ -13765,8 +13314,7 @@ public class CauseOfActionGroup /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="causeOfActionGroupId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string CauseOfActionGroupId { get; set; } /// @@ -13777,8 +13325,7 @@ public class CauseOfActionGroup /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="createdDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset CreatedDate { get; set; } /// @@ -13788,8 +13335,7 @@ public class CauseOfActionGroup /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -13800,8 +13346,7 @@ public class CauseOfActionGroup [System.ComponentModel.DefaultValue("CauseOfActionGroup")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string Object { get; set; } = "CauseOfActionGroup"; } @@ -13826,8 +13371,7 @@ public class CauseOfActionGroupResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="nextPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2151)] + [System.ComponentModel.DataAnnotations.Length(1, 2151)] public string NextPageAPI { get; set; } /// @@ -13838,8 +13382,7 @@ public class CauseOfActionGroupResponse [System.ComponentModel.DefaultValue("CauseOfActionGroupResponse")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(26)] - [System.ComponentModel.DataAnnotations.MaxLength(26)] + [System.ComponentModel.DataAnnotations.Length(26, 26)] public string Object { get; set; } = "CauseOfActionGroupResponse"; /// @@ -13850,8 +13393,7 @@ public class CauseOfActionGroupResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="pageNumber")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int PageNumber { get; set; } /// @@ -13862,8 +13404,7 @@ public class CauseOfActionGroupResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="previousPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2150)] + [System.ComponentModel.DataAnnotations.Length(1, 2150)] public string PreviousPageAPI { get; set; } /// @@ -13874,8 +13415,7 @@ public class CauseOfActionGroupResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalCount")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalCount { get; set; } /// @@ -13886,8 +13426,7 @@ public class CauseOfActionGroupResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalPages")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalPages { get; set; } } @@ -13912,8 +13451,7 @@ public class CauseOfActionResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="nextPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2146)] + [System.ComponentModel.DataAnnotations.Length(1, 2146)] public string NextPageAPI { get; set; } /// @@ -13924,8 +13462,7 @@ public class CauseOfActionResponse [System.ComponentModel.DefaultValue("CauseOfActionResponse")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(21)] - [System.ComponentModel.DataAnnotations.MaxLength(21)] + [System.ComponentModel.DataAnnotations.Length(21, 21)] public string Object { get; set; } = "CauseOfActionResponse"; /// @@ -13936,8 +13473,7 @@ public class CauseOfActionResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="pageNumber")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int PageNumber { get; set; } /// @@ -13948,8 +13484,7 @@ public class CauseOfActionResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="previousPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2145)] + [System.ComponentModel.DataAnnotations.Length(1, 2145)] public string PreviousPageAPI { get; set; } /// @@ -13960,8 +13495,7 @@ public class CauseOfActionResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalCount")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalCount { get; set; } /// @@ -13972,8 +13506,7 @@ public class CauseOfActionResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalPages")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalPages { get; set; } } @@ -13998,8 +13531,7 @@ public class ChargeAdditionalDataResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="nextPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2153)] + [System.ComponentModel.DataAnnotations.Length(1, 2153)] public string NextPageAPI { get; set; } /// @@ -14010,8 +13542,7 @@ public class ChargeAdditionalDataResponse [System.ComponentModel.DefaultValue("ChargeAdditionalDataResponse")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(28)] - [System.ComponentModel.DataAnnotations.MaxLength(28)] + [System.ComponentModel.DataAnnotations.Length(28, 28)] public string Object { get; set; } = "ChargeAdditionalDataResponse"; /// @@ -14022,8 +13553,7 @@ public class ChargeAdditionalDataResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="pageNumber")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int PageNumber { get; set; } /// @@ -14034,8 +13564,7 @@ public class ChargeAdditionalDataResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="previousPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2152)] + [System.ComponentModel.DataAnnotations.Length(1, 2152)] public string PreviousPageAPI { get; set; } /// @@ -14046,8 +13575,7 @@ public class ChargeAdditionalDataResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalCount")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalCount { get; set; } /// @@ -14058,8 +13586,7 @@ public class ChargeAdditionalDataResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalPages")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalPages { get; set; } } @@ -14084,8 +13611,7 @@ public class ChargeDegreeResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="nextPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2160)] + [System.ComponentModel.DataAnnotations.Length(1, 2160)] public string NextPageAPI { get; set; } /// @@ -14096,8 +13622,7 @@ public class ChargeDegreeResponse [System.ComponentModel.DefaultValue("ChargeDegreeResponse")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(20)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(20, 20)] public string Object { get; set; } = "ChargeDegreeResponse"; /// @@ -14108,8 +13633,7 @@ public class ChargeDegreeResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="pageNumber")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int PageNumber { get; set; } /// @@ -14120,8 +13644,7 @@ public class ChargeDegreeResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="previousPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2159)] + [System.ComponentModel.DataAnnotations.Length(1, 2159)] public string PreviousPageAPI { get; set; } /// @@ -14132,8 +13655,7 @@ public class ChargeDegreeResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalCount")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalCount { get; set; } /// @@ -14144,8 +13666,7 @@ public class ChargeDegreeResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalPages")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalPages { get; set; } } @@ -14160,8 +13681,7 @@ public class ChargeGroup /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="chargeGroupId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string ChargeGroupId { get; set; } /// @@ -14172,8 +13692,7 @@ public class ChargeGroup /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="createdDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset CreatedDate { get; set; } /// @@ -14183,8 +13702,7 @@ public class ChargeGroup /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -14195,8 +13713,7 @@ public class ChargeGroup [System.ComponentModel.DefaultValue("ChargeGroup")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(11)] - [System.ComponentModel.DataAnnotations.MaxLength(11)] + [System.ComponentModel.DataAnnotations.Length(11, 11)] public string Object { get; set; } = "ChargeGroup"; } @@ -14221,8 +13738,7 @@ public class ChargeGroupResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="nextPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2142)] + [System.ComponentModel.DataAnnotations.Length(1, 2142)] public string NextPageAPI { get; set; } /// @@ -14233,8 +13749,7 @@ public class ChargeGroupResponse [System.ComponentModel.DefaultValue("ChargeGroupResponse")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(19)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(19, 19)] public string Object { get; set; } = "ChargeGroupResponse"; /// @@ -14245,8 +13760,7 @@ public class ChargeGroupResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="pageNumber")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int PageNumber { get; set; } /// @@ -14257,8 +13771,7 @@ public class ChargeGroupResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="previousPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2141)] + [System.ComponentModel.DataAnnotations.Length(1, 2141)] public string PreviousPageAPI { get; set; } /// @@ -14269,8 +13782,7 @@ public class ChargeGroupResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalCount")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalCount { get; set; } /// @@ -14281,8 +13793,7 @@ public class ChargeGroupResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalPages")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalPages { get; set; } } @@ -14307,8 +13818,7 @@ public class ChargeResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="nextPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2137)] + [System.ComponentModel.DataAnnotations.Length(1, 2137)] public string NextPageAPI { get; set; } /// @@ -14319,8 +13829,7 @@ public class ChargeResponse [System.ComponentModel.DefaultValue("ChargeResponse")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(14)] - [System.ComponentModel.DataAnnotations.MaxLength(14)] + [System.ComponentModel.DataAnnotations.Length(14, 14)] public string Object { get; set; } = "ChargeResponse"; /// @@ -14331,8 +13840,7 @@ public class ChargeResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="pageNumber")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int PageNumber { get; set; } /// @@ -14343,8 +13851,7 @@ public class ChargeResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="previousPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2136)] + [System.ComponentModel.DataAnnotations.Length(1, 2136)] public string PreviousPageAPI { get; set; } /// @@ -14355,8 +13862,7 @@ public class ChargeResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalCount")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalCount { get; set; } /// @@ -14367,8 +13873,7 @@ public class ChargeResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalPages")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalPages { get; set; } } @@ -14393,8 +13898,7 @@ public class ChargeSeverityResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="nextPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2160)] + [System.ComponentModel.DataAnnotations.Length(1, 2160)] public string NextPageAPI { get; set; } /// @@ -14405,8 +13909,7 @@ public class ChargeSeverityResponse [System.ComponentModel.DefaultValue("ChargeSeverityResponse")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(22)] - [System.ComponentModel.DataAnnotations.MaxLength(22)] + [System.ComponentModel.DataAnnotations.Length(22, 22)] public string Object { get; set; } = "ChargeSeverityResponse"; /// @@ -14417,8 +13920,7 @@ public class ChargeSeverityResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="pageNumber")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int PageNumber { get; set; } /// @@ -14429,8 +13931,7 @@ public class ChargeSeverityResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="previousPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2159)] + [System.ComponentModel.DataAnnotations.Length(1, 2159)] public string PreviousPageAPI { get; set; } /// @@ -14441,8 +13942,7 @@ public class ChargeSeverityResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalCount")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalCount { get; set; } /// @@ -14453,8 +13953,7 @@ public class ChargeSeverityResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalPages")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalPages { get; set; } } @@ -14484,8 +13983,7 @@ public class CourtCoverage /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="lastUpdateCountDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public string LastUpdateCountDate { get; set; } /// @@ -14497,8 +13995,7 @@ public class CourtCoverage [System.ComponentModel.DefaultValue("CourtCoverage")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(13)] - [System.ComponentModel.DataAnnotations.MaxLength(13)] + [System.ComponentModel.DataAnnotations.Length(13, 13)] public string Object { get; set; } = "CourtCoverage"; /// @@ -14587,8 +14084,7 @@ public class CourtLocationResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="nextPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2144)] + [System.ComponentModel.DataAnnotations.Length(1, 2144)] public string NextPageAPI { get; set; } /// @@ -14599,8 +14095,7 @@ public class CourtLocationResponse [System.ComponentModel.DefaultValue("CourtLocationResponse")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(21)] - [System.ComponentModel.DataAnnotations.MaxLength(21)] + [System.ComponentModel.DataAnnotations.Length(21, 21)] public string Object { get; set; } = "CourtLocationResponse"; /// @@ -14611,8 +14106,7 @@ public class CourtLocationResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="pageNumber")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int PageNumber { get; set; } /// @@ -14623,8 +14117,7 @@ public class CourtLocationResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="previousPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2143)] + [System.ComponentModel.DataAnnotations.Length(1, 2143)] public string PreviousPageAPI { get; set; } /// @@ -14635,8 +14128,7 @@ public class CourtLocationResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalCount")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalCount { get; set; } /// @@ -14647,8 +14139,7 @@ public class CourtLocationResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalPages")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalPages { get; set; } } @@ -14673,8 +14164,7 @@ public class CourtResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="nextPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2136)] + [System.ComponentModel.DataAnnotations.Length(1, 2136)] public string NextPageAPI { get; set; } /// @@ -14685,8 +14175,7 @@ public class CourtResponse [System.ComponentModel.DefaultValue("CourtResponse")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(13)] - [System.ComponentModel.DataAnnotations.MaxLength(13)] + [System.ComponentModel.DataAnnotations.Length(13, 13)] public string Object { get; set; } = "CourtResponse"; /// @@ -14696,8 +14185,7 @@ public class CourtResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="pageNumber")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int PageNumber { get; set; } /// @@ -14708,8 +14196,7 @@ public class CourtResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="previousPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2135)] + [System.ComponentModel.DataAnnotations.Length(1, 2135)] public string PreviousPageAPI { get; set; } /// @@ -14720,8 +14207,7 @@ public class CourtResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalCount")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalCount { get; set; } /// @@ -14732,8 +14218,7 @@ public class CourtResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalPages")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalPages { get; set; } } @@ -14794,8 +14279,7 @@ public class CourtServiceStatus /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="courtServiceStatusId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string CourtServiceStatusId { get; set; } /// @@ -14807,8 +14291,7 @@ public class CourtServiceStatus [System.ComponentModel.DefaultValue("CourtServiceStatus")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string Object { get; set; } = "CourtServiceStatus"; /// @@ -14819,8 +14302,7 @@ public class CourtServiceStatus /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="serviceStatusAsOn")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public string ServiceStatusAsOn { get; set; } } @@ -14837,8 +14319,7 @@ public class ServiceStatus [System.ComponentModel.DefaultValue("ServiceStatus")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(13)] - [System.ComponentModel.DataAnnotations.MaxLength(13)] + [System.ComponentModel.DataAnnotations.Length(13, 13)] public string Object { get; set; } = "ServiceStatus"; /// @@ -14919,8 +14400,7 @@ public class ServiceStatusDownDetails /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="eta")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public string Eta { get; set; } /// @@ -14932,8 +14412,7 @@ public class ServiceStatusDownDetails [System.ComponentModel.DefaultValue("ServiceStatusDownDetails")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(24)] - [System.ComponentModel.DataAnnotations.MaxLength(24)] + [System.ComponentModel.DataAnnotations.Length(24, 24)] public string Object { get; set; } = "ServiceStatusDownDetails"; /// @@ -14991,8 +14470,7 @@ public class CourtServiceStatusResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="nextPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2153)] + [System.ComponentModel.DataAnnotations.Length(1, 2153)] public string NextPageAPI { get; set; } /// @@ -15003,8 +14481,7 @@ public class CourtServiceStatusResponse [System.ComponentModel.DefaultValue("CourtServiceStatusResponse")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(26)] - [System.ComponentModel.DataAnnotations.MaxLength(26)] + [System.ComponentModel.DataAnnotations.Length(26, 26)] public string Object { get; set; } = "CourtServiceStatusResponse"; /// @@ -15015,8 +14492,7 @@ public class CourtServiceStatusResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="pageNumber")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int PageNumber { get; set; } /// @@ -15027,8 +14503,7 @@ public class CourtServiceStatusResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="previousPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2152)] + [System.ComponentModel.DataAnnotations.Length(1, 2152)] public string PreviousPageAPI { get; set; } /// @@ -15039,8 +14514,7 @@ public class CourtServiceStatusResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalCount")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalCount { get; set; } /// @@ -15051,8 +14525,7 @@ public class CourtServiceStatusResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalPages")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalPages { get; set; } } @@ -15077,8 +14550,7 @@ public class CourtSystemResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="nextPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2142)] + [System.ComponentModel.DataAnnotations.Length(1, 2142)] public string NextPageAPI { get; set; } /// @@ -15089,8 +14561,7 @@ public class CourtSystemResponse [System.ComponentModel.DefaultValue("CourtSystemResponse")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(19)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(19, 19)] public string Object { get; set; } = "CourtSystemResponse"; /// @@ -15101,8 +14572,7 @@ public class CourtSystemResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="pageNumber")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int PageNumber { get; set; } /// @@ -15113,8 +14583,7 @@ public class CourtSystemResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="previousPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2141)] + [System.ComponentModel.DataAnnotations.Length(1, 2141)] public string PreviousPageAPI { get; set; } /// @@ -15125,8 +14594,7 @@ public class CourtSystemResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalCount")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalCount { get; set; } /// @@ -15137,8 +14605,7 @@ public class CourtSystemResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalPages")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalPages { get; set; } } @@ -15163,8 +14630,7 @@ public class CourtTypeResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="nextPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2140)] + [System.ComponentModel.DataAnnotations.Length(1, 2140)] public string NextPageAPI { get; set; } /// @@ -15175,8 +14641,7 @@ public class CourtTypeResponse [System.ComponentModel.DefaultValue("CourtTypeResponse")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(17)] - [System.ComponentModel.DataAnnotations.MaxLength(17)] + [System.ComponentModel.DataAnnotations.Length(17, 17)] public string Object { get; set; } = "CourtTypeResponse"; /// @@ -15187,8 +14652,7 @@ public class CourtTypeResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="pageNumber")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int PageNumber { get; set; } /// @@ -15199,8 +14663,7 @@ public class CourtTypeResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="previousPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2139)] + [System.ComponentModel.DataAnnotations.Length(1, 2139)] public string PreviousPageAPI { get; set; } /// @@ -15211,8 +14674,7 @@ public class CourtTypeResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalCount")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalCount { get; set; } /// @@ -15223,8 +14685,7 @@ public class CourtTypeResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalPages")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalPages { get; set; } } @@ -15273,8 +14734,7 @@ public class DailyUsageResponse [System.ComponentModel.DefaultValue("DailyUsageResponse")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string Object { get; set; } = "DailyUsageResponse"; /// @@ -15285,8 +14745,7 @@ public class DailyUsageResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="usageEndTime")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset UsageEndTime { get; set; } /// @@ -15297,8 +14756,7 @@ public class DailyUsageResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="usageStartTime")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset UsageStartTime { get; set; } } @@ -15321,8 +14779,7 @@ public class DailyUsageResponseApiCallsBillable /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="lastUpdated")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.Nullable LastUpdated { get; set; } } @@ -15345,8 +14802,7 @@ public class DailyUsageResponseApiCallsCredited /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="lastUpdated")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.Nullable LastUpdated { get; set; } } @@ -15369,8 +14825,7 @@ public class DailyUsageResponseApiCallsMade /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="lastUpdated")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.Nullable LastUpdated { get; set; } } @@ -15386,8 +14841,7 @@ public class DocumentDownload /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseDocumentDownloadAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string CaseDocumentDownloadAPI { get; set; } /// @@ -15398,8 +14852,7 @@ public class DocumentDownload /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="caseDocumentId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string CaseDocumentId { get; set; } /// @@ -15410,8 +14863,7 @@ public class DocumentDownload /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="expiryDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public string ExpiryDate { get; set; } /// @@ -15422,8 +14874,7 @@ public class DocumentDownload /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="fileUrl")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string FileUrl { get; set; } /// @@ -15435,8 +14886,7 @@ public class DocumentDownload [System.ComponentModel.DefaultValue("DocumentDownload")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(16)] - [System.ComponentModel.DataAnnotations.MaxLength(16)] + [System.ComponentModel.DataAnnotations.Length(16, 16)] public string Object { get; set; } = "DocumentDownload"; } @@ -15452,8 +14902,7 @@ public class InvalidateAccessTokenRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientId")] - [System.ComponentModel.DataAnnotations.MinLength(32)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(32, 32)] public string ClientId { get; set; } /// @@ -15464,8 +14913,7 @@ public class InvalidateAccessTokenRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="clientSecret")] - [System.ComponentModel.DataAnnotations.MinLength(64)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(64, 64)] public string ClientSecret { get; set; } /// @@ -15476,8 +14924,7 @@ public class InvalidateAccessTokenRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="tokenId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string TokenId { get; set; } } @@ -15554,8 +15001,7 @@ public class JudgeTypeResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="nextPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2142)] + [System.ComponentModel.DataAnnotations.Length(1, 2142)] public string NextPageAPI { get; set; } /// @@ -15566,8 +15012,7 @@ public class JudgeTypeResponse [System.ComponentModel.DefaultValue("JudgeTypeResponse")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(17)] - [System.ComponentModel.DataAnnotations.MaxLength(17)] + [System.ComponentModel.DataAnnotations.Length(17, 17)] public string Object { get; set; } = "JudgeTypeResponse"; /// @@ -15578,8 +15023,7 @@ public class JudgeTypeResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="pageNumber")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int PageNumber { get; set; } /// @@ -15590,8 +15034,7 @@ public class JudgeTypeResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="previousPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2141)] + [System.ComponentModel.DataAnnotations.Length(1, 2141)] public string PreviousPageAPI { get; set; } /// @@ -15602,8 +15045,7 @@ public class JudgeTypeResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalCount")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalCount { get; set; } /// @@ -15614,8 +15056,7 @@ public class JudgeTypeResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalPages")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalPages { get; set; } } @@ -15640,8 +15081,7 @@ public class JurisdictionGeoResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="nextPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2147)] + [System.ComponentModel.DataAnnotations.Length(1, 2147)] public string NextPageAPI { get; set; } /// @@ -15652,8 +15092,7 @@ public class JurisdictionGeoResponse [System.ComponentModel.DefaultValue("JurisdictionGeoResponse")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(23)] - [System.ComponentModel.DataAnnotations.MaxLength(23)] + [System.ComponentModel.DataAnnotations.Length(23, 23)] public string Object { get; set; } = "JurisdictionGeoResponse"; /// @@ -15664,8 +15103,7 @@ public class JurisdictionGeoResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="pageNumber")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int PageNumber { get; set; } /// @@ -15676,8 +15114,7 @@ public class JurisdictionGeoResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="previousPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2146)] + [System.ComponentModel.DataAnnotations.Length(1, 2146)] public string PreviousPageAPI { get; set; } /// @@ -15688,8 +15125,7 @@ public class JurisdictionGeoResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalCount")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalCount { get; set; } /// @@ -15700,8 +15136,7 @@ public class JurisdictionGeoResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalPages")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalPages { get; set; } } @@ -15872,8 +15307,7 @@ public class NormAttorney /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="normAttorneyId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string NormAttorneyId { get; set; } /// @@ -15912,8 +15346,7 @@ public class SimilarNormAttorney /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(500)] + [System.ComponentModel.DataAnnotations.Length(1, 500)] public string Name { get; set; } /// @@ -15932,8 +15365,7 @@ public class SimilarNormAttorney /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="normAttorneyId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string NormAttorneyId { get; set; } /// @@ -15951,8 +15383,7 @@ public class SimilarNormAttorney [System.ComponentModel.DefaultValue("SimilarNormAttorney")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(19)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(19, 19)] public string Object { get; set; } = "SimilarNormAttorney"; } @@ -15968,8 +15399,7 @@ public class NormAttorneySearchResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="nextPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2120)] + [System.ComponentModel.DataAnnotations.Length(1, 2120)] public string NextPageAPI { get; set; } /// @@ -15980,8 +15410,7 @@ public class NormAttorneySearchResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="normAttorneySearchId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string NormAttorneySearchId { get; set; } /// @@ -16001,8 +15430,7 @@ public class NormAttorneySearchResponse [System.ComponentModel.DefaultValue("NormAttorneySearchResponse")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(26)] - [System.ComponentModel.DataAnnotations.MaxLength(26)] + [System.ComponentModel.DataAnnotations.Length(26, 26)] public string Object { get; set; } = "NormAttorneySearchResponse"; /// @@ -16012,8 +15440,7 @@ public class NormAttorneySearchResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="pageNumber")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(1, 4)] public int PageNumber { get; set; } /// @@ -16024,8 +15451,7 @@ public class NormAttorneySearchResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="previousPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2119)] + [System.ComponentModel.DataAnnotations.Length(1, 2119)] public string PreviousPageAPI { get; set; } /// @@ -16036,8 +15462,7 @@ public class NormAttorneySearchResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="q")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(3, 2048)] public string Q { get; set; } /// @@ -16048,8 +15473,7 @@ public class NormAttorneySearchResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalCount")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(11)] + [System.ComponentModel.DataAnnotations.Length(1, 11)] public int TotalCount { get; set; } /// @@ -16060,8 +15484,7 @@ public class NormAttorneySearchResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalPages")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(1, 4)] public int TotalPages { get; set; } } @@ -16076,8 +15499,7 @@ public class NormAttorneySearchResult /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="firstFetchDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset FirstFetchDate { get; set; } /// @@ -16087,8 +15509,7 @@ public class NormAttorneySearchResult /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="hasAssociatedPublicData")] - [System.ComponentModel.DataAnnotations.MinLength(4)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(4, 5)] public bool HasAssociatedPublicData { get; set; } /// @@ -16098,8 +15519,7 @@ public class NormAttorneySearchResult /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="lastFetchDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset LastFetchDate { get; set; } /// @@ -16116,8 +15536,7 @@ public class NormAttorneySearchResult /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -16127,8 +15546,7 @@ public class NormAttorneySearchResult /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="normAttorneyDetailsAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string NormAttorneyDetailsAPI { get; set; } /// @@ -16138,8 +15556,7 @@ public class NormAttorneySearchResult /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="normAttorneyId")] - [System.ComponentModel.DataAnnotations.MinLength(17)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(17, 18)] public string NormAttorneyId { get; set; } /// @@ -16150,8 +15567,7 @@ public class NormAttorneySearchResult [System.ComponentModel.DefaultValue("NormAttorneySearchResult")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(24)] - [System.ComponentModel.DataAnnotations.MaxLength(24)] + [System.ComponentModel.DataAnnotations.Length(24, 24)] public string Object { get; set; } = "NormAttorneySearchResult"; } @@ -16166,8 +15582,7 @@ public class NormCorporateGroup /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="normCorporateGroupId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string NormCorporateGroupId { get; set; } /// @@ -16278,8 +15693,7 @@ public class NormJudge /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="normJudgeId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string NormJudgeId { get; set; } /// @@ -16775,8 +16189,7 @@ public class NormJudgeSearchResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="nextPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2117)] + [System.ComponentModel.DataAnnotations.Length(1, 2117)] public string NextPageAPI { get; set; } /// @@ -16787,8 +16200,7 @@ public class NormJudgeSearchResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="normJudgeSearchId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string NormJudgeSearchId { get; set; } /// @@ -16808,8 +16220,7 @@ public class NormJudgeSearchResponse [System.ComponentModel.DefaultValue("NormJudgeSearchResponse")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(23)] - [System.ComponentModel.DataAnnotations.MaxLength(23)] + [System.ComponentModel.DataAnnotations.Length(23, 23)] public string Object { get; set; } = "NormJudgeSearchResponse"; /// @@ -16819,8 +16230,7 @@ public class NormJudgeSearchResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="pageNumber")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(1, 4)] public int PageNumber { get; set; } /// @@ -16831,8 +16241,7 @@ public class NormJudgeSearchResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="previousPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2116)] + [System.ComponentModel.DataAnnotations.Length(1, 2116)] public string PreviousPageAPI { get; set; } /// @@ -16843,8 +16252,7 @@ public class NormJudgeSearchResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="q")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(3, 2048)] public string Q { get; set; } /// @@ -16855,8 +16263,7 @@ public class NormJudgeSearchResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalCount")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(11)] + [System.ComponentModel.DataAnnotations.Length(1, 11)] public int TotalCount { get; set; } /// @@ -16867,8 +16274,7 @@ public class NormJudgeSearchResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalPages")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(1, 4)] public int TotalPages { get; set; } } @@ -16883,8 +16289,7 @@ public class NormJudgeSearchResult /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="firstFetchDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset FirstFetchDate { get; set; } /// @@ -16894,8 +16299,7 @@ public class NormJudgeSearchResult /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="lastFetchDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset LastFetchDate { get; set; } /// @@ -16912,8 +16316,7 @@ public class NormJudgeSearchResult /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -16923,8 +16326,7 @@ public class NormJudgeSearchResult /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="normJudgeDetailsAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string NormJudgeDetailsAPI { get; set; } /// @@ -16934,8 +16336,7 @@ public class NormJudgeSearchResult /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="normJudgeId")] - [System.ComponentModel.DataAnnotations.MinLength(17)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(17, 18)] public string NormJudgeId { get; set; } /// @@ -16946,8 +16347,7 @@ public class NormJudgeSearchResult [System.ComponentModel.DefaultValue("NormJudgeSearchResult")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(21)] - [System.ComponentModel.DataAnnotations.MaxLength(21)] + [System.ComponentModel.DataAnnotations.Length(21, 21)] public string Object { get; set; } = "NormJudgeSearchResult"; } @@ -16998,8 +16398,7 @@ public class NormLawFirm /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="normLawFirmId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string NormLawFirmId { get; set; } /// @@ -17090,8 +16489,7 @@ public class NormOrganization /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="normOrganizationId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string NormOrganizationId { get; set; } /// @@ -17390,8 +16788,7 @@ public class SOSAssociatedNormOrganization /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="normOrganizationId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string NormOrganizationId { get; set; } /// @@ -17474,8 +16871,7 @@ public class NormLawFirmSearchResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="nextPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2119)] + [System.ComponentModel.DataAnnotations.Length(1, 2119)] public string NextPageAPI { get; set; } /// @@ -17486,8 +16882,7 @@ public class NormLawFirmSearchResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="normLawFirmSearchId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string NormLawFirmSearchId { get; set; } /// @@ -17507,8 +16902,7 @@ public class NormLawFirmSearchResponse [System.ComponentModel.DefaultValue("NormLawFirmSearchResponse")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public string Object { get; set; } = "NormLawFirmSearchResponse"; /// @@ -17518,8 +16912,7 @@ public class NormLawFirmSearchResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="pageNumber")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(1, 4)] public int PageNumber { get; set; } /// @@ -17530,8 +16923,7 @@ public class NormLawFirmSearchResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="previousPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2118)] + [System.ComponentModel.DataAnnotations.Length(1, 2118)] public string PreviousPageAPI { get; set; } /// @@ -17542,8 +16934,7 @@ public class NormLawFirmSearchResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="q")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(3, 2048)] public string Q { get; set; } /// @@ -17554,8 +16945,7 @@ public class NormLawFirmSearchResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalCount")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(11)] + [System.ComponentModel.DataAnnotations.Length(1, 11)] public int TotalCount { get; set; } /// @@ -17566,8 +16956,7 @@ public class NormLawFirmSearchResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalPages")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(1, 4)] public int TotalPages { get; set; } } @@ -17582,8 +16971,7 @@ public class NormLawFirmSearchResult /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="firstFetchDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset FirstFetchDate { get; set; } /// @@ -17593,8 +16981,7 @@ public class NormLawFirmSearchResult /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="lastFetchDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset LastFetchDate { get; set; } /// @@ -17611,8 +16998,7 @@ public class NormLawFirmSearchResult /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -17622,8 +17008,7 @@ public class NormLawFirmSearchResult /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="normLawFirmDetailsAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string NormLawFirmDetailsAPI { get; set; } /// @@ -17633,8 +17018,7 @@ public class NormLawFirmSearchResult /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="normLawFirmId")] - [System.ComponentModel.DataAnnotations.MinLength(17)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(17, 18)] public string NormLawFirmId { get; set; } /// @@ -17645,8 +17029,7 @@ public class NormLawFirmSearchResult [System.ComponentModel.DefaultValue("NormLawFirmSearchResult")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(23)] - [System.ComponentModel.DataAnnotations.MaxLength(23)] + [System.ComponentModel.DataAnnotations.Length(23, 23)] public string Object { get; set; } = "NormLawFirmSearchResult"; } @@ -17706,8 +17089,7 @@ public class NormParty /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="normPartyId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string NormPartyId { get; set; } /// @@ -17885,8 +17267,7 @@ public class RelatedNormParty /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="normPartyId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string NormPartyId { get; set; } /// @@ -17935,8 +17316,7 @@ public class NormPartySearchResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="nextPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2117)] + [System.ComponentModel.DataAnnotations.Length(1, 2117)] public string NextPageAPI { get; set; } /// @@ -17947,8 +17327,7 @@ public class NormPartySearchResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="normPartySearchId")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string NormPartySearchId { get; set; } /// @@ -17968,8 +17347,7 @@ public class NormPartySearchResponse [System.ComponentModel.DefaultValue("NormPartySearchResponse")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(23)] - [System.ComponentModel.DataAnnotations.MaxLength(23)] + [System.ComponentModel.DataAnnotations.Length(23, 23)] public string Object { get; set; } = "NormPartySearchResponse"; /// @@ -17979,8 +17357,7 @@ public class NormPartySearchResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="pageNumber")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(1, 4)] public int PageNumber { get; set; } /// @@ -17991,8 +17368,7 @@ public class NormPartySearchResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="previousPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2116)] + [System.ComponentModel.DataAnnotations.Length(1, 2116)] public string PreviousPageAPI { get; set; } /// @@ -18003,8 +17379,7 @@ public class NormPartySearchResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="q")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(2048)] + [System.ComponentModel.DataAnnotations.Length(3, 2048)] public string Q { get; set; } /// @@ -18015,8 +17390,7 @@ public class NormPartySearchResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalCount")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(11)] + [System.ComponentModel.DataAnnotations.Length(1, 11)] public int TotalCount { get; set; } /// @@ -18027,8 +17401,7 @@ public class NormPartySearchResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalPages")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(1, 4)] public int TotalPages { get; set; } } @@ -18043,8 +17416,7 @@ public class NormPartySearchResult /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="firstFetchDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset FirstFetchDate { get; set; } /// @@ -18054,8 +17426,7 @@ public class NormPartySearchResult /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="lastFetchDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset LastFetchDate { get; set; } /// @@ -18072,8 +17443,7 @@ public class NormPartySearchResult /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Name { get; set; } /// @@ -18083,8 +17453,7 @@ public class NormPartySearchResult /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="normPartyDetailsAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string NormPartyDetailsAPI { get; set; } /// @@ -18094,8 +17463,7 @@ public class NormPartySearchResult /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="normPartyId")] - [System.ComponentModel.DataAnnotations.MinLength(17)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(17, 18)] public string NormPartyId { get; set; } /// @@ -18106,8 +17474,7 @@ public class NormPartySearchResult [System.ComponentModel.DefaultValue("NormPartySearchResult")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(21)] - [System.ComponentModel.DataAnnotations.MaxLength(21)] + [System.ComponentModel.DataAnnotations.Length(21, 21)] public string Object { get; set; } = "NormPartySearchResult"; /// @@ -18117,8 +17484,7 @@ public class NormPartySearchResult /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="partyClassificationType")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string PartyClassificationType { get; set; } } @@ -18135,8 +17501,7 @@ public class PACERCaseSearchContent [System.ComponentModel.DefaultValue("PACERCaseSearchContent")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(22)] - [System.ComponentModel.DataAnnotations.MaxLength(22)] + [System.ComponentModel.DataAnnotations.Length(22, 22)] public string Object { get; set; } = "PACERCaseSearchContent"; /// @@ -18581,8 +17946,7 @@ public class PACERCaseSearchResults [System.ComponentModel.DefaultValue("PACERCaseSearchResults")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(22)] - [System.ComponentModel.DataAnnotations.MaxLength(22)] + [System.ComponentModel.DataAnnotations.Length(22, 22)] public string Object { get; set; } = "PACERCaseSearchResults"; /// @@ -18621,8 +17985,7 @@ public class PACERImportCase [System.ComponentModel.DefaultValue("PACERImportCase")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(15)] - [System.ComponentModel.DataAnnotations.MaxLength(15)] + [System.ComponentModel.DataAnnotations.Length(15, 15)] public string Object { get; set; } = "PACERImportCase"; /// @@ -18654,8 +18017,7 @@ public class PACERImportCaseResults [System.ComponentModel.DefaultValue("PACERImportCaseResults")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(22)] - [System.ComponentModel.DataAnnotations.MaxLength(22)] + [System.ComponentModel.DataAnnotations.Length(22, 22)] public string Object { get; set; } = "PACERImportCaseResults"; /// @@ -18679,8 +18041,7 @@ public class PACERPartySearchContent [System.ComponentModel.DefaultValue("PACERPartySearchContent")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(23)] - [System.ComponentModel.DataAnnotations.MaxLength(23)] + [System.ComponentModel.DataAnnotations.Length(23, 23)] public string Object { get; set; } = "PACERPartySearchContent"; /// @@ -18884,8 +18245,7 @@ public class PACERPartySearchResults [System.ComponentModel.DefaultValue("PACERPartySearchResults")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(23)] - [System.ComponentModel.DataAnnotations.MaxLength(23)] + [System.ComponentModel.DataAnnotations.Length(23, 23)] public string Object { get; set; } = "PACERPartySearchResults"; /// @@ -18948,8 +18308,7 @@ public class PACERSearchPageInfo [System.ComponentModel.DefaultValue("PACERSearchPageInfo")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(19)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(19, 19)] public string Object { get; set; } = "PACERSearchPageInfo"; /// @@ -19048,8 +18407,7 @@ public class PACERSearchReceipt [System.ComponentModel.DefaultValue("PACERSearchReceipt")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(18)] - [System.ComponentModel.DataAnnotations.MaxLength(18)] + [System.ComponentModel.DataAnnotations.Length(18, 18)] public string Object { get; set; } = "PACERSearchReceipt"; /// @@ -19080,8 +18438,7 @@ public class PACERSearchReceipt /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="searchFee")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(3, 5)] public string SearchFee { get; set; } /// @@ -19092,8 +18449,7 @@ public class PACERSearchReceipt /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="transactionDate")] - [System.ComponentModel.DataAnnotations.MinLength(25)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(25, 25)] public System.DateTimeOffset TransactionDate { get; set; } } @@ -19120,8 +18476,7 @@ public class PCLCase [System.ComponentModel.DefaultValue("PCLCase")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(7)] + [System.ComponentModel.DataAnnotations.Length(7, 7)] public string Object { get; set; } = "PCLCase"; /// @@ -19193,8 +18548,7 @@ public class PCLParty [System.ComponentModel.DefaultValue("PCLParty")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(8)] - [System.ComponentModel.DataAnnotations.MaxLength(8)] + [System.ComponentModel.DataAnnotations.Length(8, 8)] public string Object { get; set; } = "PCLParty"; /// @@ -19255,8 +18609,7 @@ public class PacerCredential /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="defaultPacerClientCode")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(0, 32)] public string DefaultPacerClientCode { get; set; } /// @@ -19268,8 +18621,7 @@ public class PacerCredential [System.ComponentModel.DefaultValue("PacerCredential")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(15)] - [System.ComponentModel.DataAnnotations.MaxLength(15)] + [System.ComponentModel.DataAnnotations.Length(15, 15)] public string Object { get; set; } = "PacerCredential"; /// @@ -19280,8 +18632,7 @@ public class PacerCredential /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="pacerUserId")] - [System.ComponentModel.DataAnnotations.MinLength(6)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(6, 40)] public string PacerUserId { get; set; } } @@ -19297,8 +18648,7 @@ public class PacerCredentialListResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="nextPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string NextPageAPI { get; set; } /// @@ -19310,8 +18660,7 @@ public class PacerCredentialListResponse [System.ComponentModel.DefaultValue("PacerCredentialListResponse")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(27)] - [System.ComponentModel.DataAnnotations.MaxLength(27)] + [System.ComponentModel.DataAnnotations.Length(27, 27)] public string Object { get; set; } = "PacerCredentialListResponse"; /// @@ -19322,8 +18671,7 @@ public class PacerCredentialListResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="pacerCredentialArray")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public PacerCredential[] PacerCredentialArray { get; set; } /// @@ -19342,8 +18690,7 @@ public class PacerCredentialListResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="previousPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(1, 1024)] public string PreviousPageAPI { get; set; } /// @@ -19373,8 +18720,7 @@ public class PacerCredentialRequest /// Max length: 32 /// [System.Runtime.Serialization.DataMember(Name="defaultPacerClientCode")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(0, 32)] public string DefaultPacerClientCode { get; set; } /// @@ -19385,8 +18731,7 @@ public class PacerCredentialRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="pacerUserId")] - [System.ComponentModel.DataAnnotations.MinLength(6)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(6, 40)] public string PacerUserId { get; set; } /// @@ -19397,8 +18742,7 @@ public class PacerCredentialRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="password")] - [System.ComponentModel.DataAnnotations.MinLength(8)] - [System.ComponentModel.DataAnnotations.MaxLength(45)] + [System.ComponentModel.DataAnnotations.Length(8, 45)] public string Password { get; set; } } @@ -19414,8 +18758,7 @@ public class PartyRoleGroupResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="nextPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2147)] + [System.ComponentModel.DataAnnotations.Length(1, 2147)] public string NextPageAPI { get; set; } /// @@ -19426,8 +18769,7 @@ public class PartyRoleGroupResponse [System.ComponentModel.DefaultValue("PartyRoleGroupResponse")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(22)] - [System.ComponentModel.DataAnnotations.MaxLength(22)] + [System.ComponentModel.DataAnnotations.Length(22, 22)] public string Object { get; set; } = "PartyRoleGroupResponse"; /// @@ -19438,8 +18780,7 @@ public class PartyRoleGroupResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="pageNumber")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int PageNumber { get; set; } /// @@ -19459,8 +18800,7 @@ public class PartyRoleGroupResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="previousPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2146)] + [System.ComponentModel.DataAnnotations.Length(1, 2146)] public string PreviousPageAPI { get; set; } /// @@ -19471,8 +18811,7 @@ public class PartyRoleGroupResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalCount")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalCount { get; set; } /// @@ -19483,8 +18822,7 @@ public class PartyRoleGroupResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalPages")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalPages { get; set; } } @@ -19500,8 +18838,7 @@ public class PartyRoleResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="nextPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2142)] + [System.ComponentModel.DataAnnotations.Length(1, 2142)] public string NextPageAPI { get; set; } /// @@ -19512,8 +18849,7 @@ public class PartyRoleResponse [System.ComponentModel.DefaultValue("PartyRoleResponse")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(17)] - [System.ComponentModel.DataAnnotations.MaxLength(17)] + [System.ComponentModel.DataAnnotations.Length(17, 17)] public string Object { get; set; } = "PartyRoleResponse"; /// @@ -19524,8 +18860,7 @@ public class PartyRoleResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="pageNumber")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int PageNumber { get; set; } /// @@ -19545,8 +18880,7 @@ public class PartyRoleResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="previousPageAPI")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2141)] + [System.ComponentModel.DataAnnotations.Length(1, 2141)] public string PreviousPageAPI { get; set; } /// @@ -19557,8 +18891,7 @@ public class PartyRoleResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalCount")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalCount { get; set; } /// @@ -19569,8 +18902,7 @@ public class PartyRoleResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="totalPages")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public int TotalPages { get; set; } } @@ -19589,8 +18921,7 @@ public class Success /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="message")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Message { get; set; } /// @@ -19601,8 +18932,7 @@ public class Success [System.ComponentModel.DefaultValue("Success")] [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="object")] - [System.ComponentModel.DataAnnotations.MinLength(7)] - [System.ComponentModel.DataAnnotations.MaxLength(7)] + [System.ComponentModel.DataAnnotations.Length(7, 7)] public string Object { get; set; } = "Success"; } diff --git a/Tests/CsOpenApi3TestsResults/va_gov_benefits_1_0_0_.cs b/Tests/CsOpenApi3TestsResults/va_gov_benefits_1_0_0_.cs index 83540bc4..e8b9091d 100644 --- a/Tests/CsOpenApi3TestsResults/va_gov_benefits_1_0_0_.cs +++ b/Tests/CsOpenApi3TestsResults/va_gov_benefits_1_0_0_.cs @@ -371,8 +371,7 @@ public class DocumentUploadStatusGuidList /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="ids")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] public string[] Ids { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/va_gov_facilities_0_0_1_.cs b/Tests/CsOpenApi3TestsResults/va_gov_facilities_0_0_1_.cs index 12b8a604..6242d3db 100644 --- a/Tests/CsOpenApi3TestsResults/va_gov_facilities_0_0_1_.cs +++ b/Tests/CsOpenApi3TestsResults/va_gov_facilities_0_0_1_.cs @@ -754,8 +754,7 @@ public class OperatingStatus /// Max length: 300 /// [System.Runtime.Serialization.DataMember(Name="additional_info")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(300)] + [System.ComponentModel.DataAnnotations.Length(0, 300)] public string Additional_info { get; set; } /// @@ -1212,8 +1211,7 @@ public class Geometry /// Maximum items: 2 /// [System.Runtime.Serialization.DataMember(Name="coordinates")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] public double[] Coordinates { get; set; } /// diff --git a/Tests/CsOpenApi3TestsResults/velopayments_com_2_35_57_.cs b/Tests/CsOpenApi3TestsResults/velopayments_com_2_35_57_.cs index 7151c8cf..0f1e9765 100644 --- a/Tests/CsOpenApi3TestsResults/velopayments_com_2_35_57_.cs +++ b/Tests/CsOpenApi3TestsResults/velopayments_com_2_35_57_.cs @@ -39,8 +39,7 @@ public class AcceptedPaymentV3 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="currencyType")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Z]{3}$")] public string CurrencyType { get; set; } @@ -52,8 +51,7 @@ public class AcceptedPaymentV3 /// Max length: 40 /// [System.Runtime.Serialization.DataMember(Name="paymentMemo")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(0, 40)] public string PaymentMemo { get; set; } /// @@ -64,8 +62,7 @@ public class AcceptedPaymentV3 /// Max length: 512 /// [System.Runtime.Serialization.DataMember(Name="paymentMetadata")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(0, 512)] public string PaymentMetadata { get; set; } /// @@ -76,8 +73,7 @@ public class AcceptedPaymentV3 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="payorPaymentId")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(0, 40)] public string PayorPaymentId { get; set; } /// @@ -96,8 +92,7 @@ public class AcceptedPaymentV3 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="remoteId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string RemoteId { get; set; } /// @@ -107,8 +102,7 @@ public class AcceptedPaymentV3 /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="remoteSystemId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string RemoteSystemId { get; set; } /// @@ -250,8 +244,7 @@ public class AccessTokenValidationRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="otp")] - [System.ComponentModel.DataAnnotations.MinLength(6)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(6, 64)] public string Otp { get; set; } } @@ -376,8 +369,7 @@ public class ChallengeV3 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Description { get; set; } /// @@ -387,8 +379,7 @@ public class ChallengeV3 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="value")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(3, 20)] public string Value { get; set; } } @@ -409,8 +400,7 @@ public class ChallengeV4 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string Description { get; set; } /// @@ -421,8 +411,7 @@ public class ChallengeV4 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="value")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(3, 20)] public string Value { get; set; } } @@ -438,8 +427,7 @@ public class CompanyV3 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(3, 40)] public string Name { get; set; } /// @@ -447,8 +435,7 @@ public class CompanyV3 /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="operatingName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string OperatingName { get; set; } /// @@ -457,8 +444,7 @@ public class CompanyV3 /// Max length: 30 /// [System.Runtime.Serialization.DataMember(Name="taxId")] - [System.ComponentModel.DataAnnotations.MinLength(6)] - [System.ComponentModel.DataAnnotations.MaxLength(30)] + [System.ComponentModel.DataAnnotations.Length(6, 30)] public string TaxId { get; set; } } @@ -474,8 +460,7 @@ public class CompanyV4 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(3, 40)] public string Name { get; set; } /// @@ -483,8 +468,7 @@ public class CompanyV4 /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="operatingName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string OperatingName { get; set; } /// @@ -493,8 +477,7 @@ public class CompanyV4 /// Max length: 30 /// [System.Runtime.Serialization.DataMember(Name="taxId")] - [System.ComponentModel.DataAnnotations.MinLength(6)] - [System.ComponentModel.DataAnnotations.MaxLength(30)] + [System.ComponentModel.DataAnnotations.Length(6, 30)] public string TaxId { get; set; } } @@ -509,8 +492,7 @@ public class CreateFundingAccountRequestV2 /// Max length: 22 /// [System.Runtime.Serialization.DataMember(Name="accountName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(22)] + [System.ComponentModel.DataAnnotations.Length(1, 22)] public string AccountName { get; set; } /// @@ -519,8 +501,7 @@ public class CreateFundingAccountRequestV2 /// Max length: 17 /// [System.Runtime.Serialization.DataMember(Name="accountNumber")] - [System.ComponentModel.DataAnnotations.MinLength(4)] - [System.ComponentModel.DataAnnotations.MaxLength(17)] + [System.ComponentModel.DataAnnotations.Length(4, 17)] public string AccountNumber { get; set; } /// @@ -529,8 +510,7 @@ public class CreateFundingAccountRequestV2 /// Max length: 3 /// [System.Runtime.Serialization.DataMember(Name="currency")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] public string Currency { get; set; } /// @@ -540,8 +520,7 @@ public class CreateFundingAccountRequestV2 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(30)] + [System.ComponentModel.DataAnnotations.Length(3, 30)] public string Name { get; set; } /// @@ -557,8 +536,7 @@ public class CreateFundingAccountRequestV2 /// Max length: 9 /// [System.Runtime.Serialization.DataMember(Name="routingNumber")] - [System.ComponentModel.DataAnnotations.MinLength(6)] - [System.ComponentModel.DataAnnotations.MaxLength(9)] + [System.ComponentModel.DataAnnotations.Length(6, 9)] public string RoutingNumber { get; set; } /// @@ -610,8 +588,7 @@ public class CreateIndividualV3 /// Max length: 30 /// [System.Runtime.Serialization.DataMember(Name="nationalIdentification")] - [System.ComponentModel.DataAnnotations.MinLength(6)] - [System.ComponentModel.DataAnnotations.MaxLength(30)] + [System.ComponentModel.DataAnnotations.Length(6, 30)] public string NationalIdentification { get; set; } } @@ -627,8 +604,7 @@ public class CreateIndividualV3_name /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="firstName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string FirstName { get; set; } /// @@ -638,8 +614,7 @@ public class CreateIndividualV3_name /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="lastName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string LastName { get; set; } /// @@ -647,8 +622,7 @@ public class CreateIndividualV3_name /// Max length: 40 /// [System.Runtime.Serialization.DataMember(Name="otherNames")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string OtherNames { get; set; } /// @@ -656,8 +630,7 @@ public class CreateIndividualV3_name /// Max length: 10 /// [System.Runtime.Serialization.DataMember(Name="title")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public string Title { get; set; } } @@ -686,8 +659,7 @@ public class CreateIndividualV4 /// Max length: 30 /// [System.Runtime.Serialization.DataMember(Name="nationalIdentification")] - [System.ComponentModel.DataAnnotations.MinLength(6)] - [System.ComponentModel.DataAnnotations.MaxLength(30)] + [System.ComponentModel.DataAnnotations.Length(6, 30)] public string NationalIdentification { get; set; } } @@ -703,8 +675,7 @@ public class CreatePayeeAddressV3 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="city")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(2, 50)] public string City { get; set; } /// @@ -715,8 +686,7 @@ public class CreatePayeeAddressV3 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="country")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] public string Country { get; set; } /// @@ -724,8 +694,7 @@ public class CreatePayeeAddressV3 /// Max length: 50 /// [System.Runtime.Serialization.DataMember(Name="countyOrProvince")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(2, 50)] public string CountyOrProvince { get; set; } /// @@ -735,8 +704,7 @@ public class CreatePayeeAddressV3 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="line1")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Line1 { get; set; } /// @@ -744,8 +712,7 @@ public class CreatePayeeAddressV3 /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="line2")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string Line2 { get; set; } /// @@ -753,8 +720,7 @@ public class CreatePayeeAddressV3 /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="line3")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string Line3 { get; set; } /// @@ -762,8 +728,7 @@ public class CreatePayeeAddressV3 /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="line4")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string Line4 { get; set; } /// @@ -771,8 +736,7 @@ public class CreatePayeeAddressV3 /// Max length: 60 /// [System.Runtime.Serialization.DataMember(Name="zipOrPostcode")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(60)] + [System.ComponentModel.DataAnnotations.Length(2, 60)] public string ZipOrPostcode { get; set; } } @@ -788,8 +752,7 @@ public class CreatePayeeAddressV4 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="city")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(2, 50)] public string City { get; set; } /// @@ -801,8 +764,7 @@ public class CreatePayeeAddressV4 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="country")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Z]{2}$")] public string Country { get; set; } @@ -811,8 +773,7 @@ public class CreatePayeeAddressV4 /// Max length: 50 /// [System.Runtime.Serialization.DataMember(Name="countyOrProvince")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(2, 50)] public string CountyOrProvince { get; set; } /// @@ -822,8 +783,7 @@ public class CreatePayeeAddressV4 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="line1")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string Line1 { get; set; } /// @@ -831,8 +791,7 @@ public class CreatePayeeAddressV4 /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="line2")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string Line2 { get; set; } /// @@ -840,8 +799,7 @@ public class CreatePayeeAddressV4 /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="line3")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string Line3 { get; set; } /// @@ -849,8 +807,7 @@ public class CreatePayeeAddressV4 /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="line4")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string Line4 { get; set; } /// @@ -858,8 +815,7 @@ public class CreatePayeeAddressV4 /// Max length: 60 /// [System.Runtime.Serialization.DataMember(Name="zipOrPostcode")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(60)] + [System.ComponentModel.DataAnnotations.Length(2, 60)] public string ZipOrPostcode { get; set; } } @@ -888,8 +844,7 @@ public class CreatePayeeV3 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="email")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(3, 255)] public string Email { get; set; } [System.Runtime.Serialization.DataMember(Name="individual")] @@ -919,8 +874,7 @@ public class CreatePayeeV3 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="remoteId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string RemoteId { get; set; } /// @@ -950,8 +904,7 @@ public class CreatePaymentChannelV3 /// Max length: 17 /// [System.Runtime.Serialization.DataMember(Name="accountNumber")] - [System.ComponentModel.DataAnnotations.MinLength(6)] - [System.ComponentModel.DataAnnotations.MaxLength(17)] + [System.ComponentModel.DataAnnotations.Length(6, 17)] public string AccountNumber { get; set; } /// @@ -963,8 +916,7 @@ public class CreatePaymentChannelV3 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="countryCode")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Z]{2}$")] public string CountryCode { get; set; } @@ -977,8 +929,7 @@ public class CreatePaymentChannelV3 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="currency")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Z]{3}$")] public string Currency { get; set; } @@ -989,8 +940,7 @@ public class CreatePaymentChannelV3 /// Pattern: ^[A-Za-z0-9]+$ /// [System.Runtime.Serialization.DataMember(Name="iban")] - [System.ComponentModel.DataAnnotations.MinLength(15)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(15, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Za-z0-9]+$")] public string Iban { get; set; } @@ -1003,8 +953,7 @@ public class CreatePaymentChannelV3 /// Max length: 9 /// [System.Runtime.Serialization.DataMember(Name="routingNumber")] - [System.ComponentModel.DataAnnotations.MinLength(9)] - [System.ComponentModel.DataAnnotations.MaxLength(9)] + [System.ComponentModel.DataAnnotations.Length(9, 9)] public string RoutingNumber { get; set; } } @@ -1097,8 +1046,7 @@ public class CreatePayeeV4 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="email")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(3, 255)] public string Email { get; set; } [System.Runtime.Serialization.DataMember(Name="individual")] @@ -1122,8 +1070,7 @@ public class CreatePayeeV4 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="remoteId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string RemoteId { get; set; } /// @@ -1153,8 +1100,7 @@ public class CreatePaymentChannelV4 /// Max length: 17 /// [System.Runtime.Serialization.DataMember(Name="accountNumber")] - [System.ComponentModel.DataAnnotations.MinLength(6)] - [System.ComponentModel.DataAnnotations.MaxLength(17)] + [System.ComponentModel.DataAnnotations.Length(6, 17)] public string AccountNumber { get; set; } /// @@ -1166,8 +1112,7 @@ public class CreatePaymentChannelV4 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="countryCode")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Z]{2}$")] public string CountryCode { get; set; } @@ -1180,8 +1125,7 @@ public class CreatePaymentChannelV4 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="currency")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Z]{3}$")] public string Currency { get; set; } @@ -1192,8 +1136,7 @@ public class CreatePaymentChannelV4 /// Pattern: ^[A-Za-z0-9]+$ /// [System.Runtime.Serialization.DataMember(Name="iban")] - [System.ComponentModel.DataAnnotations.MinLength(15)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(15, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Za-z0-9]+$")] public string Iban { get; set; } @@ -1206,8 +1149,7 @@ public class CreatePaymentChannelV4 /// Max length: 9 /// [System.Runtime.Serialization.DataMember(Name="routingNumber")] - [System.ComponentModel.DataAnnotations.MinLength(9)] - [System.ComponentModel.DataAnnotations.MaxLength(9)] + [System.ComponentModel.DataAnnotations.Length(9, 9)] public string RoutingNumber { get; set; } } @@ -1236,8 +1178,7 @@ public class CreatePayeesCSVRequestV3 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="addressCity")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(2, 50)] public string AddressCity { get; set; } /// @@ -1249,8 +1190,7 @@ public class CreatePayeesCSVRequestV3 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="addressCountry")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Z]{2}$")] public string AddressCountry { get; set; } @@ -1259,8 +1199,7 @@ public class CreatePayeesCSVRequestV3 /// Max length: 50 /// [System.Runtime.Serialization.DataMember(Name="addressCountyOrProvince")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string AddressCountyOrProvince { get; set; } /// @@ -1270,8 +1209,7 @@ public class CreatePayeesCSVRequestV3 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="addressLine1")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(2, 100)] public string AddressLine1 { get; set; } /// @@ -1279,8 +1217,7 @@ public class CreatePayeesCSVRequestV3 /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="addressLine2")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string AddressLine2 { get; set; } /// @@ -1288,8 +1225,7 @@ public class CreatePayeesCSVRequestV3 /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="addressLine3")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string AddressLine3 { get; set; } /// @@ -1297,8 +1233,7 @@ public class CreatePayeesCSVRequestV3 /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="addressLine4")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string AddressLine4 { get; set; } /// @@ -1308,8 +1243,7 @@ public class CreatePayeesCSVRequestV3 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="addressZipOrPostcode")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(60)] + [System.ComponentModel.DataAnnotations.Length(1, 60)] public string AddressZipOrPostcode { get; set; } /// @@ -1317,8 +1251,7 @@ public class CreatePayeesCSVRequestV3 /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="challengeDescription")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string ChallengeDescription { get; set; } /// @@ -1326,8 +1259,7 @@ public class CreatePayeesCSVRequestV3 /// Max length: 20 /// [System.Runtime.Serialization.DataMember(Name="challengeValue")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(3, 20)] public string ChallengeValue { get; set; } /// @@ -1335,8 +1267,7 @@ public class CreatePayeesCSVRequestV3 /// Max length: 30 /// [System.Runtime.Serialization.DataMember(Name="companyEIN")] - [System.ComponentModel.DataAnnotations.MinLength(6)] - [System.ComponentModel.DataAnnotations.MaxLength(30)] + [System.ComponentModel.DataAnnotations.Length(6, 30)] public string CompanyEIN { get; set; } /// @@ -1344,8 +1275,7 @@ public class CreatePayeesCSVRequestV3 /// Max length: 40 /// [System.Runtime.Serialization.DataMember(Name="companyName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string CompanyName { get; set; } /// @@ -1353,8 +1283,7 @@ public class CreatePayeesCSVRequestV3 /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="companyOperatingName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string CompanyOperatingName { get; set; } /// @@ -1364,8 +1293,7 @@ public class CreatePayeesCSVRequestV3 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="email")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(3, 255)] public string Email { get; set; } /// @@ -1379,8 +1307,7 @@ public class CreatePayeesCSVRequestV3 /// Max length: 40 /// [System.Runtime.Serialization.DataMember(Name="individualFirstName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string IndividualFirstName { get; set; } /// @@ -1388,8 +1315,7 @@ public class CreatePayeesCSVRequestV3 /// Max length: 40 /// [System.Runtime.Serialization.DataMember(Name="individualLastName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string IndividualLastName { get; set; } /// @@ -1397,8 +1323,7 @@ public class CreatePayeesCSVRequestV3 /// Max length: 30 /// [System.Runtime.Serialization.DataMember(Name="individualNationalIdentification")] - [System.ComponentModel.DataAnnotations.MinLength(6)] - [System.ComponentModel.DataAnnotations.MaxLength(30)] + [System.ComponentModel.DataAnnotations.Length(6, 30)] public string IndividualNationalIdentification { get; set; } /// @@ -1406,8 +1331,7 @@ public class CreatePayeesCSVRequestV3 /// Max length: 40 /// [System.Runtime.Serialization.DataMember(Name="individualOtherNames")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string IndividualOtherNames { get; set; } /// @@ -1415,8 +1339,7 @@ public class CreatePayeesCSVRequestV3 /// Max length: 40 /// [System.Runtime.Serialization.DataMember(Name="individualTitle")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string IndividualTitle { get; set; } /// @@ -1436,8 +1359,7 @@ public class CreatePayeesCSVRequestV3 /// Max length: 17 /// [System.Runtime.Serialization.DataMember(Name="paymentChannelAccountNumber")] - [System.ComponentModel.DataAnnotations.MinLength(6)] - [System.ComponentModel.DataAnnotations.MaxLength(17)] + [System.ComponentModel.DataAnnotations.Length(6, 17)] public string PaymentChannelAccountNumber { get; set; } /// @@ -1447,8 +1369,7 @@ public class CreatePayeesCSVRequestV3 /// Pattern: ^[A-Z]{2}$ /// [System.Runtime.Serialization.DataMember(Name="paymentChannelCountryCode")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Z]{2}$")] public string PaymentChannelCountryCode { get; set; } @@ -1457,8 +1378,7 @@ public class CreatePayeesCSVRequestV3 /// Max length: 3 /// [System.Runtime.Serialization.DataMember(Name="paymentChannelCurrency")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] public string PaymentChannelCurrency { get; set; } /// @@ -1468,8 +1388,7 @@ public class CreatePayeesCSVRequestV3 /// Pattern: ^[A-Za-z0-9]+$ /// [System.Runtime.Serialization.DataMember(Name="paymentChannelIban")] - [System.ComponentModel.DataAnnotations.MinLength(15)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(15, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Za-z0-9]+$")] public string PaymentChannelIban { get; set; } @@ -1479,8 +1398,7 @@ public class CreatePayeesCSVRequestV3 /// Max length: 9 /// [System.Runtime.Serialization.DataMember(Name="paymentChannelRoutingNumber")] - [System.ComponentModel.DataAnnotations.MinLength(9)] - [System.ComponentModel.DataAnnotations.MaxLength(9)] + [System.ComponentModel.DataAnnotations.Length(9, 9)] public string PaymentChannelRoutingNumber { get; set; } /// @@ -1490,8 +1408,7 @@ public class CreatePayeesCSVRequestV3 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="remoteId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string RemoteId { get; set; } /// @@ -1515,8 +1432,7 @@ public class CreatePayeesCSVRequestV4 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="addressCity")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(2, 50)] public string AddressCity { get; set; } /// @@ -1528,8 +1444,7 @@ public class CreatePayeesCSVRequestV4 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="addressCountry")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Z]{2}$")] public string AddressCountry { get; set; } @@ -1538,8 +1453,7 @@ public class CreatePayeesCSVRequestV4 /// Max length: 50 /// [System.Runtime.Serialization.DataMember(Name="addressCountyOrProvince")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string AddressCountyOrProvince { get; set; } /// @@ -1549,8 +1463,7 @@ public class CreatePayeesCSVRequestV4 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="addressLine1")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(2, 100)] public string AddressLine1 { get; set; } /// @@ -1558,8 +1471,7 @@ public class CreatePayeesCSVRequestV4 /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="addressLine2")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string AddressLine2 { get; set; } /// @@ -1567,8 +1479,7 @@ public class CreatePayeesCSVRequestV4 /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="addressLine3")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string AddressLine3 { get; set; } /// @@ -1576,8 +1487,7 @@ public class CreatePayeesCSVRequestV4 /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="addressLine4")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] public string AddressLine4 { get; set; } /// @@ -1587,8 +1497,7 @@ public class CreatePayeesCSVRequestV4 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="addressZipOrPostcode")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(60)] + [System.ComponentModel.DataAnnotations.Length(1, 60)] public string AddressZipOrPostcode { get; set; } /// @@ -1596,8 +1505,7 @@ public class CreatePayeesCSVRequestV4 /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="challengeDescription")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(1, 255)] public string ChallengeDescription { get; set; } /// @@ -1605,8 +1513,7 @@ public class CreatePayeesCSVRequestV4 /// Max length: 20 /// [System.Runtime.Serialization.DataMember(Name="challengeValue")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(3, 20)] public string ChallengeValue { get; set; } /// @@ -1614,8 +1521,7 @@ public class CreatePayeesCSVRequestV4 /// Max length: 30 /// [System.Runtime.Serialization.DataMember(Name="companyEIN")] - [System.ComponentModel.DataAnnotations.MinLength(6)] - [System.ComponentModel.DataAnnotations.MaxLength(30)] + [System.ComponentModel.DataAnnotations.Length(6, 30)] public string CompanyEIN { get; set; } /// @@ -1623,8 +1529,7 @@ public class CreatePayeesCSVRequestV4 /// Max length: 40 /// [System.Runtime.Serialization.DataMember(Name="companyName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string CompanyName { get; set; } /// @@ -1632,8 +1537,7 @@ public class CreatePayeesCSVRequestV4 /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="companyOperatingName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string CompanyOperatingName { get; set; } /// @@ -1643,8 +1547,7 @@ public class CreatePayeesCSVRequestV4 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="email")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(3, 255)] public string Email { get; set; } /// @@ -1658,8 +1561,7 @@ public class CreatePayeesCSVRequestV4 /// Max length: 40 /// [System.Runtime.Serialization.DataMember(Name="individualFirstName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string IndividualFirstName { get; set; } /// @@ -1667,8 +1569,7 @@ public class CreatePayeesCSVRequestV4 /// Max length: 40 /// [System.Runtime.Serialization.DataMember(Name="individualLastName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string IndividualLastName { get; set; } /// @@ -1676,8 +1577,7 @@ public class CreatePayeesCSVRequestV4 /// Max length: 30 /// [System.Runtime.Serialization.DataMember(Name="individualNationalIdentification")] - [System.ComponentModel.DataAnnotations.MinLength(6)] - [System.ComponentModel.DataAnnotations.MaxLength(30)] + [System.ComponentModel.DataAnnotations.Length(6, 30)] public string IndividualNationalIdentification { get; set; } /// @@ -1685,8 +1585,7 @@ public class CreatePayeesCSVRequestV4 /// Max length: 40 /// [System.Runtime.Serialization.DataMember(Name="individualOtherNames")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string IndividualOtherNames { get; set; } /// @@ -1694,8 +1593,7 @@ public class CreatePayeesCSVRequestV4 /// Max length: 40 /// [System.Runtime.Serialization.DataMember(Name="individualTitle")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string IndividualTitle { get; set; } /// @@ -1715,8 +1613,7 @@ public class CreatePayeesCSVRequestV4 /// Max length: 17 /// [System.Runtime.Serialization.DataMember(Name="paymentChannelAccountNumber")] - [System.ComponentModel.DataAnnotations.MinLength(6)] - [System.ComponentModel.DataAnnotations.MaxLength(17)] + [System.ComponentModel.DataAnnotations.Length(6, 17)] public string PaymentChannelAccountNumber { get; set; } /// @@ -1726,8 +1623,7 @@ public class CreatePayeesCSVRequestV4 /// Pattern: ^[A-Z]{2}$ /// [System.Runtime.Serialization.DataMember(Name="paymentChannelCountryCode")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Z]{2}$")] public string PaymentChannelCountryCode { get; set; } @@ -1736,8 +1632,7 @@ public class CreatePayeesCSVRequestV4 /// Max length: 3 /// [System.Runtime.Serialization.DataMember(Name="paymentChannelCurrency")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] public string PaymentChannelCurrency { get; set; } /// @@ -1747,8 +1642,7 @@ public class CreatePayeesCSVRequestV4 /// Pattern: ^[A-Za-z0-9]+$ /// [System.Runtime.Serialization.DataMember(Name="paymentChannelIban")] - [System.ComponentModel.DataAnnotations.MinLength(15)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(15, 34)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Za-z0-9]+$")] public string PaymentChannelIban { get; set; } @@ -1758,8 +1652,7 @@ public class CreatePayeesCSVRequestV4 /// Max length: 9 /// [System.Runtime.Serialization.DataMember(Name="paymentChannelRoutingNumber")] - [System.ComponentModel.DataAnnotations.MinLength(9)] - [System.ComponentModel.DataAnnotations.MaxLength(9)] + [System.ComponentModel.DataAnnotations.Length(9, 9)] public string PaymentChannelRoutingNumber { get; set; } /// @@ -1769,8 +1662,7 @@ public class CreatePayeesCSVRequestV4 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="remoteId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string RemoteId { get; set; } /// @@ -1910,8 +1802,7 @@ public class CreatePayoutRequestV3 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="payments")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2000)] + [System.ComponentModel.DataAnnotations.Length(1, 2000)] public PaymentInstructionV3[] Payments { get; set; } /// @@ -1970,8 +1861,7 @@ public class PaymentInstructionV3 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="currency")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Z]{3}$")] public string Currency { get; set; } @@ -1983,8 +1873,7 @@ public class PaymentInstructionV3 /// Max length: 40 /// [System.Runtime.Serialization.DataMember(Name="paymentMemo")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(0, 40)] public string PaymentMemo { get; set; } /// @@ -1995,8 +1884,7 @@ public class PaymentInstructionV3 /// Max length: 512 /// [System.Runtime.Serialization.DataMember(Name="paymentMetadata")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(0, 512)] public string PaymentMetadata { get; set; } /// @@ -2005,8 +1893,7 @@ public class PaymentInstructionV3 /// Max length: 40 /// [System.Runtime.Serialization.DataMember(Name="payorPaymentId")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(0, 40)] public string PayorPaymentId { get; set; } /// @@ -2017,8 +1904,7 @@ public class PaymentInstructionV3 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="remoteId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string RemoteId { get; set; } /// @@ -2029,8 +1915,7 @@ public class PaymentInstructionV3 /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="remoteSystemId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string RemoteSystemId { get; set; } /// @@ -2041,8 +1926,7 @@ public class PaymentInstructionV3 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceAccountName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(1, 64)] public string SourceAccountName { get; set; } /// @@ -2086,8 +1970,7 @@ public class CreateWebhookRequest /// Pattern: .* /// [System.Runtime.Serialization.DataMember(Name="authorizationHeader")] - [System.ComponentModel.DataAnnotations.MinLength(4)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(4, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string AuthorizationHeader { get; set; } @@ -2120,8 +2003,7 @@ public class CreateWebhookRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="webhookUrl")] - [System.ComponentModel.DataAnnotations.MinLength(6)] - [System.ComponentModel.DataAnnotations.MaxLength(2000)] + [System.ComponentModel.DataAnnotations.Length(6, 2000)] public string WebhookUrl { get; set; } } @@ -2528,8 +2410,7 @@ public class FundingAccountResponseV2 /// Max length: 2 /// [System.Runtime.Serialization.DataMember(Name="country")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] public string Country { get; set; } /// @@ -2539,8 +2420,7 @@ public class FundingAccountResponseV2 /// Pattern: ^[A-Z]{3}$ /// [System.Runtime.Serialization.DataMember(Name="currency")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Z]{3}$")] public string Currency { get; set; } @@ -2656,8 +2536,7 @@ public class FundingPayorStatusAuditResponse /// Pattern: ^[A-Z]{3}$ /// [System.Runtime.Serialization.DataMember(Name="currency")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Z]{3}$")] public string Currency { get; set; } @@ -2744,8 +2623,7 @@ public class FundingResponse /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="currency")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Z]{3}$")] public string Currency { get; set; } @@ -2831,8 +2709,7 @@ public class FxSummary /// Max length: 3 /// [System.Runtime.Serialization.DataMember(Name="paymentCurrency")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] public string PaymentCurrency { get; set; } /// @@ -2855,8 +2732,7 @@ public class FxSummary /// Max length: 3 /// [System.Runtime.Serialization.DataMember(Name="sourceCurrency")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] public string SourceCurrency { get; set; } /// @@ -2915,8 +2791,7 @@ public class FxSummaryV3 /// Max length: 3 /// [System.Runtime.Serialization.DataMember(Name="paymentCurrency")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] public string PaymentCurrency { get; set; } /// @@ -2939,8 +2814,7 @@ public class FxSummaryV3 /// Max length: 3 /// [System.Runtime.Serialization.DataMember(Name="sourceCurrency")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] public string SourceCurrency { get; set; } /// @@ -3006,8 +2880,7 @@ public class GetPayeeListResponseCompanyV3 /// Max length: 40 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string Name { get; set; } /// @@ -3015,8 +2888,7 @@ public class GetPayeeListResponseCompanyV3 /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="operatingName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string OperatingName { get; set; } } @@ -3030,8 +2902,7 @@ public class GetPayeeListResponseCompanyV4 /// Max length: 40 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string Name { get; set; } /// @@ -3039,8 +2910,7 @@ public class GetPayeeListResponseCompanyV4 /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="operatingName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string OperatingName { get; set; } } @@ -3063,8 +2933,7 @@ public class NameV3 /// Max length: 40 /// [System.Runtime.Serialization.DataMember(Name="firstName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string FirstName { get; set; } /// @@ -3072,8 +2941,7 @@ public class NameV3 /// Max length: 40 /// [System.Runtime.Serialization.DataMember(Name="lastName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string LastName { get; set; } /// @@ -3081,8 +2949,7 @@ public class NameV3 /// Max length: 40 /// [System.Runtime.Serialization.DataMember(Name="otherNames")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string OtherNames { get; set; } /// @@ -3090,8 +2957,7 @@ public class NameV3 /// Max length: 10 /// [System.Runtime.Serialization.DataMember(Name="title")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public string Title { get; set; } } @@ -3114,8 +2980,7 @@ public class NameV4 /// Max length: 40 /// [System.Runtime.Serialization.DataMember(Name="firstName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string FirstName { get; set; } /// @@ -3123,8 +2988,7 @@ public class NameV4 /// Max length: 40 /// [System.Runtime.Serialization.DataMember(Name="lastName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string LastName { get; set; } /// @@ -3132,8 +2996,7 @@ public class NameV4 /// Max length: 40 /// [System.Runtime.Serialization.DataMember(Name="otherNames")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string OtherNames { get; set; } /// @@ -3141,8 +3004,7 @@ public class NameV4 /// Max length: 10 /// [System.Runtime.Serialization.DataMember(Name="title")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public string Title { get; set; } } @@ -3161,8 +3023,7 @@ public class GetPayeeListResponseV3 /// Pattern: ^[A-Z]{2}$ /// [System.Runtime.Serialization.DataMember(Name="country")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Z]{2}$")] public string Country { get; set; } @@ -3241,8 +3102,7 @@ public class GetPayeeListResponseV4 /// Pattern: ^[A-Z]{2}$ /// [System.Runtime.Serialization.DataMember(Name="country")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Z]{2}$")] public string Country { get; set; } @@ -3414,8 +3274,7 @@ public class PaymentResponseV3 /// Max length: 3 /// [System.Runtime.Serialization.DataMember(Name="paymentCurrency")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] public string PaymentCurrency { get; set; } /// @@ -3531,8 +3390,7 @@ public class PaymentResponseV3 /// Max length: 3 /// [System.Runtime.Serialization.DataMember(Name="sourceCurrency")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] public string SourceCurrency { get; set; } /// @@ -3610,8 +3468,7 @@ public class PaymentEventResponseV3 /// Max length: 3 /// [System.Runtime.Serialization.DataMember(Name="paymentCurrency")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] public string PaymentCurrency { get; set; } [System.Runtime.Serialization.DataMember(Name="principal")] @@ -3635,8 +3492,7 @@ public class PaymentEventResponseV3 /// Max length: 3 /// [System.Runtime.Serialization.DataMember(Name="sourceCurrency")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] public string SourceCurrency { get; set; } } @@ -3862,8 +3718,7 @@ public class PaymentResponseV4 /// Max length: 3 /// [System.Runtime.Serialization.DataMember(Name="paymentCurrency")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] public string PaymentCurrency { get; set; } /// @@ -4015,8 +3870,7 @@ public class PaymentResponseV4 /// Max length: 3 /// [System.Runtime.Serialization.DataMember(Name="sourceCurrency")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] public string SourceCurrency { get; set; } /// @@ -4106,8 +3960,7 @@ public class PaymentEventResponse /// Max length: 3 /// [System.Runtime.Serialization.DataMember(Name="paymentCurrency")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] public string PaymentCurrency { get; set; } [System.Runtime.Serialization.DataMember(Name="principal")] @@ -4143,8 +3996,7 @@ public class PaymentEventResponse /// Max length: 3 /// [System.Runtime.Serialization.DataMember(Name="sourceCurrency")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] public string SourceCurrency { get; set; } } @@ -4575,8 +4427,7 @@ public class SourceAccountSummary /// Max length: 3 /// [System.Runtime.Serialization.DataMember(Name="currency")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] public string Currency { get; set; } /// @@ -4678,8 +4529,7 @@ public class SourceAccountSummaryV3 /// Max length: 3 /// [System.Runtime.Serialization.DataMember(Name="currency")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] public string Currency { get; set; } /// @@ -4744,8 +4594,7 @@ public class IndividualV3 /// Max length: 30 /// [System.Runtime.Serialization.DataMember(Name="nationalIdentification")] - [System.ComponentModel.DataAnnotations.MinLength(6)] - [System.ComponentModel.DataAnnotations.MaxLength(30)] + [System.ComponentModel.DataAnnotations.Length(6, 30)] public string NationalIdentification { get; set; } } @@ -4761,8 +4610,7 @@ public class IndividualV3_name /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="firstName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string FirstName { get; set; } /// @@ -4772,8 +4620,7 @@ public class IndividualV3_name /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="lastName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string LastName { get; set; } /// @@ -4781,8 +4628,7 @@ public class IndividualV3_name /// Max length: 40 /// [System.Runtime.Serialization.DataMember(Name="otherNames")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string OtherNames { get; set; } /// @@ -4790,8 +4636,7 @@ public class IndividualV3_name /// Max length: 10 /// [System.Runtime.Serialization.DataMember(Name="title")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(1, 10)] public string Title { get; set; } } @@ -4821,8 +4666,7 @@ public class IndividualV4 /// Max length: 30 /// [System.Runtime.Serialization.DataMember(Name="nationalIdentification")] - [System.ComponentModel.DataAnnotations.MinLength(6)] - [System.ComponentModel.DataAnnotations.MaxLength(30)] + [System.ComponentModel.DataAnnotations.Length(6, 30)] public string NationalIdentification { get; set; } } @@ -4889,8 +4733,7 @@ public class InviteUserRequest /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="firstName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string FirstName { get; set; } /// @@ -4898,8 +4741,7 @@ public class InviteUserRequest /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="lastName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string LastName { get; set; } /// @@ -4969,8 +4811,7 @@ public class InviteUserRequest /// Max length: 6 /// [System.Runtime.Serialization.DataMember(Name="verificationCode")] - [System.ComponentModel.DataAnnotations.MinLength(6)] - [System.ComponentModel.DataAnnotations.MaxLength(6)] + [System.ComponentModel.DataAnnotations.Length(6, 6)] public string VerificationCode { get; set; } } @@ -5145,8 +4986,7 @@ public class SourceAccountResponseV2 /// Max length: 3 /// [System.Runtime.Serialization.DataMember(Name="currency")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] public string Currency { get; set; } [System.Runtime.Serialization.DataMember(Name="customerId")] @@ -5264,8 +5104,7 @@ public class SourceAccountResponseV3 /// Pattern: ^[A-Z]{2}$ /// [System.Runtime.Serialization.DataMember(Name="country")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Z]{2}$")] public string Country { get; set; } @@ -5276,8 +5115,7 @@ public class SourceAccountResponseV3 /// Pattern: ^[A-Z]{3}$ /// [System.Runtime.Serialization.DataMember(Name="currency")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Z]{3}$")] public string Currency { get; set; } @@ -5717,8 +5555,7 @@ public class PaymentV3 /// Max length: 3 /// [System.Runtime.Serialization.DataMember(Name="currency")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] public string Currency { get; set; } /// @@ -5743,8 +5580,7 @@ public class PaymentV3 /// Max length: 40 /// [System.Runtime.Serialization.DataMember(Name="paymentMemo")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(0, 40)] public string PaymentMemo { get; set; } /// @@ -5755,8 +5591,7 @@ public class PaymentV3 /// Max length: 512 /// [System.Runtime.Serialization.DataMember(Name="paymentMetadata")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(0, 512)] public string PaymentMetadata { get; set; } /// @@ -5765,8 +5600,7 @@ public class PaymentV3 /// Max length: 40 /// [System.Runtime.Serialization.DataMember(Name="payorPaymentId")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(0, 40)] public string PayorPaymentId { get; set; } /// @@ -5788,8 +5622,7 @@ public class PaymentV3 /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="remoteSystemId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string RemoteSystemId { get; set; } /// @@ -5915,8 +5748,7 @@ public class UserResponse /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="companyName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string CompanyName { get; set; } /// @@ -5937,8 +5769,7 @@ public class UserResponse /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="firstName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string FirstName { get; set; } /// @@ -5952,8 +5783,7 @@ public class UserResponse /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="lastName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string LastName { get; set; } /// @@ -6122,8 +5952,7 @@ public class PasswordRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="password")] - [System.ComponentModel.DataAnnotations.MinLength(8)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(8, 128)] public string Password { get; set; } } @@ -6148,8 +5977,7 @@ public class PayeeAddressV3 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="city")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(2, 100)] public string City { get; set; } /// @@ -6161,8 +5989,7 @@ public class PayeeAddressV3 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="country")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Z]{2}$")] public string Country { get; set; } @@ -6171,8 +5998,7 @@ public class PayeeAddressV3 /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="countyOrProvince")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(2, 100)] public string CountyOrProvince { get; set; } /// @@ -6182,8 +6008,7 @@ public class PayeeAddressV3 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="line1")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(2, 255)] public string Line1 { get; set; } /// @@ -6191,8 +6016,7 @@ public class PayeeAddressV3 /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="line2")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Line2 { get; set; } /// @@ -6200,8 +6024,7 @@ public class PayeeAddressV3 /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="line3")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Line3 { get; set; } /// @@ -6209,8 +6032,7 @@ public class PayeeAddressV3 /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="line4")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Line4 { get; set; } /// @@ -6218,8 +6040,7 @@ public class PayeeAddressV3 /// Max length: 30 /// [System.Runtime.Serialization.DataMember(Name="zipOrPostcode")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(30)] + [System.ComponentModel.DataAnnotations.Length(2, 30)] public string ZipOrPostcode { get; set; } } @@ -6235,8 +6056,7 @@ public class PayeeAddressV4 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="city")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(2, 100)] public string City { get; set; } /// @@ -6246,8 +6066,7 @@ public class PayeeAddressV4 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="country")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(2, 50)] public string Country { get; set; } /// @@ -6255,8 +6074,7 @@ public class PayeeAddressV4 /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="countyOrProvince")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(2, 100)] public string CountyOrProvince { get; set; } /// @@ -6266,8 +6084,7 @@ public class PayeeAddressV4 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="line1")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(2, 255)] public string Line1 { get; set; } /// @@ -6275,8 +6092,7 @@ public class PayeeAddressV4 /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="line2")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Line2 { get; set; } /// @@ -6284,8 +6100,7 @@ public class PayeeAddressV4 /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="line3")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Line3 { get; set; } /// @@ -6293,8 +6108,7 @@ public class PayeeAddressV4 /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="line4")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Line4 { get; set; } /// @@ -6302,8 +6116,7 @@ public class PayeeAddressV4 /// Max length: 30 /// [System.Runtime.Serialization.DataMember(Name="zipOrPostcode")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(30)] + [System.ComponentModel.DataAnnotations.Length(2, 30)] public string ZipOrPostcode { get; set; } } @@ -6362,8 +6175,7 @@ public class PayeeDeltaV3 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="remoteId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string RemoteId { get; set; } } @@ -6445,8 +6257,7 @@ public class PayeeDeltaV4 /// Pattern: ^[A-Z]{2}$ /// [System.Runtime.Serialization.DataMember(Name="payeeCountry")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Z]{2}$")] public string PayeeCountry { get; set; } @@ -6464,8 +6275,7 @@ public class PayeeDeltaV4 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="remoteId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string RemoteId { get; set; } } @@ -6511,8 +6321,7 @@ public class PayeeDetailResponseV3 /// Pattern: ^[A-Z]{2}$ /// [System.Runtime.Serialization.DataMember(Name="country")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Z]{2}$")] public string Country { get; set; } @@ -6838,8 +6647,7 @@ public class PayeeUserSelfUpdateRequest /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="firstName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string FirstName { get; set; } /// @@ -6847,8 +6655,7 @@ public class PayeeUserSelfUpdateRequest /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="lastName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string LastName { get; set; } /// @@ -7285,8 +7092,7 @@ public class PayorAddress /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="city")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(2, 100)] public string City { get; set; } /// @@ -7296,8 +7102,7 @@ public class PayorAddress /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="country")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(2, 50)] public string Country { get; set; } /// @@ -7305,8 +7110,7 @@ public class PayorAddress /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="countyOrProvince")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(2, 100)] public string CountyOrProvince { get; set; } /// @@ -7316,8 +7120,7 @@ public class PayorAddress /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="line1")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(2, 255)] public string Line1 { get; set; } /// @@ -7325,8 +7128,7 @@ public class PayorAddress /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="line2")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Line2 { get; set; } /// @@ -7334,8 +7136,7 @@ public class PayorAddress /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="line3")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Line3 { get; set; } /// @@ -7343,8 +7144,7 @@ public class PayorAddress /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="line4")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Line4 { get; set; } /// @@ -7352,8 +7152,7 @@ public class PayorAddress /// Max length: 30 /// [System.Runtime.Serialization.DataMember(Name="zipOrPostcode")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(30)] + [System.ComponentModel.DataAnnotations.Length(2, 30)] public string ZipOrPostcode { get; set; } } @@ -7369,8 +7168,7 @@ public class PayorAddressV2 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="city")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(2, 100)] public string City { get; set; } /// @@ -7380,8 +7178,7 @@ public class PayorAddressV2 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="country")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(2, 50)] public string Country { get; set; } /// @@ -7389,8 +7186,7 @@ public class PayorAddressV2 /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="countyOrProvince")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(2, 100)] public string CountyOrProvince { get; set; } /// @@ -7400,8 +7196,7 @@ public class PayorAddressV2 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="line1")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(2, 255)] public string Line1 { get; set; } /// @@ -7409,8 +7204,7 @@ public class PayorAddressV2 /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="line2")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Line2 { get; set; } /// @@ -7418,8 +7212,7 @@ public class PayorAddressV2 /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="line3")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Line3 { get; set; } /// @@ -7427,8 +7220,7 @@ public class PayorAddressV2 /// Max length: 255 /// [System.Runtime.Serialization.DataMember(Name="line4")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(255)] + [System.ComponentModel.DataAnnotations.Length(0, 255)] public string Line4 { get; set; } /// @@ -7436,8 +7228,7 @@ public class PayorAddressV2 /// Max length: 30 /// [System.Runtime.Serialization.DataMember(Name="zipOrPostcode")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(30)] + [System.ComponentModel.DataAnnotations.Length(2, 30)] public string ZipOrPostcode { get; set; } } @@ -7692,8 +7483,7 @@ public class PayorCreateApiKeyRequest /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(2, 1024)] public string Description { get; set; } /// @@ -7704,8 +7494,7 @@ public class PayorCreateApiKeyRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(2, 100)] public string Name { get; set; } /// @@ -7719,8 +7508,7 @@ public class PayorCreateApiKeyRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="roles")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public string[] Roles { get; set; } } @@ -7753,8 +7541,7 @@ public class PayorCreateApplicationRequest /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(2, 1024)] public string Description { get; set; } /// @@ -7765,8 +7552,7 @@ public class PayorCreateApplicationRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(2, 100)] public string Name { get; set; } } @@ -8347,8 +8133,7 @@ public class SourceAccountV3 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="currency")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Z]{3}$")] public string Currency { get; set; } @@ -8419,8 +8204,7 @@ public class QuoteFxSummaryV3 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="paymentCurrency")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Z]{3}$")] public string PaymentCurrency { get; set; } @@ -8449,8 +8233,7 @@ public class QuoteFxSummaryV3 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="sourceCurrency")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Z]{3}$")] public string SourceCurrency { get; set; } @@ -8501,8 +8284,7 @@ public class RejectedPaymentV3 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="currencyType")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Z]{3}$")] public string CurrencyType { get; set; } @@ -8526,8 +8308,7 @@ public class RejectedPaymentV3 /// Max length: 512 /// [System.Runtime.Serialization.DataMember(Name="paymentMetadata")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(0, 512)] public string PaymentMetadata { get; set; } /// @@ -8538,8 +8319,7 @@ public class RejectedPaymentV3 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="payorPaymentId")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(0, 40)] public string PayorPaymentId { get; set; } /// @@ -8571,8 +8351,7 @@ public class RejectedPaymentV3 /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="remoteSystemId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string RemoteSystemId { get; set; } /// @@ -8706,8 +8485,7 @@ public class ResendTokenRequest /// Max length: 6 /// [System.Runtime.Serialization.DataMember(Name="verificationCode")] - [System.ComponentModel.DataAnnotations.MinLength(6)] - [System.ComponentModel.DataAnnotations.MaxLength(6)] + [System.ComponentModel.DataAnnotations.Length(6, 6)] public string VerificationCode { get; set; } } @@ -8763,8 +8541,7 @@ public class RoleUpdateRequest /// Max length: 6 /// [System.Runtime.Serialization.DataMember(Name="verificationCode")] - [System.ComponentModel.DataAnnotations.MinLength(6)] - [System.ComponentModel.DataAnnotations.MaxLength(6)] + [System.ComponentModel.DataAnnotations.Length(6, 6)] public string VerificationCode { get; set; } } @@ -8817,8 +8594,7 @@ public class SelfUpdatePasswordRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="newPassword")] - [System.ComponentModel.DataAnnotations.MinLength(8)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(8, 128)] public string NewPassword { get; set; } /// @@ -8829,8 +8605,7 @@ public class SelfUpdatePasswordRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="oldPassword")] - [System.ComponentModel.DataAnnotations.MinLength(8)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(8, 128)] public string OldPassword { get; set; } } @@ -8925,8 +8700,7 @@ public class SupportedCountry /// Pattern: ^[A-Z]{2}$ /// [System.Runtime.Serialization.DataMember(Name="isoCountryCode")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Z]{2}$")] public string IsoCountryCode { get; set; } } @@ -8955,8 +8729,7 @@ public class SupportedCountryV2 /// Pattern: ^[A-Z]{2}$ /// [System.Runtime.Serialization.DataMember(Name="isoCountryCode")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Z]{2}$")] public string IsoCountryCode { get; set; } @@ -8985,8 +8758,7 @@ public class SupportedCurrencyV2 /// Pattern: ^[A-Z]{3}$ /// [System.Runtime.Serialization.DataMember(Name="currency")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Z]{3}$")] public string Currency { get; set; } @@ -9020,8 +8792,7 @@ public class TransferRequestV2 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="currency")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] public string Currency { get; set; } /// @@ -9058,8 +8829,7 @@ public class TransferRequestV3 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="currency")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[A-Z]{3}$")] public string Currency { get; set; } @@ -9093,8 +8863,7 @@ public class UnregisterMFARequest /// Max length: 6 /// [System.Runtime.Serialization.DataMember(Name="verificationCode")] - [System.ComponentModel.DataAnnotations.MinLength(6)] - [System.ComponentModel.DataAnnotations.MaxLength(6)] + [System.ComponentModel.DataAnnotations.Length(6, 6)] public string VerificationCode { get; set; } } @@ -9214,8 +8983,7 @@ public class UpdateRemoteIdRequestV3 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="remoteId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string RemoteId { get; set; } } @@ -9238,8 +9006,7 @@ public class UpdateRemoteIdRequestV4 /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="remoteId")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string RemoteId { get; set; } } @@ -9255,8 +9022,7 @@ public class UpdateWebhookRequest /// Pattern: .* /// [System.Runtime.Serialization.DataMember(Name="authorizationHeader")] - [System.ComponentModel.DataAnnotations.MinLength(4)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(4, 1000)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@".*")] public string AuthorizationHeader { get; set; } @@ -9278,8 +9044,7 @@ public class UpdateWebhookRequest /// Max length: 2000 /// [System.Runtime.Serialization.DataMember(Name="webhookUrl")] - [System.ComponentModel.DataAnnotations.MinLength(6)] - [System.ComponentModel.DataAnnotations.MaxLength(2000)] + [System.ComponentModel.DataAnnotations.Length(6, 2000)] public string WebhookUrl { get; set; } } @@ -9305,8 +9070,7 @@ public class UserDetailsUpdateRequest /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="firstName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string FirstName { get; set; } /// @@ -9314,8 +9078,7 @@ public class UserDetailsUpdateRequest /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="lastName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string LastName { get; set; } /// @@ -9359,8 +9122,7 @@ public class UserDetailsUpdateRequest /// Max length: 6 /// [System.Runtime.Serialization.DataMember(Name="verificationCode")] - [System.ComponentModel.DataAnnotations.MinLength(6)] - [System.ComponentModel.DataAnnotations.MaxLength(6)] + [System.ComponentModel.DataAnnotations.Length(6, 6)] public string VerificationCode { get; set; } } @@ -9504,8 +9266,7 @@ public class WithdrawPaymentRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="reason")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(2, 256)] public string Reason { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/visma_com_1_0_.cs b/Tests/CsOpenApi3TestsResults/visma_com_1_0_.cs index 2957a473..86244aa6 100644 --- a/Tests/CsOpenApi3TestsResults/visma_com_1_0_.cs +++ b/Tests/CsOpenApi3TestsResults/visma_com_1_0_.cs @@ -187,8 +187,7 @@ public class ActivityModel /// Max length: 1000 /// [System.Runtime.Serialization.DataMember(Name="location")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(0, 1000)] public string Location { get; set; } /// @@ -1053,8 +1052,7 @@ public class BusinessUnitModel /// Max length: 25 /// [System.Runtime.Serialization.DataMember(Name="kvkNumber")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(0, 25)] public string KvkNumber { get; set; } [System.Runtime.Serialization.DataMember(Name="lastUpdatedBy")] @@ -2489,8 +2487,7 @@ public class CustomerModel /// Max length: 25 /// [System.Runtime.Serialization.DataMember(Name="kvkNumber")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(0, 25)] public string KvkNumber { get; set; } [System.Runtime.Serialization.DataMember(Name="language")] @@ -5009,8 +5006,7 @@ public class OrganizationDetailsOutputModel /// Max length: 25 /// [System.Runtime.Serialization.DataMember(Name="kvkNumber")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(25)] + [System.ComponentModel.DataAnnotations.Length(0, 25)] public string KvkNumber { get; set; } [System.Runtime.Serialization.DataMember(Name="language")] @@ -5167,8 +5163,7 @@ public class OrganizationSettingsModel /// Max length: 20 /// [System.Runtime.Serialization.DataMember(Name="purchaseOrderNumberPrefix")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(20)] + [System.ComponentModel.DataAnnotations.Length(0, 20)] public string PurchaseOrderNumberPrefix { get; set; } [System.Runtime.Serialization.DataMember(Name="quickSearchSetting")] @@ -9041,8 +9036,7 @@ public class ProposalFeeRowInputModel /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public string Name { get; set; } [System.Runtime.Serialization.DataMember(Name="product")] @@ -9157,8 +9151,7 @@ public class ProposalInputModel /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public string Name { get; set; } /// @@ -9365,8 +9358,7 @@ public class ProposalStatusInputModel /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public string Name { get; set; } [System.Runtime.Serialization.DataMember(Name="sortOrder")] @@ -9416,8 +9408,7 @@ public class ProposalSubtotalInputModel /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public string Name { get; set; } [System.Runtime.Serialization.DataMember(Name="phase")] @@ -9480,8 +9471,7 @@ public class ProposalWorkhourRowInputModel /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public string Name { get; set; } [System.Runtime.Serialization.DataMember(Name="phase")] @@ -11378,8 +11368,7 @@ public class UserInputModel /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="firstName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string FirstName { get; set; } [System.Runtime.Serialization.DataMember(Name="isActive")] @@ -11395,8 +11384,7 @@ public class UserInputModel /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="lastName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string LastName { get; set; } [System.Runtime.Serialization.DataMember(Name="notes")] @@ -11720,8 +11708,7 @@ public class VatRateInputModel /// Max length: 10 /// [System.Runtime.Serialization.DataMember(Name="code")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(0, 10)] public string Code { get; set; } [System.Runtime.Serialization.DataMember(Name="countryGuid")] @@ -11750,8 +11737,7 @@ public class VatRateOutputModel /// Max length: 10 /// [System.Runtime.Serialization.DataMember(Name="code")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(0, 10)] public string Code { get; set; } [System.Runtime.Serialization.DataMember(Name="countryGuid")] diff --git a/Tests/CsOpenApi3TestsResults/visualstudio_com_v1_.cs b/Tests/CsOpenApi3TestsResults/visualstudio_com_v1_.cs index 1b47bc45..cedcf8e7 100644 --- a/Tests/CsOpenApi3TestsResults/visualstudio_com_v1_.cs +++ b/Tests/CsOpenApi3TestsResults/visualstudio_com_v1_.cs @@ -1138,8 +1138,7 @@ public class SecretDataBody /// Max length: 65536 /// [System.Runtime.Serialization.DataMember(Name="value")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65536)] + [System.ComponentModel.DataAnnotations.Length(1, 65536)] public string Value { get; set; } } @@ -2506,8 +2505,7 @@ public class ScopedCreateSecretBody /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="notes")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public string Notes { get; set; } [System.Runtime.Serialization.DataMember(Name="scope")] @@ -2528,8 +2526,7 @@ public class ScopedCreateSecretBody /// Max length: 65536 /// [System.Runtime.Serialization.DataMember(Name="value")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65536)] + [System.ComponentModel.DataAnnotations.Length(1, 65536)] public string Value { get; set; } } @@ -2546,8 +2543,7 @@ public class SecretFilterBody /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="value")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(1, 200)] public string Value { get; set; } } @@ -2617,8 +2613,7 @@ public class ScopedUpdateSecretBody /// Max length: 200 /// [System.Runtime.Serialization.DataMember(Name="notes")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(200)] + [System.ComponentModel.DataAnnotations.Length(0, 200)] public string Notes { get; set; } [System.Runtime.Serialization.DataMember(Name="scope")] @@ -2636,8 +2631,7 @@ public class ScopedUpdateSecretBody /// Max length: 65536 /// [System.Runtime.Serialization.DataMember(Name="value")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(65536)] + [System.ComponentModel.DataAnnotations.Length(1, 65536)] public string Value { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/vtex_local_Intelligent_Search_API_0_1_12_.cs b/Tests/CsOpenApi3TestsResults/vtex_local_Intelligent_Search_API_0_1_12_.cs index 06ea0221..e13bb482 100644 --- a/Tests/CsOpenApi3TestsResults/vtex_local_Intelligent_Search_API_0_1_12_.cs +++ b/Tests/CsOpenApi3TestsResults/vtex_local_Intelligent_Search_API_0_1_12_.cs @@ -452,8 +452,7 @@ public class TopSearches /// Maximum items: 10 /// [System.Runtime.Serialization.DataMember(Name="searches")] - [System.ComponentModel.DataAnnotations.MinLength(10)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(10, 10)] public TopSearchesSearches[] TopSearchesSearches { get; set; } } diff --git a/Tests/CsOpenApi3TestsResults/webflow_com_2023_03_23T154040Z_.cs b/Tests/CsOpenApi3TestsResults/webflow_com_2023_03_23T154040Z_.cs index c4331b50..88f1d113 100644 --- a/Tests/CsOpenApi3TestsResults/webflow_com_2023_03_23T154040Z_.cs +++ b/Tests/CsOpenApi3TestsResults/webflow_com_2023_03_23T154040Z_.cs @@ -1500,8 +1500,7 @@ public class DocumentGroundTruth /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="label")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9A-Za-z-_]+$")] public string Label { get; set; } @@ -1700,8 +1699,7 @@ public class DocumentsDocuments1GroundTruth /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="label")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9A-Za-z-_]+$")] public string Label { get; set; } @@ -3285,8 +3283,7 @@ public class PatchDocumentIdGroundTruth /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="label")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9A-Za-z-_]+$")] public string Label { get; set; } @@ -4194,8 +4191,7 @@ public class PostAssets /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="content")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(6250000)] + [System.ComponentModel.DataAnnotations.Length(1, 6250000)] public string Content { get; set; } /// @@ -4292,8 +4288,7 @@ public class PostDocuments /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="content")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(6250000)] + [System.ComponentModel.DataAnnotations.Length(1, 6250000)] public string Content { get; set; } /// @@ -4368,8 +4363,7 @@ public class PostDocumentsGroundTruth /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="label")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(1, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[0-9A-Za-z-_]+$")] public string Label { get; set; } diff --git a/Tests/CsOpenApi3TestsResults/yodlee_com_1_1_0_.cs b/Tests/CsOpenApi3TestsResults/yodlee_com_1_1_0_.cs index 894f9617..5181e17a 100644 --- a/Tests/CsOpenApi3TestsResults/yodlee_com_1_1_0_.cs +++ b/Tests/CsOpenApi3TestsResults/yodlee_com_1_1_0_.cs @@ -1941,8 +1941,7 @@ public class ApiKeyOutput /// Max length: 2147483647 /// [System.Runtime.Serialization.DataMember(Name="publicKey")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2147483647)] + [System.ComponentModel.DataAnnotations.Length(1, 2147483647)] public string PublicKey { get; set; } } @@ -1956,8 +1955,7 @@ public class ApiKeyRequest /// Max length: 2147483647 /// [System.Runtime.Serialization.DataMember(Name="publicKey")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2147483647)] + [System.ComponentModel.DataAnnotations.Length(1, 2147483647)] public string PublicKey { get; set; } } @@ -2190,8 +2188,7 @@ public class Cobrand /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="cobrandLogin")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2147483647)] + [System.ComponentModel.DataAnnotations.Length(1, 2147483647)] public string CobrandLogin { get; set; } /// @@ -2201,8 +2198,7 @@ public class Cobrand /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="cobrandPassword")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2147483647)] + [System.ComponentModel.DataAnnotations.Length(1, 2147483647)] public string CobrandPassword { get; set; } /// @@ -2270,8 +2266,7 @@ public class CobrandNotificationEvent /// Max length: 2147483647 /// [System.Runtime.Serialization.DataMember(Name="callbackUrl")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2147483647)] + [System.ComponentModel.DataAnnotations.Length(1, 2147483647)] public string CallbackUrl { get; set; } /// @@ -2330,8 +2325,7 @@ public class ConfigsNotificationEvent /// Max length: 2147483647 /// [System.Runtime.Serialization.DataMember(Name="callbackUrl")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2147483647)] + [System.ComponentModel.DataAnnotations.Length(1, 2147483647)] public string CallbackUrl { get; set; } /// @@ -2419,8 +2413,7 @@ public class CreateAccountInfo /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="accountName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string AccountName { get; set; } /// @@ -2429,8 +2422,7 @@ public class CreateAccountInfo /// Pattern: ^[a-zA-Z0-9]+$ /// [System.Runtime.Serialization.DataMember(Name="accountNumber")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9]+$")] public string AccountNumber { get; set; } @@ -2441,8 +2433,7 @@ public class CreateAccountInfo /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="accountType")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2147483647)] + [System.ComponentModel.DataAnnotations.Length(1, 2147483647)] public string AccountType { get; set; } [System.Runtime.Serialization.DataMember(Name="address")] @@ -2471,8 +2462,7 @@ public class CreateAccountInfo /// Max length: 250 /// [System.Runtime.Serialization.DataMember(Name="memo")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(0, 250)] public string Memo { get; set; } /// @@ -2480,8 +2470,7 @@ public class CreateAccountInfo /// Max length: 50 /// [System.Runtime.Serialization.DataMember(Name="nickname")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public string Nickname { get; set; } [System.Runtime.Serialization.DataMember(Name="valuationType")] @@ -2510,8 +2499,7 @@ public class CreateCobrandNotificationEvent /// Max length: 2147483647 /// [System.Runtime.Serialization.DataMember(Name="callbackUrl")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2147483647)] + [System.ComponentModel.DataAnnotations.Length(1, 2147483647)] public string CallbackUrl { get; set; } } @@ -2537,8 +2525,7 @@ public class CreateConfigsNotificationEvent /// Max length: 2147483647 /// [System.Runtime.Serialization.DataMember(Name="callbackUrl")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2147483647)] + [System.ComponentModel.DataAnnotations.Length(1, 2147483647)] public string CallbackUrl { get; set; } } @@ -4901,8 +4888,7 @@ public class Field /// Max length: 2147483647 /// [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2147483647)] + [System.ComponentModel.DataAnnotations.Length(1, 2147483647)] public string Id { get; set; } /// @@ -6935,8 +6921,7 @@ public class TransactionCategoryRequest /// Max length: 50 /// [System.Runtime.Serialization.DataMember(Name="categoryName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(1, 50)] public string CategoryName { get; set; } /// @@ -7045,8 +7030,7 @@ public class UpdateAccountInfo /// Max length: 100 /// [System.Runtime.Serialization.DataMember(Name="accountName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(1, 100)] public string AccountName { get; set; } /// @@ -7055,8 +7039,7 @@ public class UpdateAccountInfo /// Pattern: ^[a-zA-Z0-9]+$ /// [System.Runtime.Serialization.DataMember(Name="accountNumber")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(100)] + [System.ComponentModel.DataAnnotations.Length(0, 100)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9]+$")] public string AccountNumber { get; set; } @@ -7095,8 +7078,7 @@ public class UpdateAccountInfo /// Max length: 250 /// [System.Runtime.Serialization.DataMember(Name="memo")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(250)] + [System.ComponentModel.DataAnnotations.Length(0, 250)] public string Memo { get; set; } /// @@ -7104,8 +7086,7 @@ public class UpdateAccountInfo /// Max length: 50 /// [System.Runtime.Serialization.DataMember(Name="nickname")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(0, 50)] public string Nickname { get; set; } } @@ -7158,8 +7139,7 @@ public class UpdateCobrandNotificationEvent /// Max length: 2147483647 /// [System.Runtime.Serialization.DataMember(Name="callbackUrl")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2147483647)] + [System.ComponentModel.DataAnnotations.Length(1, 2147483647)] public string CallbackUrl { get; set; } } @@ -7185,8 +7165,7 @@ public class UpdateConfigsNotificationEvent /// Max length: 2147483647 /// [System.Runtime.Serialization.DataMember(Name="callbackUrl")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2147483647)] + [System.ComponentModel.DataAnnotations.Length(1, 2147483647)] public string CallbackUrl { get; set; } } @@ -7264,8 +7243,7 @@ public class UserRequestPreferences /// Max length: 2147483647 /// [System.Runtime.Serialization.DataMember(Name="dateFormat")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2147483647)] + [System.ComponentModel.DataAnnotations.Length(1, 2147483647)] public string DateFormat { get; set; } /// @@ -7280,8 +7258,7 @@ public class UserRequestPreferences /// Max length: 2147483647 /// [System.Runtime.Serialization.DataMember(Name="timeZone")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2147483647)] + [System.ComponentModel.DataAnnotations.Length(1, 2147483647)] public string TimeZone { get; set; } } @@ -7385,8 +7362,7 @@ public class VerificationAccount /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="accountNumber")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(17)] + [System.ComponentModel.DataAnnotations.Length(3, 17)] public string AccountNumber { get; set; } /// @@ -7640,8 +7616,7 @@ public class UserResponsePreferences /// Max length: 2147483647 /// [System.Runtime.Serialization.DataMember(Name="dateFormat")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2147483647)] + [System.ComponentModel.DataAnnotations.Length(1, 2147483647)] public string DateFormat { get; set; } /// @@ -7656,8 +7631,7 @@ public class UserResponsePreferences /// Max length: 2147483647 /// [System.Runtime.Serialization.DataMember(Name="timeZone")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2147483647)] + [System.ComponentModel.DataAnnotations.Length(1, 2147483647)] public string TimeZone { get; set; } } @@ -7759,8 +7733,7 @@ public class UserRegistration /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="loginName")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(150)] + [System.ComponentModel.DataAnnotations.Length(3, 150)] public string LoginName { get; set; } [System.Runtime.Serialization.DataMember(Name="name")] diff --git a/Tests/CsSwagger2TestsResults/azure_com_analysisservices_2017_08_01.cs b/Tests/CsSwagger2TestsResults/azure_com_analysisservices_2017_08_01.cs index 3c21b44c..5e60dc89 100644 --- a/Tests/CsSwagger2TestsResults/azure_com_analysisservices_2017_08_01.cs +++ b/Tests/CsSwagger2TestsResults/azure_com_analysisservices_2017_08_01.cs @@ -335,8 +335,7 @@ public class CheckServerNameAvailabilityParameters /// Pattern: ^[a-z][a-z0-9]*$ /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(63)] + [System.ComponentModel.DataAnnotations.Length(3, 63)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-z][a-z0-9]*$")] public string Name { get; set; } diff --git a/Tests/CsSwagger2TestsResults/azure_com_blueprint_blueprintAssignment_2018_11_01_preview.cs b/Tests/CsSwagger2TestsResults/azure_com_blueprint_blueprintAssignment_2018_11_01_preview.cs index fa709fd7..f762b486 100644 --- a/Tests/CsSwagger2TestsResults/azure_com_blueprint_blueprintAssignment_2018_11_01_preview.cs +++ b/Tests/CsSwagger2TestsResults/azure_com_blueprint_blueprintAssignment_2018_11_01_preview.cs @@ -432,8 +432,7 @@ public class ResourceGroupValue /// Max length: 90 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(90)] + [System.ComponentModel.DataAnnotations.Length(1, 90)] public string Name { get; set; } } diff --git a/Tests/CsSwagger2TestsResults/azure_com_blueprint_blueprintDefinition_2018_11_01_preview.cs b/Tests/CsSwagger2TestsResults/azure_com_blueprint_blueprintDefinition_2018_11_01_preview.cs index 99d73939..41e841dd 100644 --- a/Tests/CsSwagger2TestsResults/azure_com_blueprint_blueprintDefinition_2018_11_01_preview.cs +++ b/Tests/CsSwagger2TestsResults/azure_com_blueprint_blueprintDefinition_2018_11_01_preview.cs @@ -527,8 +527,7 @@ public class ResourceGroupDefinition /// Max length: 90 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(90)] + [System.ComponentModel.DataAnnotations.Length(1, 90)] public string Name { get; set; } /// @@ -573,8 +572,7 @@ public class ResourceGroupValue /// Max length: 90 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(90)] + [System.ComponentModel.DataAnnotations.Length(1, 90)] public string Name { get; set; } } diff --git a/Tests/CsSwagger2TestsResults/azure_com_containerregistry_2019_12_01_preview.cs b/Tests/CsSwagger2TestsResults/azure_com_containerregistry_2019_12_01_preview.cs index eb468767..1e08bd19 100644 --- a/Tests/CsSwagger2TestsResults/azure_com_containerregistry_2019_12_01_preview.cs +++ b/Tests/CsSwagger2TestsResults/azure_com_containerregistry_2019_12_01_preview.cs @@ -1196,8 +1196,7 @@ public class RegistryNameCheckRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(50)] + [System.ComponentModel.DataAnnotations.Length(5, 50)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z0-9]*$")] public string Name { get; set; } diff --git a/Tests/CsSwagger2TestsResults/azure_com_datafactory_IntegrationRuntime_2018_06_01.cs b/Tests/CsSwagger2TestsResults/azure_com_datafactory_IntegrationRuntime_2018_06_01.cs index fa1c645a..7bead0f0 100644 --- a/Tests/CsSwagger2TestsResults/azure_com_datafactory_IntegrationRuntime_2018_06_01.cs +++ b/Tests/CsSwagger2TestsResults/azure_com_datafactory_IntegrationRuntime_2018_06_01.cs @@ -634,8 +634,7 @@ public class IntegrationRuntimeSsisCatalogInfo /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="catalogAdminUserName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string CatalogAdminUserName { get; set; } /// diff --git a/Tests/CsSwagger2TestsResults/azure_com_datafactory_Trigger_2018_06_01.cs b/Tests/CsSwagger2TestsResults/azure_com_datafactory_Trigger_2018_06_01.cs index 71852305..5e2b009f 100644 --- a/Tests/CsSwagger2TestsResults/azure_com_datafactory_Trigger_2018_06_01.cs +++ b/Tests/CsSwagger2TestsResults/azure_com_datafactory_Trigger_2018_06_01.cs @@ -351,8 +351,7 @@ public class SelfDependencyTumblingWindowTriggerReference /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="offset")] - [System.ComponentModel.DataAnnotations.MinLength(8)] - [System.ComponentModel.DataAnnotations.MaxLength(15)] + [System.ComponentModel.DataAnnotations.Length(8, 15)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9]))")] public string Offset { get; set; } @@ -363,8 +362,7 @@ public class SelfDependencyTumblingWindowTriggerReference /// Pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])) /// [System.Runtime.Serialization.DataMember(Name="size")] - [System.ComponentModel.DataAnnotations.MinLength(8)] - [System.ComponentModel.DataAnnotations.MaxLength(15)] + [System.ComponentModel.DataAnnotations.Length(8, 15)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9]))")] public string Size { get; set; } } @@ -517,8 +515,7 @@ public class TumblingWindowTriggerDependencyReference /// Pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])) /// [System.Runtime.Serialization.DataMember(Name="offset")] - [System.ComponentModel.DataAnnotations.MinLength(8)] - [System.ComponentModel.DataAnnotations.MaxLength(15)] + [System.ComponentModel.DataAnnotations.Length(8, 15)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9]))")] public string Offset { get; set; } @@ -529,8 +526,7 @@ public class TumblingWindowTriggerDependencyReference /// Pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])) /// [System.Runtime.Serialization.DataMember(Name="size")] - [System.ComponentModel.DataAnnotations.MinLength(8)] - [System.ComponentModel.DataAnnotations.MaxLength(15)] + [System.ComponentModel.DataAnnotations.Length(8, 15)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9]))")] public string Size { get; set; } } diff --git a/Tests/CsSwagger2TestsResults/azure_com_iothub_2019_11_04.cs b/Tests/CsSwagger2TestsResults/azure_com_iothub_2019_11_04.cs index 63ecf602..c3b33ce5 100644 --- a/Tests/CsSwagger2TestsResults/azure_com_iothub_2019_11_04.cs +++ b/Tests/CsSwagger2TestsResults/azure_com_iothub_2019_11_04.cs @@ -580,8 +580,7 @@ public class FallbackRouteProperties /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="endpointNames")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public string[] EndpointNames { get; set; } /// @@ -1297,8 +1296,7 @@ public class RouteProperties /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="endpointNames")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public string[] EndpointNames { get; set; } /// diff --git a/Tests/CsSwagger2TestsResults/azure_com_mediaservices_media_2015_10_01.cs b/Tests/CsSwagger2TestsResults/azure_com_mediaservices_media_2015_10_01.cs index 9dc97726..30372bd9 100644 --- a/Tests/CsSwagger2TestsResults/azure_com_mediaservices_media_2015_10_01.cs +++ b/Tests/CsSwagger2TestsResults/azure_com_mediaservices_media_2015_10_01.cs @@ -74,8 +74,7 @@ public class CheckNameAvailabilityInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(24)] + [System.ComponentModel.DataAnnotations.Length(3, 24)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-z0-9]{3,24}$")] public string Name { get; set; } diff --git a/Tests/CsSwagger2TestsResults/azure_com_netapp_2019_11_01.cs b/Tests/CsSwagger2TestsResults/azure_com_netapp_2019_11_01.cs index 05b0c52a..e9f94fd3 100644 --- a/Tests/CsSwagger2TestsResults/azure_com_netapp_2019_11_01.cs +++ b/Tests/CsSwagger2TestsResults/azure_com_netapp_2019_11_01.cs @@ -418,8 +418,7 @@ public class PoolProperties /// Pattern: ^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$ /// [System.Runtime.Serialization.DataMember(Name="poolId")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$")] public string PoolId { get; set; } @@ -668,8 +667,7 @@ public class MountTargetProperties /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="fileSystemId")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$")] public string FileSystemId { get; set; } @@ -686,8 +684,7 @@ public class MountTargetProperties /// Pattern: ^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$ /// [System.Runtime.Serialization.DataMember(Name="mountTargetId")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$")] public string MountTargetId { get; set; } @@ -1012,8 +1009,7 @@ public class SnapshotProperties /// Pattern: ^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$ /// [System.Runtime.Serialization.DataMember(Name="fileSystemId")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$")] public string FileSystemId { get; set; } @@ -1030,8 +1026,7 @@ public class SnapshotProperties /// Pattern: ^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$ /// [System.Runtime.Serialization.DataMember(Name="snapshotId")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$")] public string SnapshotId { get; set; } } @@ -1120,8 +1115,7 @@ public class VolumeProperties /// Pattern: ^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$ /// [System.Runtime.Serialization.DataMember(Name="baremetalTenantId")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$")] public string BaremetalTenantId { get; set; } @@ -1134,8 +1128,7 @@ public class VolumeProperties /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="creationToken")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(80)] + [System.ComponentModel.DataAnnotations.Length(1, 80)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z][a-zA-Z0-9\-]{0,79}$")] public string CreationToken { get; set; } @@ -1158,8 +1151,7 @@ public class VolumeProperties /// Pattern: ^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$ /// [System.Runtime.Serialization.DataMember(Name="fileSystemId")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$")] public string FileSystemId { get; set; } @@ -1201,8 +1193,7 @@ public class VolumeProperties /// Pattern: ^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}|(\\?([^\/]*[\/])*)([^\/]+)$ /// [System.Runtime.Serialization.DataMember(Name="snapshotId")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}|(\\?([^\/]*[\/])*)([^\/]+)$")] public string SnapshotId { get; set; } diff --git a/Tests/CsSwagger2TestsResults/azure_com_service_map_arm_service_map_2015_11_01_preview.cs b/Tests/CsSwagger2TestsResults/azure_com_service_map_arm_service_map_2015_11_01_preview.cs index 2c58ef0d..79c8bf4d 100644 --- a/Tests/CsSwagger2TestsResults/azure_com_service_map_arm_service_map_2015_11_01_preview.cs +++ b/Tests/CsSwagger2TestsResults/azure_com_service_map_arm_service_map_2015_11_01_preview.cs @@ -1082,8 +1082,7 @@ public class MachineGroupProperties /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="displayName")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(1, 256)] public string DisplayName { get; set; } /// diff --git a/Tests/CsSwagger2TestsResults/azure_com_signalr_2018_10_01.cs b/Tests/CsSwagger2TestsResults/azure_com_signalr_2018_10_01.cs index bae415a8..f9c63232 100644 --- a/Tests/CsSwagger2TestsResults/azure_com_signalr_2018_10_01.cs +++ b/Tests/CsSwagger2TestsResults/azure_com_signalr_2018_10_01.cs @@ -541,8 +541,7 @@ public class SignalRFeature /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="value")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(1, 128)] public string Value { get; set; } } diff --git a/Tests/CsSwagger2TestsResults/azure_com_web_ResourceProvider_2019_08_01.cs b/Tests/CsSwagger2TestsResults/azure_com_web_ResourceProvider_2019_08_01.cs index c66a2ec1..3ce289be 100644 --- a/Tests/CsSwagger2TestsResults/azure_com_web_ResourceProvider_2019_08_01.cs +++ b/Tests/CsSwagger2TestsResults/azure_com_web_ResourceProvider_2019_08_01.cs @@ -70,8 +70,7 @@ public class CsmMoveResourceEnvelope /// Pattern: ^[-\w\._\(\)]+[^\.]$ /// [System.Runtime.Serialization.DataMember(Name="targetResourceGroup")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(90)] + [System.ComponentModel.DataAnnotations.Length(1, 90)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@" ^[-\w\._\(\)]+[^\.]$")] public string TargetResourceGroup { get; set; } } diff --git a/Tests/CsSwagger2TestsResults/squareup_com_2_0.cs b/Tests/CsSwagger2TestsResults/squareup_com_2_0.cs index e6b2e3d4..ff152ea9 100644 --- a/Tests/CsSwagger2TestsResults/squareup_com_2_0.cs +++ b/Tests/CsSwagger2TestsResults/squareup_com_2_0.cs @@ -5014,8 +5014,7 @@ public class CreateCheckoutRequest /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="idempotency_key")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(192)] + [System.ComponentModel.DataAnnotations.Length(1, 192)] public string Idempotency_key { get; set; } /// diff --git a/Tests/CsSwagger2TestsResults/twilio_com_2010_04_01.cs b/Tests/CsSwagger2TestsResults/twilio_com_2010_04_01.cs index bcf7a8a2..02c23a27 100644 --- a/Tests/CsSwagger2TestsResults/twilio_com_2010_04_01.cs +++ b/Tests/CsSwagger2TestsResults/twilio_com_2010_04_01.cs @@ -697,8 +697,7 @@ public class Call /// Max length: 34 /// [System.Runtime.Serialization.DataMember(Name="parent_call_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] public string Parent_call_sid { get; set; } [System.Runtime.Serialization.DataMember(Name="phone_number_sid")] @@ -712,8 +711,7 @@ public class Call /// Max length: 34 /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] public string Sid { get; set; } /// @@ -848,8 +846,7 @@ public class CallInstance /// Max length: 34 /// [System.Runtime.Serialization.DataMember(Name="parent_call_sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] public string Parent_call_sid { get; set; } /// @@ -875,8 +872,7 @@ public class CallInstance /// Max length: 34 /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] public string Sid { get; set; } /// @@ -3115,8 +3111,7 @@ public class PhoneNumbersAvailable_phone_numbers /// Max length: 2 /// [System.Runtime.Serialization.DataMember(Name="region")] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] public string Region { get; set; } } @@ -3193,8 +3188,7 @@ public class Queue /// Max length: 34 /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] public string Sid { get; set; } [System.Runtime.Serialization.DataMember(Name="uri")] @@ -3273,8 +3267,7 @@ public class QueuesQueues1 /// Max length: 34 /// [System.Runtime.Serialization.DataMember(Name="sid")] - [System.ComponentModel.DataAnnotations.MinLength(34)] - [System.ComponentModel.DataAnnotations.MaxLength(34)] + [System.ComponentModel.DataAnnotations.Length(34, 34)] public string Sid { get; set; } [System.Runtime.Serialization.DataMember(Name="uri")] diff --git a/Tests/CsSwagger2TestsResults/wealthport_com_1_0.cs b/Tests/CsSwagger2TestsResults/wealthport_com_1_0.cs index 312df3c2..eb70d277 100644 --- a/Tests/CsSwagger2TestsResults/wealthport_com_1_0.cs +++ b/Tests/CsSwagger2TestsResults/wealthport_com_1_0.cs @@ -32,8 +32,7 @@ public class Archivable_Object /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="id")] - [System.ComponentModel.DataAnnotations.MinLength(36)] - [System.ComponentModel.DataAnnotations.MaxLength(36)] + [System.ComponentModel.DataAnnotations.Length(36, 36)] public string Id { get; set; } } diff --git a/Tests/CsSwagger2TestsResults/wedpax_com_v1.cs b/Tests/CsSwagger2TestsResults/wedpax_com_v1.cs index e107c0e7..823e4fe4 100644 --- a/Tests/CsSwagger2TestsResults/wedpax_com_v1.cs +++ b/Tests/CsSwagger2TestsResults/wedpax_com_v1.cs @@ -45,8 +45,7 @@ public class AuthenticateModel /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="password")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(0, 32)] public string Password { get; set; } [System.Runtime.Serialization.DataMember(Name="rememberClient")] @@ -59,8 +58,7 @@ public class AuthenticateModel /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="userNameOrEmailAddress")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string UserNameOrEmailAddress { get; set; } } @@ -293,8 +291,7 @@ public class User /// Max length: 64 /// [System.Runtime.Serialization.DataMember(Name="authenticationSource")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(0, 64)] public string AuthenticationSource { get; set; } [System.Runtime.Serialization.DataMember(Name="claims")] @@ -308,8 +305,7 @@ public class User /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="concurrencyStamp")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] public string ConcurrencyStamp { get; set; } [System.Runtime.Serialization.DataMember(Name="creationTime")] @@ -337,8 +333,7 @@ public class User /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="emailAddress")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string EmailAddress { get; set; } /// @@ -346,8 +341,7 @@ public class User /// Max length: 328 /// [System.Runtime.Serialization.DataMember(Name="emailConfirmationCode")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(328)] + [System.ComponentModel.DataAnnotations.Length(0, 328)] public string EmailConfirmationCode { get; set; } [System.Runtime.Serialization.DataMember(Name="expireTime")] @@ -399,8 +393,7 @@ public class User /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(0, 64)] public string Name { get; set; } /// @@ -410,8 +403,7 @@ public class User /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="normalizedEmailAddress")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string NormalizedEmailAddress { get; set; } /// @@ -421,8 +413,7 @@ public class User /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="normalizedUserName")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string NormalizedUserName { get; set; } /// @@ -432,8 +423,7 @@ public class User /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="password")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] public string Password { get; set; } /// @@ -441,8 +431,7 @@ public class User /// Max length: 328 /// [System.Runtime.Serialization.DataMember(Name="passwordResetCode")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(328)] + [System.ComponentModel.DataAnnotations.Length(0, 328)] public string PasswordResetCode { get; set; } [System.Runtime.Serialization.DataMember(Name="permissions")] @@ -453,8 +442,7 @@ public class User /// Max length: 32 /// [System.Runtime.Serialization.DataMember(Name="phoneNumber")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(0, 32)] public string PhoneNumber { get; set; } [System.Runtime.Serialization.DataMember(Name="roles")] @@ -465,8 +453,7 @@ public class User /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="securityStamp")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] public string SecurityStamp { get; set; } [System.Runtime.Serialization.DataMember(Name="settings")] @@ -479,8 +466,7 @@ public class User /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="surname")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(0, 64)] public string Surname { get; set; } [System.Runtime.Serialization.DataMember(Name="tenantId")] @@ -496,8 +482,7 @@ public class User /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="userName")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string UserName { get; set; } } @@ -511,8 +496,7 @@ public class UserClaim /// Max length: 256 /// [System.Runtime.Serialization.DataMember(Name="claimType")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string ClaimType { get; set; } [System.Runtime.Serialization.DataMember(Name="claimValue")] @@ -549,8 +533,7 @@ public class UserLogin /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="loginProvider")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] public string LoginProvider { get; set; } /// @@ -560,8 +543,7 @@ public class UserLogin /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="providerKey")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string ProviderKey { get; set; } [System.Runtime.Serialization.DataMember(Name="tenantId")] @@ -595,8 +577,7 @@ public class UserPermissionSetting /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] public string Name { get; set; } [System.Runtime.Serialization.DataMember(Name="tenantId")] @@ -657,8 +638,7 @@ public class Setting /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string Name { get; set; } [System.Runtime.Serialization.DataMember(Name="tenantId")] @@ -672,8 +652,7 @@ public class Setting /// Max length: 2000 /// [System.Runtime.Serialization.DataMember(Name="value")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(2000)] + [System.ComponentModel.DataAnnotations.Length(0, 2000)] public string Value { get; set; } } @@ -693,8 +672,7 @@ public class UserToken /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="loginProvider")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] public string LoginProvider { get; set; } /// @@ -702,8 +680,7 @@ public class UserToken /// Max length: 128 /// [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] public string Name { get; set; } [System.Runtime.Serialization.DataMember(Name="tenantId")] @@ -717,8 +694,7 @@ public class UserToken /// Max length: 512 /// [System.Runtime.Serialization.DataMember(Name="value")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(512)] + [System.ComponentModel.DataAnnotations.Length(0, 512)] public string Value { get; set; } } @@ -754,8 +730,7 @@ public class ChangeUiThemeInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="theme")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(0, 32)] public string Theme { get; set; } } @@ -814,8 +789,7 @@ public class CreateRoleDto /// Max length: 5000 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(5000)] + [System.ComponentModel.DataAnnotations.Length(0, 5000)] public string Description { get; set; } /// @@ -825,8 +799,7 @@ public class CreateRoleDto /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="displayName")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(0, 64)] public string DisplayName { get; set; } [System.Runtime.Serialization.DataMember(Name="grantedPermissions")] @@ -839,8 +812,7 @@ public class CreateRoleDto /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(0, 32)] public string Name { get; set; } [System.Runtime.Serialization.DataMember(Name="normalizedName")] @@ -859,8 +831,7 @@ public class CreateTenantDto /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="adminEmailAddress")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string AdminEmailAddress { get; set; } /// @@ -868,8 +839,7 @@ public class CreateTenantDto /// Max length: 1024 /// [System.Runtime.Serialization.DataMember(Name="connectionString")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(1024)] + [System.ComponentModel.DataAnnotations.Length(0, 1024)] public string ConnectionString { get; set; } [System.Runtime.Serialization.DataMember(Name="isActive")] @@ -882,8 +852,7 @@ public class CreateTenantDto /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] public string Name { get; set; } /// @@ -894,8 +863,7 @@ public class CreateTenantDto /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="tenancyName")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(0, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z][a-zA-Z0-9_-]{1,}$")] public string TenancyName { get; set; } } @@ -912,8 +880,7 @@ public class CreateUserDto /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="userName")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string UserName { get; set; } } @@ -966,8 +933,7 @@ public class CreateWeddingVendorDto /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="title")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(60)] + [System.ComponentModel.DataAnnotations.Length(3, 60)] public string Title { get; set; } [System.Runtime.Serialization.DataMember(Name="userId")] @@ -1004,8 +970,7 @@ public class ExternalAuthenticateModel /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="authProvider")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] public string AuthProvider { get; set; } /// @@ -1022,8 +987,7 @@ public class ExternalAuthenticateModel /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="providerKey")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string ProviderKey { get; set; } } @@ -1243,8 +1207,7 @@ public class RoleEditDto /// Max length: 5000 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(5000)] + [System.ComponentModel.DataAnnotations.Length(0, 5000)] public string Description { get; set; } /// @@ -1254,8 +1217,7 @@ public class RoleEditDto /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="displayName")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(0, 64)] public string DisplayName { get; set; } [System.Runtime.Serialization.DataMember(Name="id")] @@ -1271,8 +1233,7 @@ public class RoleEditDto /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(0, 32)] public string Name { get; set; } } @@ -1288,8 +1249,7 @@ public class IsTenantAvailableInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="tenancyName")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(0, 64)] public string TenancyName { get; set; } } @@ -1366,8 +1326,7 @@ public class RoleDto /// Max length: 5000 /// [System.Runtime.Serialization.DataMember(Name="description")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(5000)] + [System.ComponentModel.DataAnnotations.Length(0, 5000)] public string Description { get; set; } /// @@ -1377,8 +1336,7 @@ public class RoleDto /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="displayName")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(0, 64)] public string DisplayName { get; set; } [System.Runtime.Serialization.DataMember(Name="grantedPermissions")] @@ -1394,8 +1352,7 @@ public class RoleDto /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(32)] + [System.ComponentModel.DataAnnotations.Length(0, 32)] public string Name { get; set; } [System.Runtime.Serialization.DataMember(Name="normalizedName")] @@ -1447,8 +1404,7 @@ public class LoginModel /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="mobileNumber")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(11)] + [System.ComponentModel.DataAnnotations.Length(0, 11)] public string MobileNumber { get; set; } [System.Runtime.Serialization.DataMember(Name="password")] @@ -1573,8 +1529,7 @@ public class TenantDto /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(0, 128)] public string Name { get; set; } /// @@ -1585,8 +1540,7 @@ public class TenantDto /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="tenancyName")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(0, 64)] [System.ComponentModel.DataAnnotations.RegularExpressionAttribute(@"^[a-zA-Z][a-zA-Z0-9_-]{1,}$")] public string TenancyName { get; set; } } @@ -1621,8 +1575,7 @@ public class UserDto /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="emailAddress")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string EmailAddress { get; set; } [System.Runtime.Serialization.DataMember(Name="expireTime")] @@ -1650,8 +1603,7 @@ public class UserDto /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="name")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(0, 64)] public string Name { get; set; } [System.Runtime.Serialization.DataMember(Name="roleNames")] @@ -1664,8 +1616,7 @@ public class UserDto /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="surname")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(64)] + [System.ComponentModel.DataAnnotations.Length(0, 64)] public string Surname { get; set; } /// @@ -1675,8 +1626,7 @@ public class UserDto /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="userName")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string UserName { get; set; } } @@ -1755,8 +1705,7 @@ public class RegisterInput /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="userName")] - [System.ComponentModel.DataAnnotations.MinLength(0)] - [System.ComponentModel.DataAnnotations.MaxLength(256)] + [System.ComponentModel.DataAnnotations.Length(0, 256)] public string UserName { get; set; } } @@ -1980,8 +1929,7 @@ public class UpdateWeddingVendorDto /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="title")] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(60)] + [System.ComponentModel.DataAnnotations.Length(3, 60)] public string Title { get; set; } [System.Runtime.Serialization.DataMember(Name="userId")] diff --git a/Tests/CsSwagger2TestsResults/winsms_co_za_1_0_0.cs b/Tests/CsSwagger2TestsResults/winsms_co_za_1_0_0.cs index ad4cde32..c06ba3bc 100644 --- a/Tests/CsSwagger2TestsResults/winsms_co_za_1_0_0.cs +++ b/Tests/CsSwagger2TestsResults/winsms_co_za_1_0_0.cs @@ -116,8 +116,7 @@ public class DeleteScheduledResponse /// Maximum items: 1000 /// [System.Runtime.Serialization.DataMember(Name="deletedMessageStatuses")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] public DeletedMessageStatus[] DeletedMessageStatuses { get; set; } /// @@ -265,8 +264,7 @@ public class IncomingMessageResponse /// Maximum items: 1000 /// [System.Runtime.Serialization.DataMember(Name="incomingMessages")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] public IncomingMessage[] IncomingMessages { get; set; } /// @@ -378,8 +376,7 @@ public class MessageDetails /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="recipients")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] public MessageRecipientDetails[] Recipients { get; set; } /// @@ -431,8 +428,7 @@ public class MessageDetailsResponse /// Maximum items: 1000 /// [System.Runtime.Serialization.DataMember(Name="recipients")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] public MessageRecipientResponse[] Recipients { get; set; } } @@ -573,8 +569,7 @@ public class MessageStatusResponse /// Maximum items: 1000 /// [System.Runtime.Serialization.DataMember(Name="messageStatuses")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] public MessageStatus[] MessageStatuses { get; set; } /// @@ -669,8 +664,7 @@ public class NewMessageDetails /// [System.ComponentModel.DataAnnotations.Required()] [System.Runtime.Serialization.DataMember(Name="recipients")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] public MessageRecipientDetails[] Recipients { get; set; } /// @@ -693,8 +687,7 @@ public class NewMessageResponse /// Maximum items: 1000 /// [System.Runtime.Serialization.DataMember(Name="recipients")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] public MessageRecipientResponse[] Recipients { get; set; } /// @@ -816,8 +809,7 @@ public class ScheduledMessageResponse /// Maximum items: 1000 /// [System.Runtime.Serialization.DataMember(Name="scheduledMessages")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] public ScheduledMessage[] ScheduledMessages { get; set; } /// @@ -900,8 +892,7 @@ public class ShortcodeMessageResponse /// Maximum items: 1000 /// [System.Runtime.Serialization.DataMember(Name="shortcodeMessages")] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1000)] + [System.ComponentModel.DataAnnotations.Length(1, 1000)] public ShortcodeMessage[] ShortcodeMessages { get; set; } /// diff --git a/Tests/SwagTestsResults/mcp.cs b/Tests/SwagTestsResults/mcp.cs index d82c2ebe..7d3b48ab 100644 --- a/Tests/SwagTestsResults/mcp.cs +++ b/Tests/SwagTestsResults/mcp.cs @@ -29,8 +29,7 @@ public class BBSReportRequestType /// Min length: 6 /// Max length: 6 /// - [System.ComponentModel.DataAnnotations.MinLength(6)] - [System.ComponentModel.DataAnnotations.MaxLength(6)] + [System.ComponentModel.DataAnnotations.Length(6, 6)] public string ClaimId { get; set; } public System.Nullable LodgementDate { get; set; } @@ -45,8 +44,7 @@ public class ProviderType /// Max length: 8 /// [System.ComponentModel.DataAnnotations.Required()] - [System.ComponentModel.DataAnnotations.MinLength(8)] - [System.ComponentModel.DataAnnotations.MaxLength(8)] + [System.ComponentModel.DataAnnotations.Length(8, 8)] public string ProviderNumber { get; set; } } @@ -101,24 +99,21 @@ public class BankAccountType /// Min length: 1 /// Max length: 30 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(30)] + [System.ComponentModel.DataAnnotations.Length(1, 30)] public string AccountName { get; set; } /// /// Min length: 1 /// Max length: 9 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(9)] + [System.ComponentModel.DataAnnotations.Length(1, 9)] public string AccountNumber { get; set; } /// /// Min length: 6 /// Max length: 6 /// - [System.ComponentModel.DataAnnotations.MinLength(6)] - [System.ComponentModel.DataAnnotations.MaxLength(6)] + [System.ComponentModel.DataAnnotations.Length(6, 6)] public string BsbCode { get; set; } } @@ -133,8 +128,7 @@ public class ClaimSummaryType /// Min length: 1 /// Max length: 9 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(9)] + [System.ComponentModel.DataAnnotations.Length(1, 9)] public string ChargeAmount { get; set; } public string ClaimChannelCode { get; set; } @@ -227,8 +221,7 @@ public class ClaimAssessmentType /// Min length: 1 /// Max length: 9 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(9)] + [System.ComponentModel.DataAnnotations.Length(1, 9)] public string ChargeAmount { get; set; } public string ClaimId { get; set; } @@ -277,16 +270,14 @@ public class MembershipType /// Min length: 10 /// Max length: 10 /// - [System.ComponentModel.DataAnnotations.MinLength(10)] - [System.ComponentModel.DataAnnotations.MaxLength(10)] + [System.ComponentModel.DataAnnotations.Length(10, 10)] public string MemberNumber { get; set; } /// /// Min length: 1 /// Max length: 1 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public string MemberRefNumber { get; set; } } @@ -303,16 +294,14 @@ public class IdentityType /// Min length: 1 /// Max length: 1 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public string SecondInitial { get; set; } /// /// Min length: 1 /// Max length: 1 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public string Sex { get; set; } } @@ -331,8 +320,7 @@ public class ServiceResponseType /// Min length: 1 /// Max length: 9 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(9)] + [System.ComponentModel.DataAnnotations.Length(1, 9)] public string ChargeAmount { get; set; } public string ItemNumber { get; set; } @@ -357,16 +345,14 @@ public class BulkBillClaimStoreForwardClaimType /// Min length: 8 /// Max length: 8 /// - [System.ComponentModel.DataAnnotations.MinLength(8)] - [System.ComponentModel.DataAnnotations.MaxLength(8)] + [System.ComponentModel.DataAnnotations.Length(8, 8)] public string FacilityId { get; set; } /// /// Min length: 1 /// Max length: 1 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public string HospitalInd { get; set; } /// @@ -391,8 +377,7 @@ public class BulkBillClaimStoreForwardClaimType /// Max length: 1 /// [System.ComponentModel.DataAnnotations.Required()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public string ServiceTypeCode { get; set; } } @@ -405,8 +390,7 @@ public class BBSMedicalEventType /// Max length: 2 /// [System.ComponentModel.DataAnnotations.Required()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] public string Id { get; set; } /// @@ -445,8 +429,7 @@ public class BBSMedicalEventType /// Min length: 1 /// Max length: 1 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public string ReferralOverrideCode { get; set; } /// @@ -463,8 +446,7 @@ public class BBSMedicalEventType /// Max length: 1 /// [System.ComponentModel.DataAnnotations.Required()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public string SubmissionAuthorityInd { get; set; } } @@ -497,16 +479,14 @@ public class ReferralType /// Min length: 1 /// Max length: 2 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(1, 2)] public string Period { get; set; } /// /// Min length: 1 /// Max length: 1 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public string PeriodCode { get; set; } /// @@ -521,8 +501,7 @@ public class ReferralType /// Max length: 1 /// [System.ComponentModel.DataAnnotations.Required()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public string TypeCode { get; set; } } @@ -535,8 +514,7 @@ public class ServiceType /// Max length: 4 /// [System.ComponentModel.DataAnnotations.Required()] - [System.ComponentModel.DataAnnotations.MinLength(4)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(4, 4)] public string Id { get; set; } public System.Nullable AccessionDateTime { get; set; } @@ -545,16 +523,14 @@ public class ServiceType /// Min length: 1 /// Max length: 1 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public string AftercareOverrideInd { get; set; } /// /// Min length: 1 /// Max length: 9 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(9)] + [System.ComponentModel.DataAnnotations.Length(1, 9)] public string ChargeAmount { get; set; } public System.Nullable CollectionDateTime { get; set; } @@ -563,88 +539,77 @@ public class ServiceType /// Min length: 1 /// Max length: 1 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public string DuplicateServiceOverrideInd { get; set; } /// /// Min length: 1 /// Max length: 2 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(1, 2)] public string FieldQuantity { get; set; } /// /// Min length: 1 /// Max length: 5 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(1, 5)] public string ItemNumber { get; set; } /// /// Min length: 1 /// Max length: 6 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(6)] + [System.ComponentModel.DataAnnotations.Length(1, 6)] public string LspNumber { get; set; } /// /// Min length: 1 /// Max length: 1 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public string MultipleProcedureOverrideInd { get; set; } /// /// Min length: 1 /// Max length: 2 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(1, 2)] public string NumberOfPatientsSeen { get; set; } /// /// Min length: 2 /// Max length: 2 /// - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] public string RestrictiveOverrideCode { get; set; } /// /// Min length: 1 /// Max length: 1 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public string Rule3ExemptInd { get; set; } /// /// Min length: 1 /// Max length: 1 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public string S4b3ExemptInd { get; set; } /// /// Min length: 3 /// Max length: 5 /// - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(3, 5)] public string ScpId { get; set; } /// /// Min length: 1 /// Max length: 2 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(1, 2)] public string SelfDeemedCode { get; set; } public string Text { get; set; } @@ -653,8 +618,7 @@ public class ServiceType /// Min length: 3 /// Max length: 3 /// - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] public string TimeDuration { get; set; } } @@ -691,8 +655,7 @@ public class VAAClaimType /// Min length: 1 /// Max length: 1 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public string HospitalInd { get; set; } /// @@ -717,8 +680,7 @@ public class VAAClaimType /// Max length: 1 /// [System.ComponentModel.DataAnnotations.Required()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public string ServiceTypeCode { get; set; } } @@ -731,8 +693,7 @@ public class VAAMedicalEventType /// Max length: 2 /// [System.ComponentModel.DataAnnotations.Required()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] public string Id { get; set; } public AcceptedDisabilityType AcceptedDisability { get; set; } @@ -749,8 +710,7 @@ public class VAAMedicalEventType /// Min length: 1 /// Max length: 1 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public string BreakInEpisodeOfCareNumber { get; set; } public System.Nullable BreakInEpisodeStartDate { get; set; } @@ -759,16 +719,14 @@ public class VAAMedicalEventType /// Min length: 1 /// Max length: 5 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(1, 5)] public string NumberOfCNCHours { get; set; } /// /// Min length: 1 /// Max length: 3 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(1, 3)] public string NumberOfCNCVisits { get; set; } /// @@ -781,24 +739,21 @@ public class VAAMedicalEventType /// Min length: 1 /// Max length: 5 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(1, 5)] public string NumberOfENHours { get; set; } /// /// Min length: 1 /// Max length: 3 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(1, 3)] public string NumberOfENVisits { get; set; } /// /// Min length: 8 /// Max length: 8 /// - [System.ComponentModel.DataAnnotations.MinLength(8)] - [System.ComponentModel.DataAnnotations.MaxLength(8)] + [System.ComponentModel.DataAnnotations.Length(8, 8)] public string FacilityId { get; set; } /// @@ -817,16 +772,14 @@ public class VAAMedicalEventType /// Min length: 1 /// Max length: 5 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(1, 5)] public string NumberOfNSSHours { get; set; } /// /// Min length: 1 /// Max length: 3 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(1, 3)] public string NumberOfNSSVisits { get; set; } /// @@ -841,24 +794,21 @@ public class VAAMedicalEventType /// Min length: 1 /// Max length: 1 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public string ReferralOverrideCode { get; set; } /// /// Min length: 1 /// Max length: 5 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(1, 5)] public string NumberOfRNHours { get; set; } /// /// Min length: 1 /// Max length: 3 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(1, 3)] public string NumberOfRNVisits { get; set; } /// @@ -875,8 +825,7 @@ public class VAAMedicalEventType /// Max length: 1 /// [System.ComponentModel.DataAnnotations.Required()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public string SubmissionAuthorityInd { get; set; } } @@ -895,8 +844,7 @@ public class AcceptedDisabilityType /// Max length: 1 /// [System.ComponentModel.DataAnnotations.Required()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public string Ind { get; set; } } @@ -909,16 +857,14 @@ public class VAAServiceType /// Max length: 4 /// [System.ComponentModel.DataAnnotations.Required()] - [System.ComponentModel.DataAnnotations.MinLength(4)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(4, 4)] public string Id { get; set; } /// /// Min length: 1 /// Max length: 8 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(8)] + [System.ComponentModel.DataAnnotations.Length(1, 8)] public string AccountReferenceNumber { get; set; } public System.Nullable AdmissionDate { get; set; } @@ -927,8 +873,7 @@ public class VAAServiceType /// Min length: 3 /// Max length: 7 /// - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(7)] + [System.ComponentModel.DataAnnotations.Length(3, 7)] public string ChargeAmount { get; set; } public System.Nullable DischargeDate { get; set; } @@ -939,8 +884,7 @@ public class VAAServiceType /// Min length: 1 /// Max length: 1 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public string DuplicateServiceOverrideInd { get; set; } /// @@ -949,64 +893,56 @@ public class VAAServiceType /// Max length: 5 /// [System.ComponentModel.DataAnnotations.Required()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(5)] + [System.ComponentModel.DataAnnotations.Length(1, 5)] public string ItemNumber { get; set; } /// /// Min length: 1 /// Max length: 1 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public string MultipleProcedureOverrideInd { get; set; } /// /// Min length: 1 /// Max length: 2 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(1, 2)] public string NumberOfPatientsSeen { get; set; } /// /// Min length: 1 /// Max length: 2 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(1, 2)] public string NumberOfTeeth { get; set; } /// /// Min length: 1 /// Max length: 2 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(1, 2)] public string OpticalScriptCode { get; set; } /// /// Min length: 2 /// Max length: 2 /// - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] public string RestrictiveOverrideCode { get; set; } /// /// Min length: 1 /// Max length: 1 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public string SecondDeviceInd { get; set; } /// /// Min length: 1 /// Max length: 2 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(1, 2)] public string SelfDeemedCode { get; set; } public string Text { get; set; } @@ -1015,24 +951,21 @@ public class VAAServiceType /// Min length: 3 /// Max length: 3 /// - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] public string TimeDuration { get; set; } /// /// Min length: 2 /// Max length: 2 /// - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] public string ToothNumber { get; set; } /// /// Min length: 3 /// Max length: 3 /// - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] public string UpperLowerJawCode { get; set; } } @@ -1051,8 +984,7 @@ public class VeteranMembershipType /// Max length: 9 /// [System.ComponentModel.DataAnnotations.Required()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(9)] + [System.ComponentModel.DataAnnotations.Length(3, 9)] public string VeteranNumber { get; set; } } @@ -1075,32 +1007,28 @@ public class AddressType /// Min length: 1 /// Max length: 40 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string AddressLineOne { get; set; } /// /// Min length: 1 /// Max length: 40 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string AddressLineTwo { get; set; } /// /// Min length: 1 /// Max length: 40 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(40)] + [System.ComponentModel.DataAnnotations.Length(1, 40)] public string Locality { get; set; } /// /// Min length: 4 /// Max length: 4 /// - [System.ComponentModel.DataAnnotations.MinLength(4)] - [System.ComponentModel.DataAnnotations.MaxLength(4)] + [System.ComponentModel.DataAnnotations.Length(4, 4)] public string Postcode { get; set; } } @@ -1137,8 +1065,7 @@ public class DVAClaimType /// Min length: 1 /// Max length: 1 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public string HospitalInd { get; set; } /// @@ -1147,8 +1074,7 @@ public class DVAClaimType /// Max length: 1 /// [System.ComponentModel.DataAnnotations.Required()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public string ServiceTypeCode { get; set; } /// @@ -1177,8 +1103,7 @@ public class DVAMedicalEventType /// Max length: 2 /// [System.ComponentModel.DataAnnotations.Required()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] public string Id { get; set; } /// @@ -1197,8 +1122,7 @@ public class DVAMedicalEventType /// Min length: 8 /// Max length: 8 /// - [System.ComponentModel.DataAnnotations.MinLength(8)] - [System.ComponentModel.DataAnnotations.MaxLength(8)] + [System.ComponentModel.DataAnnotations.Length(8, 8)] public string FacilityId { get; set; } /// @@ -1217,8 +1141,7 @@ public class DVAMedicalEventType /// Min length: 1 /// Max length: 1 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public string ReferralOverrideCode { get; set; } /// @@ -1227,16 +1150,14 @@ public class DVAMedicalEventType /// Max length: 1 /// [System.ComponentModel.DataAnnotations.Required()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public string SubmissionAuthorityInd { get; set; } /// /// Min length: 1 /// Max length: 1 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public string TreatmentLocationCode { get; set; } public AcceptedDisabilityType AcceptedDisability { get; set; } @@ -1265,8 +1186,7 @@ public class DVAServiceType : ServiceType /// Min length: 1 /// Max length: 8 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(8)] + [System.ComponentModel.DataAnnotations.Length(1, 8)] public string AccountReferenceNumber { get; set; } public System.Nullable DistanceKilometres { get; set; } @@ -1301,8 +1221,7 @@ public class DVAReportRequestType /// Min length: 6 /// Max length: 6 /// - [System.ComponentModel.DataAnnotations.MinLength(6)] - [System.ComponentModel.DataAnnotations.MaxLength(6)] + [System.ComponentModel.DataAnnotations.Length(6, 6)] public string ClaimId { get; set; } public System.Nullable LodgementDate { get; set; } @@ -1357,8 +1276,7 @@ public class DVAClaimAssessmentType /// Min length: 1 /// Max length: 9 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(9)] + [System.ComponentModel.DataAnnotations.Length(1, 9)] public string ChargeAmount { get; set; } public string ClaimId { get; set; } @@ -1407,8 +1325,7 @@ public class DVAServiceAssessmentType /// Min length: 1 /// Max length: 9 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(9)] + [System.ComponentModel.DataAnnotations.Length(1, 9)] public string ChargeAmount { get; set; } public string GstInd { get; set; } @@ -1553,8 +1470,7 @@ public class PatientVerificationRequestType /// Max length: 3 /// [System.ComponentModel.DataAnnotations.Required()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] public string TypeCode { get; set; } } @@ -1575,24 +1491,21 @@ public class FundMembershipType /// Min length: 1 /// Max length: 19 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(1, 19)] public string MemberNumber { get; set; } /// /// Min length: 1 /// Max length: 2 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(1, 2)] public string MemberRefNumber { get; set; } /// /// Min length: 3 /// Max length: 3 /// - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] public string Organisation { get; set; } } @@ -1751,8 +1664,7 @@ public class PatientClaimInteractiveType /// Min length: 1 /// Max length: 1 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public string ReferralOverrideCode { get; set; } /// @@ -1761,8 +1673,7 @@ public class PatientClaimInteractiveType /// Max length: 1 /// [System.ComponentModel.DataAnnotations.Required()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public string AccountPaidInd { get; set; } public string AccountReferenceId { get; set; } @@ -1773,8 +1684,7 @@ public class PatientClaimInteractiveType /// Max length: 1 /// [System.ComponentModel.DataAnnotations.Required()] - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public string SubmissionAuthorityInd { get; set; } /// @@ -1801,8 +1711,7 @@ public class PCIMedicalEventType /// Max length: 2 /// [System.ComponentModel.DataAnnotations.Required()] - [System.ComponentModel.DataAnnotations.MinLength(2)] - [System.ComponentModel.DataAnnotations.MaxLength(2)] + [System.ComponentModel.DataAnnotations.Length(2, 2)] public string Id { get; set; } /// @@ -1825,24 +1734,21 @@ public class PCIServiceType : ServiceType /// Min length: 3 /// Max length: 7 /// - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(7)] + [System.ComponentModel.DataAnnotations.Length(3, 7)] public string PatientContribAmount { get; set; } /// /// Min length: 8 /// Max length: 8 /// - [System.ComponentModel.DataAnnotations.MinLength(8)] - [System.ComponentModel.DataAnnotations.MaxLength(8)] + [System.ComponentModel.DataAnnotations.Length(8, 8)] public string FacilityId { get; set; } /// /// Min length: 1 /// Max length: 1 /// - [System.ComponentModel.DataAnnotations.MinLength(1)] - [System.ComponentModel.DataAnnotations.MaxLength(1)] + [System.ComponentModel.DataAnnotations.Length(1, 1)] public string HospitalInd { get; set; } } @@ -1863,8 +1769,7 @@ public class ContactType /// Min length: 5 /// Max length: 128 /// - [System.ComponentModel.DataAnnotations.MinLength(5)] - [System.ComponentModel.DataAnnotations.MaxLength(128)] + [System.ComponentModel.DataAnnotations.Length(5, 128)] public string EmailAddress { get; set; } public string Name { get; set; } @@ -1873,8 +1778,7 @@ public class ContactType /// Min length: 8 /// Max length: 19 /// - [System.ComponentModel.DataAnnotations.MinLength(8)] - [System.ComponentModel.DataAnnotations.MaxLength(19)] + [System.ComponentModel.DataAnnotations.Length(8, 19)] public string PhoneNumber { get; set; } } @@ -2013,8 +1917,7 @@ public class SameDayDeleteType /// Max length: 3 /// [System.ComponentModel.DataAnnotations.Required()] - [System.ComponentModel.DataAnnotations.MinLength(3)] - [System.ComponentModel.DataAnnotations.MaxLength(3)] + [System.ComponentModel.DataAnnotations.Length(3, 3)] public string ReasonCode { get; set; } }