Server Test

Server Test

rev. 32008444e84ff1cb68e9a4c2b30546b7da321b16

Files changed:

tmp-codegen-diff/codegen-server-test/constraints/rust-server-codegen/src/input.rs

@@ -868,868 +932,932 @@
  888    888   
            }
  889    889   
        }
  890    890   
    }
  891    891   
    impl ::std::error::Error for ConstraintViolation {}
  892    892   
    impl ConstraintViolation {
  893    893   
        pub(crate) fn as_validation_exception_field(
  894    894   
            self,
  895    895   
            path: ::std::string::String,
  896    896   
        ) -> crate::model::ValidationExceptionField {
  897    897   
            match self {
  898         -
        ConstraintViolation::MissingEvents => crate::model::ValidationExceptionField {
  899         -
                                        message: format!("Value at '{}/events' failed to satisfy constraint: Member must not be null", path),
  900         -
                                        path: path + "/events",
  901         -
                                    },
  902         -
    }
         898  +
            ConstraintViolation::MissingEvents => crate::model::ValidationExceptionField {
         899  +
                                                message: format!("Value at '{}/events' failed to satisfy constraint: Member must not be null", path),
         900  +
                                                path: path + "/events",
         901  +
                                            },
         902  +
        }
  903    903   
        }
  904    904   
    }
  905    905   
    impl ::std::convert::From<ConstraintViolation>
  906    906   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
  907    907   
    {
  908    908   
        fn from(constraint_violation: ConstraintViolation) -> Self {
  909    909   
            let first_validation_exception_field =
  910    910   
                constraint_violation.as_validation_exception_field("".to_owned());
  911    911   
            let validation_exception = crate::error::ValidationException {
  912    912   
                message: format!(
@@ -2696,2696 +2762,2762 @@
 2716   2716   
            }
 2717   2717   
        }
 2718   2718   
    }
 2719   2719   
    impl ::std::error::Error for ConstraintViolation {}
 2720   2720   
    impl ConstraintViolation {
 2721   2721   
        pub(crate) fn as_validation_exception_field(
 2722   2722   
            self,
 2723   2723   
            path: ::std::string::String,
 2724   2724   
        ) -> crate::model::ValidationExceptionField {
 2725   2725   
            match self {
 2726         -
        ConstraintViolation::Nested(inner) => inner.as_validation_exception_field(path + "/nested"),
 2727         -
        ConstraintViolation::MissingRecursiveList => crate::model::ValidationExceptionField {
 2728         -
                                        message: format!("Value at '{}/recursiveList' failed to satisfy constraint: Member must not be null", path),
 2729         -
                                        path: path + "/recursiveList",
 2730         -
                                    },
 2731         -
        ConstraintViolation::RecursiveList(inner) => inner.as_validation_exception_field(path + "/recursiveList"),
 2732         -
    }
        2726  +
            ConstraintViolation::Nested(inner) => inner.as_validation_exception_field(path + "/nested"),
        2727  +
            ConstraintViolation::MissingRecursiveList => crate::model::ValidationExceptionField {
        2728  +
                                                message: format!("Value at '{}/recursiveList' failed to satisfy constraint: Member must not be null", path),
        2729  +
                                                path: path + "/recursiveList",
        2730  +
                                            },
        2731  +
            ConstraintViolation::RecursiveList(inner) => inner.as_validation_exception_field(path + "/recursiveList"),
        2732  +
        }
 2733   2733   
        }
 2734   2734   
    }
 2735   2735   
    impl ::std::convert::From<ConstraintViolation>
 2736   2736   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
 2737   2737   
    {
 2738   2738   
        fn from(constraint_violation: ConstraintViolation) -> Self {
 2739   2739   
            let first_validation_exception_field =
 2740   2740   
                constraint_violation.as_validation_exception_field("".to_owned());
 2741   2741   
            let validation_exception = crate::error::ValidationException {
 2742   2742   
                message: format!(
@@ -2870,2870 +2935,2935 @@
 2890   2890   
            }
 2891   2891   
        }
 2892   2892   
    }
 2893   2893   
    impl ::std::error::Error for ConstraintViolation {}
 2894   2894   
    impl ConstraintViolation {
 2895   2895   
        pub(crate) fn as_validation_exception_field(
 2896   2896   
            self,
 2897   2897   
            path: ::std::string::String,
 2898   2898   
        ) -> crate::model::ValidationExceptionField {
 2899   2899   
            match self {
 2900         -
        ConstraintViolation::MissingHttpPayloadBoundConstrainedShape => crate::model::ValidationExceptionField {
 2901         -
                                        message: format!("Value at '{}/httpPayloadBoundConstrainedShape' failed to satisfy constraint: Member must not be null", path),
 2902         -
                                        path: path + "/httpPayloadBoundConstrainedShape",
 2903         -
                                    },
 2904         -
        ConstraintViolation::HttpPayloadBoundConstrainedShape(inner) => inner.as_validation_exception_field(path + "/httpPayloadBoundConstrainedShape"),
 2905         -
    }
        2900  +
            ConstraintViolation::MissingHttpPayloadBoundConstrainedShape => crate::model::ValidationExceptionField {
        2901  +
                                                message: format!("Value at '{}/httpPayloadBoundConstrainedShape' failed to satisfy constraint: Member must not be null", path),
        2902  +
                                                path: path + "/httpPayloadBoundConstrainedShape",
        2903  +
                                            },
        2904  +
            ConstraintViolation::HttpPayloadBoundConstrainedShape(inner) => inner.as_validation_exception_field(path + "/httpPayloadBoundConstrainedShape"),
        2905  +
        }
 2906   2906   
        }
 2907   2907   
    }
 2908   2908   
    impl ::std::convert::From<ConstraintViolation>
 2909   2909   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
 2910   2910   
    {
 2911   2911   
        fn from(constraint_violation: ConstraintViolation) -> Self {
 2912   2912   
            let first_validation_exception_field =
 2913   2913   
                constraint_violation.as_validation_exception_field("".to_owned());
 2914   2914   
            let validation_exception = crate::error::ValidationException {
 2915   2915   
                message: format!(
@@ -3175,3175 +3289,3289 @@
 3195   3195   
            }
 3196   3196   
        }
 3197   3197   
    }
 3198   3198   
    impl ::std::error::Error for ConstraintViolation {}
 3199   3199   
    impl ConstraintViolation {
 3200   3200   
        pub(crate) fn as_validation_exception_field(
 3201   3201   
            self,
 3202   3202   
            path: ::std::string::String,
 3203   3203   
        ) -> crate::model::ValidationExceptionField {
 3204   3204   
            match self {
 3205         -
        ConstraintViolation::MissingLengthStringLabel => crate::model::ValidationExceptionField {
 3206         -
                                        message: format!("Value at '{}/lengthStringLabel' failed to satisfy constraint: Member must not be null", path),
 3207         -
                                        path: path + "/lengthStringLabel",
 3208         -
                                    },
 3209         -
        ConstraintViolation::LengthStringLabel(inner) => inner.as_validation_exception_field(path + "/lengthStringLabel"),
 3210         -
        ConstraintViolation::RangeIntegerLabel(inner) => inner.as_validation_exception_field(path + "/rangeIntegerLabel"),
 3211         -
        ConstraintViolation::RangeShortLabel(inner) => inner.as_validation_exception_field(path + "/rangeShortLabel"),
 3212         -
        ConstraintViolation::RangeLongLabel(inner) => inner.as_validation_exception_field(path + "/rangeLongLabel"),
 3213         -
        ConstraintViolation::RangeByteLabel(inner) => inner.as_validation_exception_field(path + "/rangeByteLabel"),
 3214         -
        ConstraintViolation::MissingEnumStringLabel => crate::model::ValidationExceptionField {
 3215         -
                                        message: format!("Value at '{}/enumStringLabel' failed to satisfy constraint: Member must not be null", path),
 3216         -
                                        path: path + "/enumStringLabel",
 3217         -
                                    },
 3218         -
        ConstraintViolation::EnumStringLabel(inner) => inner.as_validation_exception_field(path + "/enumStringLabel"),
 3219         -
        ConstraintViolation::MissingLengthStringHeaderMap => crate::model::ValidationExceptionField {
 3220         -
                                        message: format!("Value at '{}/lengthStringHeaderMap' failed to satisfy constraint: Member must not be null", path),
 3221         -
                                        path: path + "/lengthStringHeaderMap",
 3222         -
                                    },
 3223         -
        ConstraintViolation::LengthStringHeaderMap(inner) => inner.as_validation_exception_field(path + "/lengthStringHeaderMap"),
 3224         -
        ConstraintViolation::LengthStringHeader(inner) => inner.as_validation_exception_field(path + "/lengthStringHeader"),
 3225         -
        ConstraintViolation::RangeIntegerHeader(inner) => inner.as_validation_exception_field(path + "/rangeIntegerHeader"),
 3226         -
        ConstraintViolation::RangeShortHeader(inner) => inner.as_validation_exception_field(path + "/rangeShortHeader"),
 3227         -
        ConstraintViolation::RangeLongHeader(inner) => inner.as_validation_exception_field(path + "/rangeLongHeader"),
 3228         -
        ConstraintViolation::RangeByteHeader(inner) => inner.as_validation_exception_field(path + "/rangeByteHeader"),
 3229         -
        ConstraintViolation::LengthStringSetHeader(inner) => inner.as_validation_exception_field(path + "/lengthStringSetHeader"),
 3230         -
        ConstraintViolation::ListLengthStringHeader(inner) => inner.as_validation_exception_field(path + "/listLengthStringHeader"),
 3231         -
        ConstraintViolation::LengthListPatternStringHeader(inner) => inner.as_validation_exception_field(path + "/lengthListPatternStringHeader"),
 3232         -
        ConstraintViolation::LengthSetPatternStringHeader(inner) => inner.as_validation_exception_field(path + "/lengthSetPatternStringHeader"),
 3233         -
        ConstraintViolation::RangeByteSetHeader(inner) => inner.as_validation_exception_field(path + "/rangeByteSetHeader"),
 3234         -
        ConstraintViolation::RangeShortSetHeader(inner) => inner.as_validation_exception_field(path + "/rangeShortSetHeader"),
 3235         -
        ConstraintViolation::RangeIntegerSetHeader(inner) => inner.as_validation_exception_field(path + "/rangeIntegerSetHeader"),
 3236         -
        ConstraintViolation::RangeLongSetHeader(inner) => inner.as_validation_exception_field(path + "/rangeLongSetHeader"),
 3237         -
        ConstraintViolation::RangeByteListHeader(inner) => inner.as_validation_exception_field(path + "/rangeByteListHeader"),
 3238         -
        ConstraintViolation::RangeShortListHeader(inner) => inner.as_validation_exception_field(path + "/rangeShortListHeader"),
 3239         -
        ConstraintViolation::RangeIntegerListHeader(inner) => inner.as_validation_exception_field(path + "/rangeIntegerListHeader"),
 3240         -
        ConstraintViolation::RangeLongListHeader(inner) => inner.as_validation_exception_field(path + "/rangeLongListHeader"),
 3241         -
        ConstraintViolation::LengthStringQuery(inner) => inner.as_validation_exception_field(path + "/lengthStringQuery"),
 3242         -
        ConstraintViolation::RangeByteQuery(inner) => inner.as_validation_exception_field(path + "/rangeByteQuery"),
 3243         -
        ConstraintViolation::RangeShortQuery(inner) => inner.as_validation_exception_field(path + "/rangeShortQuery"),
 3244         -
        ConstraintViolation::RangeIntegerQuery(inner) => inner.as_validation_exception_field(path + "/rangeIntegerQuery"),
 3245         -
        ConstraintViolation::RangeLongQuery(inner) => inner.as_validation_exception_field(path + "/rangeLongQuery"),
 3246         -
        ConstraintViolation::EnumStringQuery(inner) => inner.as_validation_exception_field(path + "/enumStringQuery"),
 3247         -
        ConstraintViolation::LengthStringListQuery(inner) => inner.as_validation_exception_field(path + "/lengthStringListQuery"),
 3248         -
        ConstraintViolation::LengthListPatternStringQuery(inner) => inner.as_validation_exception_field(path + "/lengthListPatternStringQuery"),
 3249         -
        ConstraintViolation::LengthStringSetQuery(inner) => inner.as_validation_exception_field(path + "/lengthStringSetQuery"),
 3250         -
        ConstraintViolation::RangeByteListQuery(inner) => inner.as_validation_exception_field(path + "/rangeByteListQuery"),
 3251         -
        ConstraintViolation::RangeShortListQuery(inner) => inner.as_validation_exception_field(path + "/rangeShortListQuery"),
 3252         -
        ConstraintViolation::RangeIntegerListQuery(inner) => inner.as_validation_exception_field(path + "/rangeIntegerListQuery"),
 3253         -
        ConstraintViolation::RangeLongListQuery(inner) => inner.as_validation_exception_field(path + "/rangeLongListQuery"),
 3254         -
        ConstraintViolation::RangeByteSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeByteSetQuery"),
 3255         -
        ConstraintViolation::RangeShortSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeShortSetQuery"),
 3256         -
        ConstraintViolation::RangeIntegerSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeIntegerSetQuery"),
 3257         -
        ConstraintViolation::RangeLongSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeLongSetQuery"),
 3258         -
        ConstraintViolation::EnumStringListQuery(inner) => inner.as_validation_exception_field(path + "/enumStringListQuery"),
 3259         -
    }
        3205  +
            ConstraintViolation::MissingLengthStringLabel => crate::model::ValidationExceptionField {
        3206  +
                                                message: format!("Value at '{}/lengthStringLabel' failed to satisfy constraint: Member must not be null", path),
        3207  +
                                                path: path + "/lengthStringLabel",
        3208  +
                                            },
        3209  +
            ConstraintViolation::LengthStringLabel(inner) => inner.as_validation_exception_field(path + "/lengthStringLabel"),
        3210  +
            ConstraintViolation::RangeIntegerLabel(inner) => inner.as_validation_exception_field(path + "/rangeIntegerLabel"),
        3211  +
            ConstraintViolation::RangeShortLabel(inner) => inner.as_validation_exception_field(path + "/rangeShortLabel"),
        3212  +
            ConstraintViolation::RangeLongLabel(inner) => inner.as_validation_exception_field(path + "/rangeLongLabel"),
        3213  +
            ConstraintViolation::RangeByteLabel(inner) => inner.as_validation_exception_field(path + "/rangeByteLabel"),
        3214  +
            ConstraintViolation::MissingEnumStringLabel => crate::model::ValidationExceptionField {
        3215  +
                                                message: format!("Value at '{}/enumStringLabel' failed to satisfy constraint: Member must not be null", path),
        3216  +
                                                path: path + "/enumStringLabel",
        3217  +
                                            },
        3218  +
            ConstraintViolation::EnumStringLabel(inner) => inner.as_validation_exception_field(path + "/enumStringLabel"),
        3219  +
            ConstraintViolation::MissingLengthStringHeaderMap => crate::model::ValidationExceptionField {
        3220  +
                                                message: format!("Value at '{}/lengthStringHeaderMap' failed to satisfy constraint: Member must not be null", path),
        3221  +
                                                path: path + "/lengthStringHeaderMap",
        3222  +
                                            },
        3223  +
            ConstraintViolation::LengthStringHeaderMap(inner) => inner.as_validation_exception_field(path + "/lengthStringHeaderMap"),
        3224  +
            ConstraintViolation::LengthStringHeader(inner) => inner.as_validation_exception_field(path + "/lengthStringHeader"),
        3225  +
            ConstraintViolation::RangeIntegerHeader(inner) => inner.as_validation_exception_field(path + "/rangeIntegerHeader"),
        3226  +
            ConstraintViolation::RangeShortHeader(inner) => inner.as_validation_exception_field(path + "/rangeShortHeader"),
        3227  +
            ConstraintViolation::RangeLongHeader(inner) => inner.as_validation_exception_field(path + "/rangeLongHeader"),
        3228  +
            ConstraintViolation::RangeByteHeader(inner) => inner.as_validation_exception_field(path + "/rangeByteHeader"),
        3229  +
            ConstraintViolation::LengthStringSetHeader(inner) => inner.as_validation_exception_field(path + "/lengthStringSetHeader"),
        3230  +
            ConstraintViolation::ListLengthStringHeader(inner) => inner.as_validation_exception_field(path + "/listLengthStringHeader"),
        3231  +
            ConstraintViolation::LengthListPatternStringHeader(inner) => inner.as_validation_exception_field(path + "/lengthListPatternStringHeader"),
        3232  +
            ConstraintViolation::LengthSetPatternStringHeader(inner) => inner.as_validation_exception_field(path + "/lengthSetPatternStringHeader"),
        3233  +
            ConstraintViolation::RangeByteSetHeader(inner) => inner.as_validation_exception_field(path + "/rangeByteSetHeader"),
        3234  +
            ConstraintViolation::RangeShortSetHeader(inner) => inner.as_validation_exception_field(path + "/rangeShortSetHeader"),
        3235  +
            ConstraintViolation::RangeIntegerSetHeader(inner) => inner.as_validation_exception_field(path + "/rangeIntegerSetHeader"),
        3236  +
            ConstraintViolation::RangeLongSetHeader(inner) => inner.as_validation_exception_field(path + "/rangeLongSetHeader"),
        3237  +
            ConstraintViolation::RangeByteListHeader(inner) => inner.as_validation_exception_field(path + "/rangeByteListHeader"),
        3238  +
            ConstraintViolation::RangeShortListHeader(inner) => inner.as_validation_exception_field(path + "/rangeShortListHeader"),
        3239  +
            ConstraintViolation::RangeIntegerListHeader(inner) => inner.as_validation_exception_field(path + "/rangeIntegerListHeader"),
        3240  +
            ConstraintViolation::RangeLongListHeader(inner) => inner.as_validation_exception_field(path + "/rangeLongListHeader"),
        3241  +
            ConstraintViolation::LengthStringQuery(inner) => inner.as_validation_exception_field(path + "/lengthStringQuery"),
        3242  +
            ConstraintViolation::RangeByteQuery(inner) => inner.as_validation_exception_field(path + "/rangeByteQuery"),
        3243  +
            ConstraintViolation::RangeShortQuery(inner) => inner.as_validation_exception_field(path + "/rangeShortQuery"),
        3244  +
            ConstraintViolation::RangeIntegerQuery(inner) => inner.as_validation_exception_field(path + "/rangeIntegerQuery"),
        3245  +
            ConstraintViolation::RangeLongQuery(inner) => inner.as_validation_exception_field(path + "/rangeLongQuery"),
        3246  +
            ConstraintViolation::EnumStringQuery(inner) => inner.as_validation_exception_field(path + "/enumStringQuery"),
        3247  +
            ConstraintViolation::LengthStringListQuery(inner) => inner.as_validation_exception_field(path + "/lengthStringListQuery"),
        3248  +
            ConstraintViolation::LengthListPatternStringQuery(inner) => inner.as_validation_exception_field(path + "/lengthListPatternStringQuery"),
        3249  +
            ConstraintViolation::LengthStringSetQuery(inner) => inner.as_validation_exception_field(path + "/lengthStringSetQuery"),
        3250  +
            ConstraintViolation::RangeByteListQuery(inner) => inner.as_validation_exception_field(path + "/rangeByteListQuery"),
        3251  +
            ConstraintViolation::RangeShortListQuery(inner) => inner.as_validation_exception_field(path + "/rangeShortListQuery"),
        3252  +
            ConstraintViolation::RangeIntegerListQuery(inner) => inner.as_validation_exception_field(path + "/rangeIntegerListQuery"),
        3253  +
            ConstraintViolation::RangeLongListQuery(inner) => inner.as_validation_exception_field(path + "/rangeLongListQuery"),
        3254  +
            ConstraintViolation::RangeByteSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeByteSetQuery"),
        3255  +
            ConstraintViolation::RangeShortSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeShortSetQuery"),
        3256  +
            ConstraintViolation::RangeIntegerSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeIntegerSetQuery"),
        3257  +
            ConstraintViolation::RangeLongSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeLongSetQuery"),
        3258  +
            ConstraintViolation::EnumStringListQuery(inner) => inner.as_validation_exception_field(path + "/enumStringListQuery"),
        3259  +
        }
 3260   3260   
        }
 3261   3261   
    }
 3262   3262   
    impl ::std::convert::From<ConstraintViolation>
 3263   3263   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
 3264   3264   
    {
 3265   3265   
        fn from(constraint_violation: ConstraintViolation) -> Self {
 3266   3266   
            let first_validation_exception_field =
 3267   3267   
                constraint_violation.as_validation_exception_field("".to_owned());
 3268   3268   
            let validation_exception = crate::error::ValidationException {
 3269   3269   
                message: format!(

tmp-codegen-diff/codegen-server-test/constraints/rust-server-codegen/src/model.rs

@@ -5197,5197 +5262,5262 @@
 5217   5217   
            }
 5218   5218   
        }
 5219   5219   
    }
 5220   5220   
    impl ::std::error::Error for ConstraintViolation {}
 5221   5221   
    impl ConstraintViolation {
 5222   5222   
        pub(crate) fn as_validation_exception_field(
 5223   5223   
            self,
 5224   5224   
            path: ::std::string::String,
 5225   5225   
        ) -> crate::model::ValidationExceptionField {
 5226   5226   
            match self {
 5227         -
        ConstraintViolation::MissingRecursiveMember => crate::model::ValidationExceptionField {
 5228         -
                                        message: format!("Value at '{}/recursiveMember' failed to satisfy constraint: Member must not be null", path),
 5229         -
                                        path: path + "/recursiveMember",
 5230         -
                                    },
 5231         -
        ConstraintViolation::RecursiveMember(inner) => inner.as_validation_exception_field(path + "/recursiveMember"),
 5232         -
    }
        5227  +
            ConstraintViolation::MissingRecursiveMember => crate::model::ValidationExceptionField {
        5228  +
                                                message: format!("Value at '{}/recursiveMember' failed to satisfy constraint: Member must not be null", path),
        5229  +
                                                path: path + "/recursiveMember",
        5230  +
                                            },
        5231  +
            ConstraintViolation::RecursiveMember(inner) => inner.as_validation_exception_field(path + "/recursiveMember"),
        5232  +
        }
 5233   5233   
        }
 5234   5234   
    }
 5235   5235   
    impl ::std::convert::From<Builder>
 5236   5236   
        for crate::constrained::MaybeConstrained<crate::model::RecursiveShapesInputOutputNested1>
 5237   5237   
    {
 5238   5238   
        fn from(builder: Builder) -> Self {
 5239   5239   
            Self::Unconstrained(builder)
 5240   5240   
        }
 5241   5241   
    }
 5242   5242   
    impl ::std::convert::TryFrom<Builder> for crate::model::RecursiveShapesInputOutputNested1 {

tmp-codegen-diff/codegen-server-test/constraints_without_public_constrained_types/rust-server-codegen/src/input.rs

@@ -837,837 +901,901 @@
  857    857   
            }
  858    858   
        }
  859    859   
    }
  860    860   
    impl ::std::error::Error for ConstraintViolation {}
  861    861   
    impl ConstraintViolation {
  862    862   
        pub(crate) fn as_validation_exception_field(
  863    863   
            self,
  864    864   
            path: ::std::string::String,
  865    865   
        ) -> crate::model::ValidationExceptionField {
  866    866   
            match self {
  867         -
        ConstraintViolation::MissingEvents => crate::model::ValidationExceptionField {
  868         -
                                        message: format!("Value at '{}/events' failed to satisfy constraint: Member must not be null", path),
  869         -
                                        path: path + "/events",
  870         -
                                    },
  871         -
    }
         867  +
            ConstraintViolation::MissingEvents => crate::model::ValidationExceptionField {
         868  +
                                                message: format!("Value at '{}/events' failed to satisfy constraint: Member must not be null", path),
         869  +
                                                path: path + "/events",
         870  +
                                            },
         871  +
        }
  872    872   
        }
  873    873   
    }
  874    874   
    impl ::std::convert::From<ConstraintViolation>
  875    875   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
  876    876   
    {
  877    877   
        fn from(constraint_violation: ConstraintViolation) -> Self {
  878    878   
            let first_validation_exception_field =
  879    879   
                constraint_violation.as_validation_exception_field("".to_owned());
  880    880   
            let validation_exception = crate::error::ValidationException {
  881    881   
                message: format!(
@@ -3176,3176 +3242,3242 @@
 3196   3196   
            }
 3197   3197   
        }
 3198   3198   
    }
 3199   3199   
    impl ::std::error::Error for ConstraintViolation {}
 3200   3200   
    impl ConstraintViolation {
 3201   3201   
        pub(crate) fn as_validation_exception_field(
 3202   3202   
            self,
 3203   3203   
            path: ::std::string::String,
 3204   3204   
        ) -> crate::model::ValidationExceptionField {
 3205   3205   
            match self {
 3206         -
        ConstraintViolation::Nested(inner) => inner.as_validation_exception_field(path + "/nested"),
 3207         -
        ConstraintViolation::MissingRecursiveList => crate::model::ValidationExceptionField {
 3208         -
                                        message: format!("Value at '{}/recursiveList' failed to satisfy constraint: Member must not be null", path),
 3209         -
                                        path: path + "/recursiveList",
 3210         -
                                    },
 3211         -
        ConstraintViolation::RecursiveList(inner) => inner.as_validation_exception_field(path + "/recursiveList"),
 3212         -
    }
        3206  +
            ConstraintViolation::Nested(inner) => inner.as_validation_exception_field(path + "/nested"),
        3207  +
            ConstraintViolation::MissingRecursiveList => crate::model::ValidationExceptionField {
        3208  +
                                                message: format!("Value at '{}/recursiveList' failed to satisfy constraint: Member must not be null", path),
        3209  +
                                                path: path + "/recursiveList",
        3210  +
                                            },
        3211  +
            ConstraintViolation::RecursiveList(inner) => inner.as_validation_exception_field(path + "/recursiveList"),
        3212  +
        }
 3213   3213   
        }
 3214   3214   
    }
 3215   3215   
    impl ::std::convert::From<ConstraintViolation>
 3216   3216   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
 3217   3217   
    {
 3218   3218   
        fn from(constraint_violation: ConstraintViolation) -> Self {
 3219   3219   
            let first_validation_exception_field =
 3220   3220   
                constraint_violation.as_validation_exception_field("".to_owned());
 3221   3221   
            let validation_exception = crate::error::ValidationException {
 3222   3222   
                message: format!(
@@ -3403,3403 +3468,3468 @@
 3423   3423   
            }
 3424   3424   
        }
 3425   3425   
    }
 3426   3426   
    impl ::std::error::Error for ConstraintViolation {}
 3427   3427   
    impl ConstraintViolation {
 3428   3428   
        pub(crate) fn as_validation_exception_field(
 3429   3429   
            self,
 3430   3430   
            path: ::std::string::String,
 3431   3431   
        ) -> crate::model::ValidationExceptionField {
 3432   3432   
            match self {
 3433         -
        ConstraintViolation::MissingHttpPayloadBoundConstrainedShape => crate::model::ValidationExceptionField {
 3434         -
                                        message: format!("Value at '{}/httpPayloadBoundConstrainedShape' failed to satisfy constraint: Member must not be null", path),
 3435         -
                                        path: path + "/httpPayloadBoundConstrainedShape",
 3436         -
                                    },
 3437         -
        ConstraintViolation::HttpPayloadBoundConstrainedShape(inner) => inner.as_validation_exception_field(path + "/httpPayloadBoundConstrainedShape"),
 3438         -
    }
        3433  +
            ConstraintViolation::MissingHttpPayloadBoundConstrainedShape => crate::model::ValidationExceptionField {
        3434  +
                                                message: format!("Value at '{}/httpPayloadBoundConstrainedShape' failed to satisfy constraint: Member must not be null", path),
        3435  +
                                                path: path + "/httpPayloadBoundConstrainedShape",
        3436  +
                                            },
        3437  +
            ConstraintViolation::HttpPayloadBoundConstrainedShape(inner) => inner.as_validation_exception_field(path + "/httpPayloadBoundConstrainedShape"),
        3438  +
        }
 3439   3439   
        }
 3440   3440   
    }
 3441   3441   
    impl ::std::convert::From<ConstraintViolation>
 3442   3442   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
 3443   3443   
    {
 3444   3444   
        fn from(constraint_violation: ConstraintViolation) -> Self {
 3445   3445   
            let first_validation_exception_field =
 3446   3446   
                constraint_violation.as_validation_exception_field("".to_owned());
 3447   3447   
            let validation_exception = crate::error::ValidationException {
 3448   3448   
                message: format!(
@@ -3766,3766 +3880,3880 @@
 3786   3786   
            }
 3787   3787   
        }
 3788   3788   
    }
 3789   3789   
    impl ::std::error::Error for ConstraintViolation {}
 3790   3790   
    impl ConstraintViolation {
 3791   3791   
        pub(crate) fn as_validation_exception_field(
 3792   3792   
            self,
 3793   3793   
            path: ::std::string::String,
 3794   3794   
        ) -> crate::model::ValidationExceptionField {
 3795   3795   
            match self {
 3796         -
        ConstraintViolation::MissingLengthStringLabel => crate::model::ValidationExceptionField {
 3797         -
                                        message: format!("Value at '{}/lengthStringLabel' failed to satisfy constraint: Member must not be null", path),
 3798         -
                                        path: path + "/lengthStringLabel",
 3799         -
                                    },
 3800         -
        ConstraintViolation::LengthStringLabel(inner) => inner.as_validation_exception_field(path + "/lengthStringLabel"),
 3801         -
        ConstraintViolation::RangeIntegerLabel(inner) => inner.as_validation_exception_field(path + "/rangeIntegerLabel"),
 3802         -
        ConstraintViolation::RangeShortLabel(inner) => inner.as_validation_exception_field(path + "/rangeShortLabel"),
 3803         -
        ConstraintViolation::RangeLongLabel(inner) => inner.as_validation_exception_field(path + "/rangeLongLabel"),
 3804         -
        ConstraintViolation::RangeByteLabel(inner) => inner.as_validation_exception_field(path + "/rangeByteLabel"),
 3805         -
        ConstraintViolation::MissingEnumStringLabel => crate::model::ValidationExceptionField {
 3806         -
                                        message: format!("Value at '{}/enumStringLabel' failed to satisfy constraint: Member must not be null", path),
 3807         -
                                        path: path + "/enumStringLabel",
 3808         -
                                    },
 3809         -
        ConstraintViolation::EnumStringLabel(inner) => inner.as_validation_exception_field(path + "/enumStringLabel"),
 3810         -
        ConstraintViolation::MissingLengthStringHeaderMap => crate::model::ValidationExceptionField {
 3811         -
                                        message: format!("Value at '{}/lengthStringHeaderMap' failed to satisfy constraint: Member must not be null", path),
 3812         -
                                        path: path + "/lengthStringHeaderMap",
 3813         -
                                    },
 3814         -
        ConstraintViolation::LengthStringHeaderMap(inner) => inner.as_validation_exception_field(path + "/lengthStringHeaderMap"),
 3815         -
        ConstraintViolation::LengthStringHeader(inner) => inner.as_validation_exception_field(path + "/lengthStringHeader"),
 3816         -
        ConstraintViolation::RangeIntegerHeader(inner) => inner.as_validation_exception_field(path + "/rangeIntegerHeader"),
 3817         -
        ConstraintViolation::RangeShortHeader(inner) => inner.as_validation_exception_field(path + "/rangeShortHeader"),
 3818         -
        ConstraintViolation::RangeLongHeader(inner) => inner.as_validation_exception_field(path + "/rangeLongHeader"),
 3819         -
        ConstraintViolation::RangeByteHeader(inner) => inner.as_validation_exception_field(path + "/rangeByteHeader"),
 3820         -
        ConstraintViolation::LengthStringSetHeader(inner) => inner.as_validation_exception_field(path + "/lengthStringSetHeader"),
 3821         -
        ConstraintViolation::ListLengthStringHeader(inner) => inner.as_validation_exception_field(path + "/listLengthStringHeader"),
 3822         -
        ConstraintViolation::LengthListPatternStringHeader(inner) => inner.as_validation_exception_field(path + "/lengthListPatternStringHeader"),
 3823         -
        ConstraintViolation::LengthSetPatternStringHeader(inner) => inner.as_validation_exception_field(path + "/lengthSetPatternStringHeader"),
 3824         -
        ConstraintViolation::RangeByteSetHeader(inner) => inner.as_validation_exception_field(path + "/rangeByteSetHeader"),
 3825         -
        ConstraintViolation::RangeShortSetHeader(inner) => inner.as_validation_exception_field(path + "/rangeShortSetHeader"),
 3826         -
        ConstraintViolation::RangeIntegerSetHeader(inner) => inner.as_validation_exception_field(path + "/rangeIntegerSetHeader"),
 3827         -
        ConstraintViolation::RangeLongSetHeader(inner) => inner.as_validation_exception_field(path + "/rangeLongSetHeader"),
 3828         -
        ConstraintViolation::RangeByteListHeader(inner) => inner.as_validation_exception_field(path + "/rangeByteListHeader"),
 3829         -
        ConstraintViolation::RangeShortListHeader(inner) => inner.as_validation_exception_field(path + "/rangeShortListHeader"),
 3830         -
        ConstraintViolation::RangeIntegerListHeader(inner) => inner.as_validation_exception_field(path + "/rangeIntegerListHeader"),
 3831         -
        ConstraintViolation::RangeLongListHeader(inner) => inner.as_validation_exception_field(path + "/rangeLongListHeader"),
 3832         -
        ConstraintViolation::LengthStringQuery(inner) => inner.as_validation_exception_field(path + "/lengthStringQuery"),
 3833         -
        ConstraintViolation::RangeByteQuery(inner) => inner.as_validation_exception_field(path + "/rangeByteQuery"),
 3834         -
        ConstraintViolation::RangeShortQuery(inner) => inner.as_validation_exception_field(path + "/rangeShortQuery"),
 3835         -
        ConstraintViolation::RangeIntegerQuery(inner) => inner.as_validation_exception_field(path + "/rangeIntegerQuery"),
 3836         -
        ConstraintViolation::RangeLongQuery(inner) => inner.as_validation_exception_field(path + "/rangeLongQuery"),
 3837         -
        ConstraintViolation::EnumStringQuery(inner) => inner.as_validation_exception_field(path + "/enumStringQuery"),
 3838         -
        ConstraintViolation::LengthStringListQuery(inner) => inner.as_validation_exception_field(path + "/lengthStringListQuery"),
 3839         -
        ConstraintViolation::LengthListPatternStringQuery(inner) => inner.as_validation_exception_field(path + "/lengthListPatternStringQuery"),
 3840         -
        ConstraintViolation::LengthStringSetQuery(inner) => inner.as_validation_exception_field(path + "/lengthStringSetQuery"),
 3841         -
        ConstraintViolation::RangeByteListQuery(inner) => inner.as_validation_exception_field(path + "/rangeByteListQuery"),
 3842         -
        ConstraintViolation::RangeShortListQuery(inner) => inner.as_validation_exception_field(path + "/rangeShortListQuery"),
 3843         -
        ConstraintViolation::RangeIntegerListQuery(inner) => inner.as_validation_exception_field(path + "/rangeIntegerListQuery"),
 3844         -
        ConstraintViolation::RangeLongListQuery(inner) => inner.as_validation_exception_field(path + "/rangeLongListQuery"),
 3845         -
        ConstraintViolation::RangeByteSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeByteSetQuery"),
 3846         -
        ConstraintViolation::RangeShortSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeShortSetQuery"),
 3847         -
        ConstraintViolation::RangeIntegerSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeIntegerSetQuery"),
 3848         -
        ConstraintViolation::RangeLongSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeLongSetQuery"),
 3849         -
        ConstraintViolation::EnumStringListQuery(inner) => inner.as_validation_exception_field(path + "/enumStringListQuery"),
 3850         -
    }
        3796  +
            ConstraintViolation::MissingLengthStringLabel => crate::model::ValidationExceptionField {
        3797  +
                                                message: format!("Value at '{}/lengthStringLabel' failed to satisfy constraint: Member must not be null", path),
        3798  +
                                                path: path + "/lengthStringLabel",
        3799  +
                                            },
        3800  +
            ConstraintViolation::LengthStringLabel(inner) => inner.as_validation_exception_field(path + "/lengthStringLabel"),
        3801  +
            ConstraintViolation::RangeIntegerLabel(inner) => inner.as_validation_exception_field(path + "/rangeIntegerLabel"),
        3802  +
            ConstraintViolation::RangeShortLabel(inner) => inner.as_validation_exception_field(path + "/rangeShortLabel"),
        3803  +
            ConstraintViolation::RangeLongLabel(inner) => inner.as_validation_exception_field(path + "/rangeLongLabel"),
        3804  +
            ConstraintViolation::RangeByteLabel(inner) => inner.as_validation_exception_field(path + "/rangeByteLabel"),
        3805  +
            ConstraintViolation::MissingEnumStringLabel => crate::model::ValidationExceptionField {
        3806  +
                                                message: format!("Value at '{}/enumStringLabel' failed to satisfy constraint: Member must not be null", path),
        3807  +
                                                path: path + "/enumStringLabel",
        3808  +
                                            },
        3809  +
            ConstraintViolation::EnumStringLabel(inner) => inner.as_validation_exception_field(path + "/enumStringLabel"),
        3810  +
            ConstraintViolation::MissingLengthStringHeaderMap => crate::model::ValidationExceptionField {
        3811  +
                                                message: format!("Value at '{}/lengthStringHeaderMap' failed to satisfy constraint: Member must not be null", path),
        3812  +
                                                path: path + "/lengthStringHeaderMap",
        3813  +
                                            },
        3814  +
            ConstraintViolation::LengthStringHeaderMap(inner) => inner.as_validation_exception_field(path + "/lengthStringHeaderMap"),
        3815  +
            ConstraintViolation::LengthStringHeader(inner) => inner.as_validation_exception_field(path + "/lengthStringHeader"),
        3816  +
            ConstraintViolation::RangeIntegerHeader(inner) => inner.as_validation_exception_field(path + "/rangeIntegerHeader"),
        3817  +
            ConstraintViolation::RangeShortHeader(inner) => inner.as_validation_exception_field(path + "/rangeShortHeader"),
        3818  +
            ConstraintViolation::RangeLongHeader(inner) => inner.as_validation_exception_field(path + "/rangeLongHeader"),
        3819  +
            ConstraintViolation::RangeByteHeader(inner) => inner.as_validation_exception_field(path + "/rangeByteHeader"),
        3820  +
            ConstraintViolation::LengthStringSetHeader(inner) => inner.as_validation_exception_field(path + "/lengthStringSetHeader"),
        3821  +
            ConstraintViolation::ListLengthStringHeader(inner) => inner.as_validation_exception_field(path + "/listLengthStringHeader"),
        3822  +
            ConstraintViolation::LengthListPatternStringHeader(inner) => inner.as_validation_exception_field(path + "/lengthListPatternStringHeader"),
        3823  +
            ConstraintViolation::LengthSetPatternStringHeader(inner) => inner.as_validation_exception_field(path + "/lengthSetPatternStringHeader"),
        3824  +
            ConstraintViolation::RangeByteSetHeader(inner) => inner.as_validation_exception_field(path + "/rangeByteSetHeader"),
        3825  +
            ConstraintViolation::RangeShortSetHeader(inner) => inner.as_validation_exception_field(path + "/rangeShortSetHeader"),
        3826  +
            ConstraintViolation::RangeIntegerSetHeader(inner) => inner.as_validation_exception_field(path + "/rangeIntegerSetHeader"),
        3827  +
            ConstraintViolation::RangeLongSetHeader(inner) => inner.as_validation_exception_field(path + "/rangeLongSetHeader"),
        3828  +
            ConstraintViolation::RangeByteListHeader(inner) => inner.as_validation_exception_field(path + "/rangeByteListHeader"),
        3829  +
            ConstraintViolation::RangeShortListHeader(inner) => inner.as_validation_exception_field(path + "/rangeShortListHeader"),
        3830  +
            ConstraintViolation::RangeIntegerListHeader(inner) => inner.as_validation_exception_field(path + "/rangeIntegerListHeader"),
        3831  +
            ConstraintViolation::RangeLongListHeader(inner) => inner.as_validation_exception_field(path + "/rangeLongListHeader"),
        3832  +
            ConstraintViolation::LengthStringQuery(inner) => inner.as_validation_exception_field(path + "/lengthStringQuery"),
        3833  +
            ConstraintViolation::RangeByteQuery(inner) => inner.as_validation_exception_field(path + "/rangeByteQuery"),
        3834  +
            ConstraintViolation::RangeShortQuery(inner) => inner.as_validation_exception_field(path + "/rangeShortQuery"),
        3835  +
            ConstraintViolation::RangeIntegerQuery(inner) => inner.as_validation_exception_field(path + "/rangeIntegerQuery"),
        3836  +
            ConstraintViolation::RangeLongQuery(inner) => inner.as_validation_exception_field(path + "/rangeLongQuery"),
        3837  +
            ConstraintViolation::EnumStringQuery(inner) => inner.as_validation_exception_field(path + "/enumStringQuery"),
        3838  +
            ConstraintViolation::LengthStringListQuery(inner) => inner.as_validation_exception_field(path + "/lengthStringListQuery"),
        3839  +
            ConstraintViolation::LengthListPatternStringQuery(inner) => inner.as_validation_exception_field(path + "/lengthListPatternStringQuery"),
        3840  +
            ConstraintViolation::LengthStringSetQuery(inner) => inner.as_validation_exception_field(path + "/lengthStringSetQuery"),
        3841  +
            ConstraintViolation::RangeByteListQuery(inner) => inner.as_validation_exception_field(path + "/rangeByteListQuery"),
        3842  +
            ConstraintViolation::RangeShortListQuery(inner) => inner.as_validation_exception_field(path + "/rangeShortListQuery"),
        3843  +
            ConstraintViolation::RangeIntegerListQuery(inner) => inner.as_validation_exception_field(path + "/rangeIntegerListQuery"),
        3844  +
            ConstraintViolation::RangeLongListQuery(inner) => inner.as_validation_exception_field(path + "/rangeLongListQuery"),
        3845  +
            ConstraintViolation::RangeByteSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeByteSetQuery"),
        3846  +
            ConstraintViolation::RangeShortSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeShortSetQuery"),
        3847  +
            ConstraintViolation::RangeIntegerSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeIntegerSetQuery"),
        3848  +
            ConstraintViolation::RangeLongSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeLongSetQuery"),
        3849  +
            ConstraintViolation::EnumStringListQuery(inner) => inner.as_validation_exception_field(path + "/enumStringListQuery"),
        3850  +
        }
 3851   3851   
        }
 3852   3852   
    }
 3853   3853   
    impl ::std::convert::From<ConstraintViolation>
 3854   3854   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
 3855   3855   
    {
 3856   3856   
        fn from(constraint_violation: ConstraintViolation) -> Self {
 3857   3857   
            let first_validation_exception_field =
 3858   3858   
                constraint_violation.as_validation_exception_field("".to_owned());
 3859   3859   
            let validation_exception = crate::error::ValidationException {
 3860   3860   
                message: format!(

tmp-codegen-diff/codegen-server-test/constraints_without_public_constrained_types/rust-server-codegen/src/model.rs

@@ -5239,5239 +5304,5304 @@
 5259   5259   
            }
 5260   5260   
        }
 5261   5261   
    }
 5262   5262   
    impl ::std::error::Error for ConstraintViolation {}
 5263   5263   
    impl ConstraintViolation {
 5264   5264   
        pub(crate) fn as_validation_exception_field(
 5265   5265   
            self,
 5266   5266   
            path: ::std::string::String,
 5267   5267   
        ) -> crate::model::ValidationExceptionField {
 5268   5268   
            match self {
 5269         -
        ConstraintViolation::MissingRecursiveMember => crate::model::ValidationExceptionField {
 5270         -
                                        message: format!("Value at '{}/recursiveMember' failed to satisfy constraint: Member must not be null", path),
 5271         -
                                        path: path + "/recursiveMember",
 5272         -
                                    },
 5273         -
        ConstraintViolation::RecursiveMember(inner) => inner.as_validation_exception_field(path + "/recursiveMember"),
 5274         -
    }
        5269  +
            ConstraintViolation::MissingRecursiveMember => crate::model::ValidationExceptionField {
        5270  +
                                                message: format!("Value at '{}/recursiveMember' failed to satisfy constraint: Member must not be null", path),
        5271  +
                                                path: path + "/recursiveMember",
        5272  +
                                            },
        5273  +
            ConstraintViolation::RecursiveMember(inner) => inner.as_validation_exception_field(path + "/recursiveMember"),
        5274  +
        }
 5275   5275   
        }
 5276   5276   
    }
 5277   5277   
    impl ::std::convert::From<Builder>
 5278   5278   
        for crate::constrained::MaybeConstrained<crate::model::RecursiveShapesInputOutputNested1>
 5279   5279   
    {
 5280   5280   
        fn from(builder: Builder) -> Self {
 5281   5281   
            Self::Unconstrained(builder)
 5282   5282   
        }
 5283   5283   
    }
 5284   5284   
    impl ::std::convert::TryFrom<Builder> for crate::model::RecursiveShapesInputOutputNested1 {

tmp-codegen-diff/codegen-server-test/ebs/rust-server-codegen/src/input.rs

@@ -401,401 +472,472 @@
  421    421   
            }
  422    422   
        }
  423    423   
    }
  424    424   
    impl ::std::error::Error for ConstraintViolation {}
  425    425   
    impl ConstraintViolation {
  426    426   
        pub(crate) fn as_validation_exception_field(
  427    427   
            self,
  428    428   
            path: ::std::string::String,
  429    429   
        ) -> crate::model::ValidationExceptionField {
  430    430   
            match self {
  431         -
        ConstraintViolation::Timeout(inner) => inner.as_validation_exception_field(path + "/Timeout"),
  432         -
        ConstraintViolation::ClientToken(inner) => inner.as_validation_exception_field(path + "/ClientToken"),
  433         -
        ConstraintViolation::MissingVolumeSize => crate::model::ValidationExceptionField {
  434         -
                                        message: format!("Value at '{}/VolumeSize' failed to satisfy constraint: Member must not be null", path),
  435         -
                                        path: path + "/VolumeSize",
  436         -
                                    },
  437         -
        ConstraintViolation::VolumeSize(inner) => inner.as_validation_exception_field(path + "/VolumeSize"),
  438         -
        ConstraintViolation::Tags(inner) => inner.as_validation_exception_field(path + "/Tags"),
  439         -
        ConstraintViolation::KmsKeyArn(inner) => inner.as_validation_exception_field(path + "/KmsKeyArn"),
  440         -
        ConstraintViolation::ParentSnapshotId(inner) => inner.as_validation_exception_field(path + "/ParentSnapshotId"),
  441         -
        ConstraintViolation::Description(inner) => inner.as_validation_exception_field(path + "/Description"),
  442         -
    }
         431  +
            ConstraintViolation::Timeout(inner) => inner.as_validation_exception_field(path + "/Timeout"),
         432  +
            ConstraintViolation::ClientToken(inner) => inner.as_validation_exception_field(path + "/ClientToken"),
         433  +
            ConstraintViolation::MissingVolumeSize => crate::model::ValidationExceptionField {
         434  +
                                                message: format!("Value at '{}/VolumeSize' failed to satisfy constraint: Member must not be null", path),
         435  +
                                                path: path + "/VolumeSize",
         436  +
                                            },
         437  +
            ConstraintViolation::VolumeSize(inner) => inner.as_validation_exception_field(path + "/VolumeSize"),
         438  +
            ConstraintViolation::Tags(inner) => inner.as_validation_exception_field(path + "/Tags"),
         439  +
            ConstraintViolation::KmsKeyArn(inner) => inner.as_validation_exception_field(path + "/KmsKeyArn"),
         440  +
            ConstraintViolation::ParentSnapshotId(inner) => inner.as_validation_exception_field(path + "/ParentSnapshotId"),
         441  +
            ConstraintViolation::Description(inner) => inner.as_validation_exception_field(path + "/Description"),
         442  +
        }
  443    443   
        }
  444    444   
    }
  445    445   
    impl ::std::convert::From<ConstraintViolation>
  446    446   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
  447    447   
    {
  448    448   
        fn from(constraint_violation: ConstraintViolation) -> Self {
  449    449   
            let first_validation_exception_field =
  450    450   
                constraint_violation.as_validation_exception_field("".to_owned());
  451    451   
            let validation_exception = crate::error::ValidationException {
  452    452   
                message: format!(
@@ -814,814 +903,903 @@
  834    834   
            }
  835    835   
        }
  836    836   
    }
  837    837   
    impl ::std::error::Error for ConstraintViolation {}
  838    838   
    impl ConstraintViolation {
  839    839   
        pub(crate) fn as_validation_exception_field(
  840    840   
            self,
  841    841   
            path: ::std::string::String,
  842    842   
        ) -> crate::model::ValidationExceptionField {
  843    843   
            match self {
  844         -
        ConstraintViolation::MissingSnapshotId => crate::model::ValidationExceptionField {
  845         -
                                        message: format!("Value at '{}/SnapshotId' failed to satisfy constraint: Member must not be null", path),
  846         -
                                        path: path + "/SnapshotId",
  847         -
                                    },
  848         -
        ConstraintViolation::SnapshotId(inner) => inner.as_validation_exception_field(path + "/SnapshotId"),
  849         -
        ConstraintViolation::MissingBlockIndex => crate::model::ValidationExceptionField {
  850         -
                                        message: format!("Value at '{}/BlockIndex' failed to satisfy constraint: Member must not be null", path),
  851         -
                                        path: path + "/BlockIndex",
  852         -
                                    },
  853         -
        ConstraintViolation::BlockIndex(inner) => inner.as_validation_exception_field(path + "/BlockIndex"),
  854         -
        ConstraintViolation::MissingChecksum => crate::model::ValidationExceptionField {
  855         -
                                        message: format!("Value at '{}/Checksum' failed to satisfy constraint: Member must not be null", path),
  856         -
                                        path: path + "/Checksum",
  857         -
                                    },
  858         -
        ConstraintViolation::Checksum(inner) => inner.as_validation_exception_field(path + "/Checksum"),
  859         -
        ConstraintViolation::Progress(inner) => inner.as_validation_exception_field(path + "/Progress"),
  860         -
        ConstraintViolation::MissingBlockData => crate::model::ValidationExceptionField {
  861         -
                                        message: format!("Value at '{}/BlockData' failed to satisfy constraint: Member must not be null", path),
  862         -
                                        path: path + "/BlockData",
  863         -
                                    },
  864         -
        ConstraintViolation::MissingDataLength => crate::model::ValidationExceptionField {
  865         -
                                        message: format!("Value at '{}/DataLength' failed to satisfy constraint: Member must not be null", path),
  866         -
                                        path: path + "/DataLength",
  867         -
                                    },
  868         -
        ConstraintViolation::MissingChecksumAlgorithm => crate::model::ValidationExceptionField {
  869         -
                                        message: format!("Value at '{}/ChecksumAlgorithm' failed to satisfy constraint: Member must not be null", path),
  870         -
                                        path: path + "/ChecksumAlgorithm",
  871         -
                                    },
  872         -
        ConstraintViolation::ChecksumAlgorithm(inner) => inner.as_validation_exception_field(path + "/ChecksumAlgorithm"),
  873         -
    }
         844  +
            ConstraintViolation::MissingSnapshotId => crate::model::ValidationExceptionField {
         845  +
                                                message: format!("Value at '{}/SnapshotId' failed to satisfy constraint: Member must not be null", path),
         846  +
                                                path: path + "/SnapshotId",
         847  +
                                            },
         848  +
            ConstraintViolation::SnapshotId(inner) => inner.as_validation_exception_field(path + "/SnapshotId"),
         849  +
            ConstraintViolation::MissingBlockIndex => crate::model::ValidationExceptionField {
         850  +
                                                message: format!("Value at '{}/BlockIndex' failed to satisfy constraint: Member must not be null", path),
         851  +
                                                path: path + "/BlockIndex",
         852  +
                                            },
         853  +
            ConstraintViolation::BlockIndex(inner) => inner.as_validation_exception_field(path + "/BlockIndex"),
         854  +
            ConstraintViolation::MissingChecksum => crate::model::ValidationExceptionField {
         855  +
                                                message: format!("Value at '{}/Checksum' failed to satisfy constraint: Member must not be null", path),
         856  +
                                                path: path + "/Checksum",
         857  +
                                            },
         858  +
            ConstraintViolation::Checksum(inner) => inner.as_validation_exception_field(path + "/Checksum"),
         859  +
            ConstraintViolation::Progress(inner) => inner.as_validation_exception_field(path + "/Progress"),
         860  +
            ConstraintViolation::MissingBlockData => crate::model::ValidationExceptionField {
         861  +
                                                message: format!("Value at '{}/BlockData' failed to satisfy constraint: Member must not be null", path),
         862  +
                                                path: path + "/BlockData",
         863  +
                                            },
         864  +
            ConstraintViolation::MissingDataLength => crate::model::ValidationExceptionField {
         865  +
                                                message: format!("Value at '{}/DataLength' failed to satisfy constraint: Member must not be null", path),
         866  +
                                                path: path + "/DataLength",
         867  +
                                            },
         868  +
            ConstraintViolation::MissingChecksumAlgorithm => crate::model::ValidationExceptionField {
         869  +
                                                message: format!("Value at '{}/ChecksumAlgorithm' failed to satisfy constraint: Member must not be null", path),
         870  +
                                                path: path + "/ChecksumAlgorithm",
         871  +
                                            },
         872  +
            ConstraintViolation::ChecksumAlgorithm(inner) => inner.as_validation_exception_field(path + "/ChecksumAlgorithm"),
         873  +
        }
  874    874   
        }
  875    875   
    }
  876    876   
    impl ::std::convert::From<ConstraintViolation>
  877    877   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
  878    878   
    {
  879    879   
        fn from(constraint_violation: ConstraintViolation) -> Self {
  880    880   
            let first_validation_exception_field =
  881    881   
                constraint_violation.as_validation_exception_field("".to_owned());
  882    882   
            let validation_exception = crate::error::ValidationException {
  883    883   
                message: format!(
@@ -1124,1124 +1192,1192 @@
 1144   1144   
            }
 1145   1145   
        }
 1146   1146   
    }
 1147   1147   
    impl ::std::error::Error for ConstraintViolation {}
 1148   1148   
    impl ConstraintViolation {
 1149   1149   
        pub(crate) fn as_validation_exception_field(
 1150   1150   
            self,
 1151   1151   
            path: ::std::string::String,
 1152   1152   
        ) -> crate::model::ValidationExceptionField {
 1153   1153   
            match self {
 1154         -
        ConstraintViolation::MaxResults(inner) => inner.as_validation_exception_field(path + "/MaxResults"),
 1155         -
        ConstraintViolation::StartingBlockIndex(inner) => inner.as_validation_exception_field(path + "/StartingBlockIndex"),
 1156         -
        ConstraintViolation::NextToken(inner) => inner.as_validation_exception_field(path + "/NextToken"),
 1157         -
        ConstraintViolation::MissingSnapshotId => crate::model::ValidationExceptionField {
 1158         -
                                        message: format!("Value at '{}/SnapshotId' failed to satisfy constraint: Member must not be null", path),
 1159         -
                                        path: path + "/SnapshotId",
 1160         -
                                    },
 1161         -
        ConstraintViolation::SnapshotId(inner) => inner.as_validation_exception_field(path + "/SnapshotId"),
 1162         -
    }
        1154  +
            ConstraintViolation::MaxResults(inner) => inner.as_validation_exception_field(path + "/MaxResults"),
        1155  +
            ConstraintViolation::StartingBlockIndex(inner) => inner.as_validation_exception_field(path + "/StartingBlockIndex"),
        1156  +
            ConstraintViolation::NextToken(inner) => inner.as_validation_exception_field(path + "/NextToken"),
        1157  +
            ConstraintViolation::MissingSnapshotId => crate::model::ValidationExceptionField {
        1158  +
                                                message: format!("Value at '{}/SnapshotId' failed to satisfy constraint: Member must not be null", path),
        1159  +
                                                path: path + "/SnapshotId",
        1160  +
                                            },
        1161  +
            ConstraintViolation::SnapshotId(inner) => inner.as_validation_exception_field(path + "/SnapshotId"),
        1162  +
        }
 1163   1163   
        }
 1164   1164   
    }
 1165   1165   
    impl ::std::convert::From<ConstraintViolation>
 1166   1166   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
 1167   1167   
    {
 1168   1168   
        fn from(constraint_violation: ConstraintViolation) -> Self {
 1169   1169   
            let first_validation_exception_field =
 1170   1170   
                constraint_violation.as_validation_exception_field("".to_owned());
 1171   1171   
            let validation_exception = crate::error::ValidationException {
 1172   1172   
                message: format!(
@@ -1355,1355 +1424,1424 @@
 1375   1375   
            }
 1376   1376   
        }
 1377   1377   
    }
 1378   1378   
    impl ::std::error::Error for ConstraintViolation {}
 1379   1379   
    impl ConstraintViolation {
 1380   1380   
        pub(crate) fn as_validation_exception_field(
 1381   1381   
            self,
 1382   1382   
            path: ::std::string::String,
 1383   1383   
        ) -> crate::model::ValidationExceptionField {
 1384   1384   
            match self {
 1385         -
        ConstraintViolation::MissingSecondSnapshotId => crate::model::ValidationExceptionField {
 1386         -
                                        message: format!("Value at '{}/SecondSnapshotId' failed to satisfy constraint: Member must not be null", path),
 1387         -
                                        path: path + "/SecondSnapshotId",
 1388         -
                                    },
 1389         -
        ConstraintViolation::SecondSnapshotId(inner) => inner.as_validation_exception_field(path + "/SecondSnapshotId"),
 1390         -
        ConstraintViolation::FirstSnapshotId(inner) => inner.as_validation_exception_field(path + "/FirstSnapshotId"),
 1391         -
        ConstraintViolation::NextToken(inner) => inner.as_validation_exception_field(path + "/NextToken"),
 1392         -
        ConstraintViolation::MaxResults(inner) => inner.as_validation_exception_field(path + "/MaxResults"),
 1393         -
        ConstraintViolation::StartingBlockIndex(inner) => inner.as_validation_exception_field(path + "/StartingBlockIndex"),
 1394         -
    }
        1385  +
            ConstraintViolation::MissingSecondSnapshotId => crate::model::ValidationExceptionField {
        1386  +
                                                message: format!("Value at '{}/SecondSnapshotId' failed to satisfy constraint: Member must not be null", path),
        1387  +
                                                path: path + "/SecondSnapshotId",
        1388  +
                                            },
        1389  +
            ConstraintViolation::SecondSnapshotId(inner) => inner.as_validation_exception_field(path + "/SecondSnapshotId"),
        1390  +
            ConstraintViolation::FirstSnapshotId(inner) => inner.as_validation_exception_field(path + "/FirstSnapshotId"),
        1391  +
            ConstraintViolation::NextToken(inner) => inner.as_validation_exception_field(path + "/NextToken"),
        1392  +
            ConstraintViolation::MaxResults(inner) => inner.as_validation_exception_field(path + "/MaxResults"),
        1393  +
            ConstraintViolation::StartingBlockIndex(inner) => inner.as_validation_exception_field(path + "/StartingBlockIndex"),
        1394  +
        }
 1395   1395   
        }
 1396   1396   
    }
 1397   1397   
    impl ::std::convert::From<ConstraintViolation>
 1398   1398   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
 1399   1399   
    {
 1400   1400   
        fn from(constraint_violation: ConstraintViolation) -> Self {
 1401   1401   
            let first_validation_exception_field =
 1402   1402   
                constraint_violation.as_validation_exception_field("".to_owned());
 1403   1403   
            let validation_exception = crate::error::ValidationException {
 1404   1404   
                message: format!(
@@ -1629,1629 +1704,1704 @@
 1649   1649   
            }
 1650   1650   
        }
 1651   1651   
    }
 1652   1652   
    impl ::std::error::Error for ConstraintViolation {}
 1653   1653   
    impl ConstraintViolation {
 1654   1654   
        pub(crate) fn as_validation_exception_field(
 1655   1655   
            self,
 1656   1656   
            path: ::std::string::String,
 1657   1657   
        ) -> crate::model::ValidationExceptionField {
 1658   1658   
            match self {
 1659         -
        ConstraintViolation::MissingSnapshotId => crate::model::ValidationExceptionField {
 1660         -
                                        message: format!("Value at '{}/SnapshotId' failed to satisfy constraint: Member must not be null", path),
 1661         -
                                        path: path + "/SnapshotId",
 1662         -
                                    },
 1663         -
        ConstraintViolation::SnapshotId(inner) => inner.as_validation_exception_field(path + "/SnapshotId"),
 1664         -
        ConstraintViolation::MissingBlockToken => crate::model::ValidationExceptionField {
 1665         -
                                        message: format!("Value at '{}/BlockToken' failed to satisfy constraint: Member must not be null", path),
 1666         -
                                        path: path + "/BlockToken",
 1667         -
                                    },
 1668         -
        ConstraintViolation::BlockToken(inner) => inner.as_validation_exception_field(path + "/BlockToken"),
 1669         -
        ConstraintViolation::MissingBlockIndex => crate::model::ValidationExceptionField {
 1670         -
                                        message: format!("Value at '{}/BlockIndex' failed to satisfy constraint: Member must not be null", path),
 1671         -
                                        path: path + "/BlockIndex",
 1672         -
                                    },
 1673         -
        ConstraintViolation::BlockIndex(inner) => inner.as_validation_exception_field(path + "/BlockIndex"),
 1674         -
    }
        1659  +
            ConstraintViolation::MissingSnapshotId => crate::model::ValidationExceptionField {
        1660  +
                                                message: format!("Value at '{}/SnapshotId' failed to satisfy constraint: Member must not be null", path),
        1661  +
                                                path: path + "/SnapshotId",
        1662  +
                                            },
        1663  +
            ConstraintViolation::SnapshotId(inner) => inner.as_validation_exception_field(path + "/SnapshotId"),
        1664  +
            ConstraintViolation::MissingBlockToken => crate::model::ValidationExceptionField {
        1665  +
                                                message: format!("Value at '{}/BlockToken' failed to satisfy constraint: Member must not be null", path),
        1666  +
                                                path: path + "/BlockToken",
        1667  +
                                            },
        1668  +
            ConstraintViolation::BlockToken(inner) => inner.as_validation_exception_field(path + "/BlockToken"),
        1669  +
            ConstraintViolation::MissingBlockIndex => crate::model::ValidationExceptionField {
        1670  +
                                                message: format!("Value at '{}/BlockIndex' failed to satisfy constraint: Member must not be null", path),
        1671  +
                                                path: path + "/BlockIndex",
        1672  +
                                            },
        1673  +
            ConstraintViolation::BlockIndex(inner) => inner.as_validation_exception_field(path + "/BlockIndex"),
        1674  +
        }
 1675   1675   
        }
 1676   1676   
    }
 1677   1677   
    impl ::std::convert::From<ConstraintViolation>
 1678   1678   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
 1679   1679   
    {
 1680   1680   
        fn from(constraint_violation: ConstraintViolation) -> Self {
 1681   1681   
            let first_validation_exception_field =
 1682   1682   
                constraint_violation.as_validation_exception_field("".to_owned());
 1683   1683   
            let validation_exception = crate::error::ValidationException {
 1684   1684   
                message: format!(
@@ -1832,1832 +1905,1905 @@
 1852   1852   
            }
 1853   1853   
        }
 1854   1854   
    }
 1855   1855   
    impl ::std::error::Error for ConstraintViolation {}
 1856   1856   
    impl ConstraintViolation {
 1857   1857   
        pub(crate) fn as_validation_exception_field(
 1858   1858   
            self,
 1859   1859   
            path: ::std::string::String,
 1860   1860   
        ) -> crate::model::ValidationExceptionField {
 1861   1861   
            match self {
 1862         -
        ConstraintViolation::MissingChangedBlocksCount => crate::model::ValidationExceptionField {
 1863         -
                                        message: format!("Value at '{}/ChangedBlocksCount' failed to satisfy constraint: Member must not be null", path),
 1864         -
                                        path: path + "/ChangedBlocksCount",
 1865         -
                                    },
 1866         -
        ConstraintViolation::ChangedBlocksCount(inner) => inner.as_validation_exception_field(path + "/ChangedBlocksCount"),
 1867         -
        ConstraintViolation::ChecksumAggregationMethod(inner) => inner.as_validation_exception_field(path + "/ChecksumAggregationMethod"),
 1868         -
        ConstraintViolation::ChecksumAlgorithm(inner) => inner.as_validation_exception_field(path + "/ChecksumAlgorithm"),
 1869         -
        ConstraintViolation::MissingSnapshotId => crate::model::ValidationExceptionField {
 1870         -
                                        message: format!("Value at '{}/SnapshotId' failed to satisfy constraint: Member must not be null", path),
 1871         -
                                        path: path + "/SnapshotId",
 1872         -
                                    },
 1873         -
        ConstraintViolation::SnapshotId(inner) => inner.as_validation_exception_field(path + "/SnapshotId"),
 1874         -
        ConstraintViolation::Checksum(inner) => inner.as_validation_exception_field(path + "/Checksum"),
 1875         -
    }
        1862  +
            ConstraintViolation::MissingChangedBlocksCount => crate::model::ValidationExceptionField {
        1863  +
                                                message: format!("Value at '{}/ChangedBlocksCount' failed to satisfy constraint: Member must not be null", path),
        1864  +
                                                path: path + "/ChangedBlocksCount",
        1865  +
                                            },
        1866  +
            ConstraintViolation::ChangedBlocksCount(inner) => inner.as_validation_exception_field(path + "/ChangedBlocksCount"),
        1867  +
            ConstraintViolation::ChecksumAggregationMethod(inner) => inner.as_validation_exception_field(path + "/ChecksumAggregationMethod"),
        1868  +
            ConstraintViolation::ChecksumAlgorithm(inner) => inner.as_validation_exception_field(path + "/ChecksumAlgorithm"),
        1869  +
            ConstraintViolation::MissingSnapshotId => crate::model::ValidationExceptionField {
        1870  +
                                                message: format!("Value at '{}/SnapshotId' failed to satisfy constraint: Member must not be null", path),
        1871  +
                                                path: path + "/SnapshotId",
        1872  +
                                            },
        1873  +
            ConstraintViolation::SnapshotId(inner) => inner.as_validation_exception_field(path + "/SnapshotId"),
        1874  +
            ConstraintViolation::Checksum(inner) => inner.as_validation_exception_field(path + "/Checksum"),
        1875  +
        }
 1876   1876   
        }
 1877   1877   
    }
 1878   1878   
    impl ::std::convert::From<ConstraintViolation>
 1879   1879   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
 1880   1880   
    {
 1881   1881   
        fn from(constraint_violation: ConstraintViolation) -> Self {
 1882   1882   
            let first_validation_exception_field =
 1883   1883   
                constraint_violation.as_validation_exception_field("".to_owned());
 1884   1884   
            let validation_exception = crate::error::ValidationException {
 1885   1885   
                message: format!(

tmp-codegen-diff/codegen-server-test/json_rpc10/rust-server-codegen/src/input.rs

@@ -285,285 +350,350 @@
  305    305   
            }
  306    306   
        }
  307    307   
    }
  308    308   
    impl ::std::error::Error for ConstraintViolation {}
  309    309   
    impl ConstraintViolation {
  310    310   
        pub(crate) fn as_validation_exception_field(
  311    311   
            self,
  312    312   
            path: ::std::string::String,
  313    313   
        ) -> crate::model::ValidationExceptionField {
  314    314   
            match self {
  315         -
        ConstraintViolation::MissingTopLevel => crate::model::ValidationExceptionField {
  316         -
                                        message: format!("Value at '{}/topLevel' failed to satisfy constraint: Member must not be null", path),
  317         -
                                        path: path + "/topLevel",
  318         -
                                    },
  319         -
        ConstraintViolation::TopLevel(inner) => inner.as_validation_exception_field(path + "/topLevel"),
  320         -
    }
         315  +
            ConstraintViolation::MissingTopLevel => crate::model::ValidationExceptionField {
         316  +
                                                message: format!("Value at '{}/topLevel' failed to satisfy constraint: Member must not be null", path),
         317  +
                                                path: path + "/topLevel",
         318  +
                                            },
         319  +
            ConstraintViolation::TopLevel(inner) => inner.as_validation_exception_field(path + "/topLevel"),
         320  +
        }
  321    321   
        }
  322    322   
    }
  323    323   
    impl ::std::convert::From<ConstraintViolation>
  324    324   
        for ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection
  325    325   
    {
  326    326   
        fn from(constraint_violation: ConstraintViolation) -> Self {
  327    327   
            let first_validation_exception_field =
  328    328   
                constraint_violation.as_validation_exception_field("".to_owned());
  329    329   
            let validation_exception = crate::error::ValidationException {
  330    330   
                message: format!(

tmp-codegen-diff/codegen-server-test/json_rpc10/rust-server-codegen/src/model.rs

@@ -956,956 +1020,1020 @@
  976    976   
            }
  977    977   
        }
  978    978   
    }
  979    979   
    impl ::std::error::Error for ConstraintViolation {}
  980    980   
    impl ConstraintViolation {
  981    981   
        pub(crate) fn as_validation_exception_field(
  982    982   
            self,
  983    983   
            path: ::std::string::String,
  984    984   
        ) -> crate::model::ValidationExceptionField {
  985    985   
            match self {
  986         -
        ConstraintViolation::MissingDialog => crate::model::ValidationExceptionField {
  987         -
                                        message: format!("Value at '{}/dialog' failed to satisfy constraint: Member must not be null", path),
  988         -
                                        path: path + "/dialog",
  989         -
                                    },
  990         -
    }
         986  +
            ConstraintViolation::MissingDialog => crate::model::ValidationExceptionField {
         987  +
                                                message: format!("Value at '{}/dialog' failed to satisfy constraint: Member must not be null", path),
         988  +
                                                path: path + "/dialog",
         989  +
                                            },
         990  +
        }
  991    991   
        }
  992    992   
    }
  993    993   
    impl ::std::convert::From<Builder>
  994    994   
        for crate::constrained::MaybeConstrained<crate::model::TopLevel>
  995    995   
    {
  996    996   
        fn from(builder: Builder) -> Self {
  997    997   
            Self::Unconstrained(builder)
  998    998   
        }
  999    999   
    }
 1000   1000   
    impl ::std::convert::TryFrom<Builder> for crate::model::TopLevel {

tmp-codegen-diff/codegen-server-test/misc/rust-server-codegen/src/input.rs

@@ -215,215 +284,284 @@
  235    235   
            }
  236    236   
        }
  237    237   
    }
  238    238   
    impl ::std::error::Error for ConstraintViolation {}
  239    239   
    impl ConstraintViolation {
  240    240   
        pub(crate) fn as_validation_exception_field(
  241    241   
            self,
  242    242   
            path: ::std::string::String,
  243    243   
        ) -> crate::model::ValidationExceptionField {
  244    244   
            match self {
  245         -
        ConstraintViolation::MissingRequiredHeaderList => crate::model::ValidationExceptionField {
  246         -
                                        message: format!("Value at '{}/requiredHeaderList' failed to satisfy constraint: Member must not be null", path),
  247         -
                                        path: path + "/requiredHeaderList",
  248         -
                                    },
  249         -
        ConstraintViolation::MissingRequiredHeaderSet => crate::model::ValidationExceptionField {
  250         -
                                        message: format!("Value at '{}/requiredHeaderSet' failed to satisfy constraint: Member must not be null", path),
  251         -
                                        path: path + "/requiredHeaderSet",
  252         -
                                    },
  253         -
        ConstraintViolation::RequiredHeaderSet(inner) => inner.as_validation_exception_field(path + "/requiredHeaderSet"),
  254         -
    }
         245  +
            ConstraintViolation::MissingRequiredHeaderList => crate::model::ValidationExceptionField {
         246  +
                                                message: format!("Value at '{}/requiredHeaderList' failed to satisfy constraint: Member must not be null", path),
         247  +
                                                path: path + "/requiredHeaderList",
         248  +
                                            },
         249  +
            ConstraintViolation::MissingRequiredHeaderSet => crate::model::ValidationExceptionField {
         250  +
                                                message: format!("Value at '{}/requiredHeaderSet' failed to satisfy constraint: Member must not be null", path),
         251  +
                                                path: path + "/requiredHeaderSet",
         252  +
                                            },
         253  +
            ConstraintViolation::RequiredHeaderSet(inner) => inner.as_validation_exception_field(path + "/requiredHeaderSet"),
         254  +
        }
  255    255   
        }
  256    256   
    }
  257    257   
    impl ::std::convert::From<ConstraintViolation>
  258    258   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
  259    259   
    {
  260    260   
        fn from(constraint_violation: ConstraintViolation) -> Self {
  261    261   
            let first_validation_exception_field =
  262    262   
                constraint_violation.as_validation_exception_field("".to_owned());
  263    263   
            let validation_exception = crate::error::ValidationException {
  264    264   
                message: format!(

tmp-codegen-diff/codegen-server-test/misc/rust-server-codegen/src/model.rs

@@ -416,416 +481,481 @@
  436    436   
            }
  437    437   
        }
  438    438   
    }
  439    439   
    impl ::std::error::Error for ConstraintViolation {}
  440    440   
    impl ConstraintViolation {
  441    441   
        pub(crate) fn as_validation_exception_field(
  442    442   
            self,
  443    443   
            path: ::std::string::String,
  444    444   
        ) -> crate::model::ValidationExceptionField {
  445    445   
            match self {
  446         -
        ConstraintViolation::MissingRequiredInnerMostShape => crate::model::ValidationExceptionField {
  447         -
                                        message: format!("Value at '{}/requiredInnerMostShape' failed to satisfy constraint: Member must not be null", path),
  448         -
                                        path: path + "/requiredInnerMostShape",
  449         -
                                    },
  450         -
        ConstraintViolation::RequiredInnerMostShape(inner) => inner.as_validation_exception_field(path + "/requiredInnerMostShape"),
  451         -
    }
         446  +
            ConstraintViolation::MissingRequiredInnerMostShape => crate::model::ValidationExceptionField {
         447  +
                                                message: format!("Value at '{}/requiredInnerMostShape' failed to satisfy constraint: Member must not be null", path),
         448  +
                                                path: path + "/requiredInnerMostShape",
         449  +
                                            },
         450  +
            ConstraintViolation::RequiredInnerMostShape(inner) => inner.as_validation_exception_field(path + "/requiredInnerMostShape"),
         451  +
        }
  452    452   
        }
  453    453   
    }
  454    454   
    impl ::std::convert::From<Builder>
  455    455   
        for crate::constrained::MaybeConstrained<crate::model::InnerShape>
  456    456   
    {
  457    457   
        fn from(builder: Builder) -> Self {
  458    458   
            Self::Unconstrained(builder)
  459    459   
        }
  460    460   
    }
  461    461   
    impl ::std::convert::TryFrom<Builder> for crate::model::InnerShape {
@@ -555,555 +675,675 @@
  575    575   
            }
  576    576   
        }
  577    577   
    }
  578    578   
    impl ::std::error::Error for ConstraintViolation {}
  579    579   
    impl ConstraintViolation {
  580    580   
        pub(crate) fn as_validation_exception_field(
  581    581   
            self,
  582    582   
            path: ::std::string::String,
  583    583   
        ) -> crate::model::ValidationExceptionField {
  584    584   
            match self {
  585         -
        ConstraintViolation::MissingAString => crate::model::ValidationExceptionField {
  586         -
                                        message: format!("Value at '{}/aString' failed to satisfy constraint: Member must not be null", path),
  587         -
                                        path: path + "/aString",
  588         -
                                    },
  589         -
        ConstraintViolation::MissingABoolean => crate::model::ValidationExceptionField {
  590         -
                                        message: format!("Value at '{}/aBoolean' failed to satisfy constraint: Member must not be null", path),
  591         -
                                        path: path + "/aBoolean",
  592         -
                                    },
  593         -
        ConstraintViolation::MissingAByte => crate::model::ValidationExceptionField {
  594         -
                                        message: format!("Value at '{}/aByte' failed to satisfy constraint: Member must not be null", path),
  595         -
                                        path: path + "/aByte",
  596         -
                                    },
  597         -
        ConstraintViolation::MissingAShort => crate::model::ValidationExceptionField {
  598         -
                                        message: format!("Value at '{}/aShort' failed to satisfy constraint: Member must not be null", path),
  599         -
                                        path: path + "/aShort",
  600         -
                                    },
  601         -
        ConstraintViolation::MissingAnInt => crate::model::ValidationExceptionField {
  602         -
                                        message: format!("Value at '{}/anInt' failed to satisfy constraint: Member must not be null", path),
  603         -
                                        path: path + "/anInt",
  604         -
                                    },
  605         -
        ConstraintViolation::MissingALong => crate::model::ValidationExceptionField {
  606         -
                                        message: format!("Value at '{}/aLong' failed to satisfy constraint: Member must not be null", path),
  607         -
                                        path: path + "/aLong",
  608         -
                                    },
  609         -
        ConstraintViolation::MissingAFloat => crate::model::ValidationExceptionField {
  610         -
                                        message: format!("Value at '{}/aFloat' failed to satisfy constraint: Member must not be null", path),
  611         -
                                        path: path + "/aFloat",
  612         -
                                    },
  613         -
        ConstraintViolation::MissingADouble => crate::model::ValidationExceptionField {
  614         -
                                        message: format!("Value at '{}/aDouble' failed to satisfy constraint: Member must not be null", path),
  615         -
                                        path: path + "/aDouble",
  616         -
                                    },
  617         -
        ConstraintViolation::MissingATimestamp => crate::model::ValidationExceptionField {
  618         -
                                        message: format!("Value at '{}/aTimestamp' failed to satisfy constraint: Member must not be null", path),
  619         -
                                        path: path + "/aTimestamp",
  620         -
                                    },
  621         -
        ConstraintViolation::MissingADocument => crate::model::ValidationExceptionField {
  622         -
                                        message: format!("Value at '{}/aDocument' failed to satisfy constraint: Member must not be null", path),
  623         -
                                        path: path + "/aDocument",
  624         -
                                    },
  625         -
        ConstraintViolation::MissingAStringList => crate::model::ValidationExceptionField {
  626         -
                                        message: format!("Value at '{}/aStringList' failed to satisfy constraint: Member must not be null", path),
  627         -
                                        path: path + "/aStringList",
  628         -
                                    },
  629         -
        ConstraintViolation::MissingAStringMap => crate::model::ValidationExceptionField {
  630         -
                                        message: format!("Value at '{}/aStringMap' failed to satisfy constraint: Member must not be null", path),
  631         -
                                        path: path + "/aStringMap",
  632         -
                                    },
  633         -
        ConstraintViolation::MissingAStringSet => crate::model::ValidationExceptionField {
  634         -
                                        message: format!("Value at '{}/aStringSet' failed to satisfy constraint: Member must not be null", path),
  635         -
                                        path: path + "/aStringSet",
  636         -
                                    },
  637         -
        ConstraintViolation::MissingABlob => crate::model::ValidationExceptionField {
  638         -
                                        message: format!("Value at '{}/aBlob' failed to satisfy constraint: Member must not be null", path),
  639         -
                                        path: path + "/aBlob",
  640         -
                                    },
  641         -
        ConstraintViolation::MissingAUnion => crate::model::ValidationExceptionField {
  642         -
                                        message: format!("Value at '{}/aUnion' failed to satisfy constraint: Member must not be null", path),
  643         -
                                        path: path + "/aUnion",
  644         -
                                    },
  645         -
    }
         585  +
            ConstraintViolation::MissingAString => crate::model::ValidationExceptionField {
         586  +
                                                message: format!("Value at '{}/aString' failed to satisfy constraint: Member must not be null", path),
         587  +
                                                path: path + "/aString",
         588  +
                                            },
         589  +
            ConstraintViolation::MissingABoolean => crate::model::ValidationExceptionField {
         590  +
                                                message: format!("Value at '{}/aBoolean' failed to satisfy constraint: Member must not be null", path),
         591  +
                                                path: path + "/aBoolean",
         592  +
                                            },
         593  +
            ConstraintViolation::MissingAByte => crate::model::ValidationExceptionField {
         594  +
                                                message: format!("Value at '{}/aByte' failed to satisfy constraint: Member must not be null", path),
         595  +
                                                path: path + "/aByte",
         596  +
                                            },
         597  +
            ConstraintViolation::MissingAShort => crate::model::ValidationExceptionField {
         598  +
                                                message: format!("Value at '{}/aShort' failed to satisfy constraint: Member must not be null", path),
         599  +
                                                path: path + "/aShort",
         600  +
                                            },
         601  +
            ConstraintViolation::MissingAnInt => crate::model::ValidationExceptionField {
         602  +
                                                message: format!("Value at '{}/anInt' failed to satisfy constraint: Member must not be null", path),
         603  +
                                                path: path + "/anInt",
         604  +
                                            },
         605  +
            ConstraintViolation::MissingALong => crate::model::ValidationExceptionField {
         606  +
                                                message: format!("Value at '{}/aLong' failed to satisfy constraint: Member must not be null", path),
         607  +
                                                path: path + "/aLong",
         608  +
                                            },
         609  +
            ConstraintViolation::MissingAFloat => crate::model::ValidationExceptionField {
         610  +
                                                message: format!("Value at '{}/aFloat' failed to satisfy constraint: Member must not be null", path),
         611  +
                                                path: path + "/aFloat",
         612  +
                                            },
         613  +
            ConstraintViolation::MissingADouble => crate::model::ValidationExceptionField {
         614  +
                                                message: format!("Value at '{}/aDouble' failed to satisfy constraint: Member must not be null", path),
         615  +
                                                path: path + "/aDouble",
         616  +
                                            },
         617  +
            ConstraintViolation::MissingATimestamp => crate::model::ValidationExceptionField {
         618  +
                                                message: format!("Value at '{}/aTimestamp' failed to satisfy constraint: Member must not be null", path),
         619  +
                                                path: path + "/aTimestamp",
         620  +
                                            },
         621  +
            ConstraintViolation::MissingADocument => crate::model::ValidationExceptionField {
         622  +
                                                message: format!("Value at '{}/aDocument' failed to satisfy constraint: Member must not be null", path),
         623  +
                                                path: path + "/aDocument",
         624  +
                                            },
         625  +
            ConstraintViolation::MissingAStringList => crate::model::ValidationExceptionField {
         626  +
                                                message: format!("Value at '{}/aStringList' failed to satisfy constraint: Member must not be null", path),
         627  +
                                                path: path + "/aStringList",
         628  +
                                            },
         629  +
            ConstraintViolation::MissingAStringMap => crate::model::ValidationExceptionField {
         630  +
                                                message: format!("Value at '{}/aStringMap' failed to satisfy constraint: Member must not be null", path),
         631  +
                                                path: path + "/aStringMap",
         632  +
                                            },
         633  +
            ConstraintViolation::MissingAStringSet => crate::model::ValidationExceptionField {
         634  +
                                                message: format!("Value at '{}/aStringSet' failed to satisfy constraint: Member must not be null", path),
         635  +
                                                path: path + "/aStringSet",
         636  +
                                            },
         637  +
            ConstraintViolation::MissingABlob => crate::model::ValidationExceptionField {
         638  +
                                                message: format!("Value at '{}/aBlob' failed to satisfy constraint: Member must not be null", path),
         639  +
                                                path: path + "/aBlob",
         640  +
                                            },
         641  +
            ConstraintViolation::MissingAUnion => crate::model::ValidationExceptionField {
         642  +
                                                message: format!("Value at '{}/aUnion' failed to satisfy constraint: Member must not be null", path),
         643  +
                                                path: path + "/aUnion",
         644  +
                                            },
         645  +
        }
  646    646   
        }
  647    647   
    }
  648    648   
    impl ::std::convert::From<Builder>
  649    649   
        for crate::constrained::MaybeConstrained<crate::model::InnermostShape>
  650    650   
    {
  651    651   
        fn from(builder: Builder) -> Self {
  652    652   
            Self::Unconstrained(builder)
  653    653   
        }
  654    654   
    }
  655    655   
    impl ::std::convert::TryFrom<Builder> for crate::model::InnermostShape {

tmp-codegen-diff/codegen-server-test/pokemon-service-awsjson-server-sdk/rust-server-codegen/src/input.rs

@@ -94,94 +158,158 @@
  114    114   
            }
  115    115   
        }
  116    116   
    }
  117    117   
    impl ::std::error::Error for ConstraintViolation {}
  118    118   
    impl ConstraintViolation {
  119    119   
        pub(crate) fn as_validation_exception_field(
  120    120   
            self,
  121    121   
            path: ::std::string::String,
  122    122   
        ) -> crate::model::ValidationExceptionField {
  123    123   
            match self {
  124         -
        ConstraintViolation::MissingEvents => crate::model::ValidationExceptionField {
  125         -
                                        message: format!("Value at '{}/events' failed to satisfy constraint: Member must not be null", path),
  126         -
                                        path: path + "/events",
  127         -
                                    },
  128         -
    }
         124  +
            ConstraintViolation::MissingEvents => crate::model::ValidationExceptionField {
         125  +
                                                message: format!("Value at '{}/events' failed to satisfy constraint: Member must not be null", path),
         126  +
                                                path: path + "/events",
         127  +
                                            },
         128  +
        }
  129    129   
        }
  130    130   
    }
  131    131   
    impl ::std::convert::From<ConstraintViolation>
  132    132   
        for ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection
  133    133   
    {
  134    134   
        fn from(constraint_violation: ConstraintViolation) -> Self {
  135    135   
            let first_validation_exception_field =
  136    136   
                constraint_violation.as_validation_exception_field("".to_owned());
  137    137   
            let validation_exception = crate::error::ValidationException {
  138    138   
                message: format!(

tmp-codegen-diff/codegen-server-test/pokemon-service-server-sdk/rust-server-codegen/src/input.rs

@@ -161,161 +229,229 @@
  181    181   
            }
  182    182   
        }
  183    183   
    }
  184    184   
    impl ::std::error::Error for ConstraintViolation {}
  185    185   
    impl ConstraintViolation {
  186    186   
        pub(crate) fn as_validation_exception_field(
  187    187   
            self,
  188    188   
            path: ::std::string::String,
  189    189   
        ) -> crate::model::ValidationExceptionField {
  190    190   
            match self {
  191         -
        ConstraintViolation::MissingUser => crate::model::ValidationExceptionField {
  192         -
                                        message: format!("Value at '{}/user' failed to satisfy constraint: Member must not be null", path),
  193         -
                                        path: path + "/user",
  194         -
                                    },
  195         -
        ConstraintViolation::MissingPasscode => crate::model::ValidationExceptionField {
  196         -
                                        message: format!("Value at '{}/passcode' failed to satisfy constraint: Member must not be null", path),
  197         -
                                        path: path + "/passcode",
  198         -
                                    },
  199         -
    }
         191  +
            ConstraintViolation::MissingUser => crate::model::ValidationExceptionField {
         192  +
                                                message: format!("Value at '{}/user' failed to satisfy constraint: Member must not be null", path),
         193  +
                                                path: path + "/user",
         194  +
                                            },
         195  +
            ConstraintViolation::MissingPasscode => crate::model::ValidationExceptionField {
         196  +
                                                message: format!("Value at '{}/passcode' failed to satisfy constraint: Member must not be null", path),
         197  +
                                                path: path + "/passcode",
         198  +
                                            },
         199  +
        }
  200    200   
        }
  201    201   
    }
  202    202   
    impl ::std::convert::From<ConstraintViolation>
  203    203   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
  204    204   
    {
  205    205   
        fn from(constraint_violation: ConstraintViolation) -> Self {
  206    206   
            let first_validation_exception_field =
  207    207   
                constraint_violation.as_validation_exception_field("".to_owned());
  208    208   
            let validation_exception = crate::error::ValidationException {
  209    209   
                message: format!(
@@ -441,441 +509,509 @@
  461    461   
            }
  462    462   
        }
  463    463   
    }
  464    464   
    impl ::std::error::Error for ConstraintViolation {}
  465    465   
    impl ConstraintViolation {
  466    466   
        pub(crate) fn as_validation_exception_field(
  467    467   
            self,
  468    468   
            path: ::std::string::String,
  469    469   
        ) -> crate::model::ValidationExceptionField {
  470    470   
            match self {
  471         -
        ConstraintViolation::MissingEvents => crate::model::ValidationExceptionField {
  472         -
                                        message: format!("Value at '{}/events' failed to satisfy constraint: Member must not be null", path),
  473         -
                                        path: path + "/events",
  474         -
                                    },
  475         -
        ConstraintViolation::MissingRegion => crate::model::ValidationExceptionField {
  476         -
                                        message: format!("Value at '{}/region' failed to satisfy constraint: Member must not be null", path),
  477         -
                                        path: path + "/region",
  478         -
                                    },
  479         -
    }
         471  +
            ConstraintViolation::MissingEvents => crate::model::ValidationExceptionField {
         472  +
                                                message: format!("Value at '{}/events' failed to satisfy constraint: Member must not be null", path),
         473  +
                                                path: path + "/events",
         474  +
                                            },
         475  +
            ConstraintViolation::MissingRegion => crate::model::ValidationExceptionField {
         476  +
                                                message: format!("Value at '{}/region' failed to satisfy constraint: Member must not be null", path),
         477  +
                                                path: path + "/region",
         478  +
                                            },
         479  +
        }
  480    480   
        }
  481    481   
    }
  482    482   
    impl ::std::convert::From<ConstraintViolation>
  483    483   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
  484    484   
    {
  485    485   
        fn from(constraint_violation: ConstraintViolation) -> Self {
  486    486   
            let first_validation_exception_field =
  487    487   
                constraint_violation.as_validation_exception_field("".to_owned());
  488    488   
            let validation_exception = crate::error::ValidationException {
  489    489   
                message: format!(

tmp-codegen-diff/codegen-server-test/rest_json/rust-server-codegen/src/input.rs

@@ -3612,3612 +3676,3676 @@
 3632   3632   
            }
 3633   3633   
        }
 3634   3634   
    }
 3635   3635   
    impl ::std::error::Error for ConstraintViolation {}
 3636   3636   
    impl ConstraintViolation {
 3637   3637   
        pub(crate) fn as_validation_exception_field(
 3638   3638   
            self,
 3639   3639   
            path: ::std::string::String,
 3640   3640   
        ) -> crate::model::ValidationExceptionField {
 3641   3641   
            match self {
 3642         -
        ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
 3643         -
                                        message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
 3644         -
                                        path: path + "/timestamp",
 3645         -
                                    },
 3646         -
    }
        3642  +
            ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
        3643  +
                                                message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
        3644  +
                                                path: path + "/timestamp",
        3645  +
                                            },
        3646  +
        }
 3647   3647   
        }
 3648   3648   
    }
 3649   3649   
    impl ::std::convert::From<ConstraintViolation>
 3650   3650   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
 3651   3651   
    {
 3652   3652   
        fn from(constraint_violation: ConstraintViolation) -> Self {
 3653   3653   
            let first_validation_exception_field =
 3654   3654   
                constraint_violation.as_validation_exception_field("".to_owned());
 3655   3655   
            let validation_exception = crate::error::ValidationException {
 3656   3656   
                message: format!(
@@ -3719,3719 +3783,3783 @@
 3739   3739   
            }
 3740   3740   
        }
 3741   3741   
    }
 3742   3742   
    impl ::std::error::Error for ConstraintViolation {}
 3743   3743   
    impl ConstraintViolation {
 3744   3744   
        pub(crate) fn as_validation_exception_field(
 3745   3745   
            self,
 3746   3746   
            path: ::std::string::String,
 3747   3747   
        ) -> crate::model::ValidationExceptionField {
 3748   3748   
            match self {
 3749         -
        ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
 3750         -
                                        message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
 3751         -
                                        path: path + "/timestamp",
 3752         -
                                    },
 3753         -
    }
        3749  +
            ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
        3750  +
                                                message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
        3751  +
                                                path: path + "/timestamp",
        3752  +
                                            },
        3753  +
        }
 3754   3754   
        }
 3755   3755   
    }
 3756   3756   
    impl ::std::convert::From<ConstraintViolation>
 3757   3757   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
 3758   3758   
    {
 3759   3759   
        fn from(constraint_violation: ConstraintViolation) -> Self {
 3760   3760   
            let first_validation_exception_field =
 3761   3761   
                constraint_violation.as_validation_exception_field("".to_owned());
 3762   3762   
            let validation_exception = crate::error::ValidationException {
 3763   3763   
                message: format!(
@@ -3826,3826 +3890,3890 @@
 3846   3846   
            }
 3847   3847   
        }
 3848   3848   
    }
 3849   3849   
    impl ::std::error::Error for ConstraintViolation {}
 3850   3850   
    impl ConstraintViolation {
 3851   3851   
        pub(crate) fn as_validation_exception_field(
 3852   3852   
            self,
 3853   3853   
            path: ::std::string::String,
 3854   3854   
        ) -> crate::model::ValidationExceptionField {
 3855   3855   
            match self {
 3856         -
        ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
 3857         -
                                        message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
 3858         -
                                        path: path + "/timestamp",
 3859         -
                                    },
 3860         -
    }
        3856  +
            ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
        3857  +
                                                message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
        3858  +
                                                path: path + "/timestamp",
        3859  +
                                            },
        3860  +
        }
 3861   3861   
        }
 3862   3862   
    }
 3863   3863   
    impl ::std::convert::From<ConstraintViolation>
 3864   3864   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
 3865   3865   
    {
 3866   3866   
        fn from(constraint_violation: ConstraintViolation) -> Self {
 3867   3867   
            let first_validation_exception_field =
 3868   3868   
                constraint_violation.as_validation_exception_field("".to_owned());
 3869   3869   
            let validation_exception = crate::error::ValidationException {
 3870   3870   
                message: format!(
@@ -3931,3931 +3995,3995 @@
 3951   3951   
            }
 3952   3952   
        }
 3953   3953   
    }
 3954   3954   
    impl ::std::error::Error for ConstraintViolation {}
 3955   3955   
    impl ConstraintViolation {
 3956   3956   
        pub(crate) fn as_validation_exception_field(
 3957   3957   
            self,
 3958   3958   
            path: ::std::string::String,
 3959   3959   
        ) -> crate::model::ValidationExceptionField {
 3960   3960   
            match self {
 3961         -
        ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
 3962         -
                                        message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
 3963         -
                                        path: path + "/timestamp",
 3964         -
                                    },
 3965         -
    }
        3961  +
            ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
        3962  +
                                                message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
        3963  +
                                                path: path + "/timestamp",
        3964  +
                                            },
        3965  +
        }
 3966   3966   
        }
 3967   3967   
    }
 3968   3968   
    impl ::std::convert::From<ConstraintViolation>
 3969   3969   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
 3970   3970   
    {
 3971   3971   
        fn from(constraint_violation: ConstraintViolation) -> Self {
 3972   3972   
            let first_validation_exception_field =
 3973   3973   
                constraint_violation.as_validation_exception_field("".to_owned());
 3974   3974   
            let validation_exception = crate::error::ValidationException {
 3975   3975   
                message: format!(
@@ -4036,4036 +4100,4100 @@
 4056   4056   
            }
 4057   4057   
        }
 4058   4058   
    }
 4059   4059   
    impl ::std::error::Error for ConstraintViolation {}
 4060   4060   
    impl ConstraintViolation {
 4061   4061   
        pub(crate) fn as_validation_exception_field(
 4062   4062   
            self,
 4063   4063   
            path: ::std::string::String,
 4064   4064   
        ) -> crate::model::ValidationExceptionField {
 4065   4065   
            match self {
 4066         -
        ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
 4067         -
                                        message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
 4068         -
                                        path: path + "/timestamp",
 4069         -
                                    },
 4070         -
    }
        4066  +
            ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
        4067  +
                                                message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
        4068  +
                                                path: path + "/timestamp",
        4069  +
                                            },
        4070  +
        }
 4071   4071   
        }
 4072   4072   
    }
 4073   4073   
    impl ::std::convert::From<ConstraintViolation>
 4074   4074   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
 4075   4075   
    {
 4076   4076   
        fn from(constraint_violation: ConstraintViolation) -> Self {
 4077   4077   
            let first_validation_exception_field =
 4078   4078   
                constraint_violation.as_validation_exception_field("".to_owned());
 4079   4079   
            let validation_exception = crate::error::ValidationException {
 4080   4080   
                message: format!(
@@ -4145,4145 +4209,4209 @@
 4165   4165   
            }
 4166   4166   
        }
 4167   4167   
    }
 4168   4168   
    impl ::std::error::Error for ConstraintViolation {}
 4169   4169   
    impl ConstraintViolation {
 4170   4170   
        pub(crate) fn as_validation_exception_field(
 4171   4171   
            self,
 4172   4172   
            path: ::std::string::String,
 4173   4173   
        ) -> crate::model::ValidationExceptionField {
 4174   4174   
            match self {
 4175         -
        ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
 4176         -
                                        message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
 4177         -
                                        path: path + "/timestamp",
 4178         -
                                    },
 4179         -
    }
        4175  +
            ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
        4176  +
                                                message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
        4177  +
                                                path: path + "/timestamp",
        4178  +
                                            },
        4179  +
        }
 4180   4180   
        }
 4181   4181   
    }
 4182   4182   
    impl ::std::convert::From<ConstraintViolation>
 4183   4183   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
 4184   4184   
    {
 4185   4185   
        fn from(constraint_violation: ConstraintViolation) -> Self {
 4186   4186   
            let first_validation_exception_field =
 4187   4187   
                constraint_violation.as_validation_exception_field("".to_owned());
 4188   4188   
            let validation_exception = crate::error::ValidationException {
 4189   4189   
                message: format!(
@@ -4252,4252 +4316,4316 @@
 4272   4272   
            }
 4273   4273   
        }
 4274   4274   
    }
 4275   4275   
    impl ::std::error::Error for ConstraintViolation {}
 4276   4276   
    impl ConstraintViolation {
 4277   4277   
        pub(crate) fn as_validation_exception_field(
 4278   4278   
            self,
 4279   4279   
            path: ::std::string::String,
 4280   4280   
        ) -> crate::model::ValidationExceptionField {
 4281   4281   
            match self {
 4282         -
        ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
 4283         -
                                        message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
 4284         -
                                        path: path + "/timestamp",
 4285         -
                                    },
 4286         -
    }
        4282  +
            ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
        4283  +
                                                message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
        4284  +
                                                path: path + "/timestamp",
        4285  +
                                            },
        4286  +
        }
 4287   4287   
        }
 4288   4288   
    }
 4289   4289   
    impl ::std::convert::From<ConstraintViolation>
 4290   4290   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
 4291   4291   
    {
 4292   4292   
        fn from(constraint_violation: ConstraintViolation) -> Self {
 4293   4293   
            let first_validation_exception_field =
 4294   4294   
                constraint_violation.as_validation_exception_field("".to_owned());
 4295   4295   
            let validation_exception = crate::error::ValidationException {
 4296   4296   
                message: format!(
@@ -4357,4357 +4421,4421 @@
 4377   4377   
            }
 4378   4378   
        }
 4379   4379   
    }
 4380   4380   
    impl ::std::error::Error for ConstraintViolation {}
 4381   4381   
    impl ConstraintViolation {
 4382   4382   
        pub(crate) fn as_validation_exception_field(
 4383   4383   
            self,
 4384   4384   
            path: ::std::string::String,
 4385   4385   
        ) -> crate::model::ValidationExceptionField {
 4386   4386   
            match self {
 4387         -
        ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
 4388         -
                                        message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
 4389         -
                                        path: path + "/timestamp",
 4390         -
                                    },
 4391         -
    }
        4387  +
            ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
        4388  +
                                                message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
        4389  +
                                                path: path + "/timestamp",
        4390  +
                                            },
        4391  +
        }
 4392   4392   
        }
 4393   4393   
    }
 4394   4394   
    impl ::std::convert::From<ConstraintViolation>
 4395   4395   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
 4396   4396   
    {
 4397   4397   
        fn from(constraint_violation: ConstraintViolation) -> Self {
 4398   4398   
            let first_validation_exception_field =
 4399   4399   
                constraint_violation.as_validation_exception_field("".to_owned());
 4400   4400   
            let validation_exception = crate::error::ValidationException {
 4401   4401   
                message: format!(
@@ -4464,4464 +4528,4528 @@
 4484   4484   
            }
 4485   4485   
        }
 4486   4486   
    }
 4487   4487   
    impl ::std::error::Error for ConstraintViolation {}
 4488   4488   
    impl ConstraintViolation {
 4489   4489   
        pub(crate) fn as_validation_exception_field(
 4490   4490   
            self,
 4491   4491   
            path: ::std::string::String,
 4492   4492   
        ) -> crate::model::ValidationExceptionField {
 4493   4493   
            match self {
 4494         -
        ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
 4495         -
                                        message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
 4496         -
                                        path: path + "/timestamp",
 4497         -
                                    },
 4498         -
    }
        4494  +
            ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
        4495  +
                                                message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
        4496  +
                                                path: path + "/timestamp",
        4497  +
                                            },
        4498  +
        }
 4499   4499   
        }
 4500   4500   
    }
 4501   4501   
    impl ::std::convert::From<ConstraintViolation>
 4502   4502   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
 4503   4503   
    {
 4504   4504   
        fn from(constraint_violation: ConstraintViolation) -> Self {
 4505   4505   
            let first_validation_exception_field =
 4506   4506   
                constraint_violation.as_validation_exception_field("".to_owned());
 4507   4507   
            let validation_exception = crate::error::ValidationException {
 4508   4508   
                message: format!(
@@ -4571,4571 +4635,4635 @@
 4591   4591   
            }
 4592   4592   
        }
 4593   4593   
    }
 4594   4594   
    impl ::std::error::Error for ConstraintViolation {}
 4595   4595   
    impl ConstraintViolation {
 4596   4596   
        pub(crate) fn as_validation_exception_field(
 4597   4597   
            self,
 4598   4598   
            path: ::std::string::String,
 4599   4599   
        ) -> crate::model::ValidationExceptionField {
 4600   4600   
            match self {
 4601         -
        ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
 4602         -
                                        message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
 4603         -
                                        path: path + "/timestamp",
 4604         -
                                    },
 4605         -
    }
        4601  +
            ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
        4602  +
                                                message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
        4603  +
                                                path: path + "/timestamp",
        4604  +
                                            },
        4605  +
        }
 4606   4606   
        }
 4607   4607   
    }
 4608   4608   
    impl ::std::convert::From<ConstraintViolation>
 4609   4609   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
 4610   4610   
    {
 4611   4611   
        fn from(constraint_violation: ConstraintViolation) -> Self {
 4612   4612   
            let first_validation_exception_field =
 4613   4613   
                constraint_violation.as_validation_exception_field("".to_owned());
 4614   4614   
            let validation_exception = crate::error::ValidationException {
 4615   4615   
                message: format!(
@@ -4676,4676 +4740,4740 @@
 4696   4696   
            }
 4697   4697   
        }
 4698   4698   
    }
 4699   4699   
    impl ::std::error::Error for ConstraintViolation {}
 4700   4700   
    impl ConstraintViolation {
 4701   4701   
        pub(crate) fn as_validation_exception_field(
 4702   4702   
            self,
 4703   4703   
            path: ::std::string::String,
 4704   4704   
        ) -> crate::model::ValidationExceptionField {
 4705   4705   
            match self {
 4706         -
        ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
 4707         -
                                        message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
 4708         -
                                        path: path + "/timestamp",
 4709         -
                                    },
 4710         -
    }
        4706  +
            ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
        4707  +
                                                message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
        4708  +
                                                path: path + "/timestamp",
        4709  +
                                            },
        4710  +
        }
 4711   4711   
        }
 4712   4712   
    }
 4713   4713   
    impl ::std::convert::From<ConstraintViolation>
 4714   4714   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
 4715   4715   
    {
 4716   4716   
        fn from(constraint_violation: ConstraintViolation) -> Self {
 4717   4717   
            let first_validation_exception_field =
 4718   4718   
                constraint_violation.as_validation_exception_field("".to_owned());
 4719   4719   
            let validation_exception = crate::error::ValidationException {
 4720   4720   
                message: format!(
@@ -4783,4783 +4847,4847 @@
 4803   4803   
            }
 4804   4804   
        }
 4805   4805   
    }
 4806   4806   
    impl ::std::error::Error for ConstraintViolation {}
 4807   4807   
    impl ConstraintViolation {
 4808   4808   
        pub(crate) fn as_validation_exception_field(
 4809   4809   
            self,
 4810   4810   
            path: ::std::string::String,
 4811   4811   
        ) -> crate::model::ValidationExceptionField {
 4812   4812   
            match self {
 4813         -
        ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
 4814         -
                                        message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
 4815         -
                                        path: path + "/timestamp",
 4816         -
                                    },
 4817         -
    }
        4813  +
            ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
        4814  +
                                                message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
        4815  +
                                                path: path + "/timestamp",
        4816  +
                                            },
        4817  +
        }
 4818   4818   
        }
 4819   4819   
    }
 4820   4820   
    impl ::std::convert::From<ConstraintViolation>
 4821   4821   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
 4822   4822   
    {
 4823   4823   
        fn from(constraint_violation: ConstraintViolation) -> Self {
 4824   4824   
            let first_validation_exception_field =
 4825   4825   
                constraint_violation.as_validation_exception_field("".to_owned());
 4826   4826   
            let validation_exception = crate::error::ValidationException {
 4827   4827   
                message: format!(
@@ -4925,4925 +4989,4989 @@
 4945   4945   
            }
 4946   4946   
        }
 4947   4947   
    }
 4948   4948   
    impl ::std::error::Error for ConstraintViolation {}
 4949   4949   
    impl ConstraintViolation {
 4950   4950   
        pub(crate) fn as_validation_exception_field(
 4951   4951   
            self,
 4952   4952   
            path: ::std::string::String,
 4953   4953   
        ) -> crate::model::ValidationExceptionField {
 4954   4954   
            match self {
 4955         -
        ConstraintViolation::MissingDoubleInPath => crate::model::ValidationExceptionField {
 4956         -
                                        message: format!("Value at '{}/doubleInPath' failed to satisfy constraint: Member must not be null", path),
 4957         -
                                        path: path + "/doubleInPath",
 4958         -
                                    },
 4959         -
    }
        4955  +
            ConstraintViolation::MissingDoubleInPath => crate::model::ValidationExceptionField {
        4956  +
                                                message: format!("Value at '{}/doubleInPath' failed to satisfy constraint: Member must not be null", path),
        4957  +
                                                path: path + "/doubleInPath",
        4958  +
                                            },
        4959  +
        }
 4960   4960   
        }
 4961   4961   
    }
 4962   4962   
    impl ::std::convert::From<ConstraintViolation>
 4963   4963   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
 4964   4964   
    {
 4965   4965   
        fn from(constraint_violation: ConstraintViolation) -> Self {
 4966   4966   
            let first_validation_exception_field =
 4967   4967   
                constraint_violation.as_validation_exception_field("".to_owned());
 4968   4968   
            let validation_exception = crate::error::ValidationException {
 4969   4969   
                message: format!(
@@ -5070,5070 +5134,5134 @@
 5090   5090   
            }
 5091   5091   
        }
 5092   5092   
    }
 5093   5093   
    impl ::std::error::Error for ConstraintViolation {}
 5094   5094   
    impl ConstraintViolation {
 5095   5095   
        pub(crate) fn as_validation_exception_field(
 5096   5096   
            self,
 5097   5097   
            path: ::std::string::String,
 5098   5098   
        ) -> crate::model::ValidationExceptionField {
 5099   5099   
            match self {
 5100         -
        ConstraintViolation::MissingFloatInPath => crate::model::ValidationExceptionField {
 5101         -
                                        message: format!("Value at '{}/floatInPath' failed to satisfy constraint: Member must not be null", path),
 5102         -
                                        path: path + "/floatInPath",
 5103         -
                                    },
 5104         -
    }
        5100  +
            ConstraintViolation::MissingFloatInPath => crate::model::ValidationExceptionField {
        5101  +
                                                message: format!("Value at '{}/floatInPath' failed to satisfy constraint: Member must not be null", path),
        5102  +
                                                path: path + "/floatInPath",
        5103  +
                                            },
        5104  +
        }
 5105   5105   
        }
 5106   5106   
    }
 5107   5107   
    impl ::std::convert::From<ConstraintViolation>
 5108   5108   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
 5109   5109   
    {
 5110   5110   
        fn from(constraint_violation: ConstraintViolation) -> Self {
 5111   5111   
            let first_validation_exception_field =
 5112   5112   
                constraint_violation.as_validation_exception_field("".to_owned());
 5113   5113   
            let validation_exception = crate::error::ValidationException {
 5114   5114   
                message: format!(
@@ -5215,5215 +5279,5279 @@
 5235   5235   
            }
 5236   5236   
        }
 5237   5237   
    }
 5238   5238   
    impl ::std::error::Error for ConstraintViolation {}
 5239   5239   
    impl ConstraintViolation {
 5240   5240   
        pub(crate) fn as_validation_exception_field(
 5241   5241   
            self,
 5242   5242   
            path: ::std::string::String,
 5243   5243   
        ) -> crate::model::ValidationExceptionField {
 5244   5244   
            match self {
 5245         -
        ConstraintViolation::MissingLongInPath => crate::model::ValidationExceptionField {
 5246         -
                                        message: format!("Value at '{}/longInPath' failed to satisfy constraint: Member must not be null", path),
 5247         -
                                        path: path + "/longInPath",
 5248         -
                                    },
 5249         -
    }
        5245  +
            ConstraintViolation::MissingLongInPath => crate::model::ValidationExceptionField {
        5246  +
                                                message: format!("Value at '{}/longInPath' failed to satisfy constraint: Member must not be null", path),
        5247  +
                                                path: path + "/longInPath",
        5248  +
                                            },
        5249  +
        }
 5250   5250   
        }
 5251   5251   
    }
 5252   5252   
    impl ::std::convert::From<ConstraintViolation>
 5253   5253   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
 5254   5254   
    {
 5255   5255   
        fn from(constraint_violation: ConstraintViolation) -> Self {
 5256   5256   
            let first_validation_exception_field =
 5257   5257   
                constraint_violation.as_validation_exception_field("".to_owned());
 5258   5258   
            let validation_exception = crate::error::ValidationException {
 5259   5259   
                message: format!(
@@ -5360,5360 +5424,5424 @@
 5380   5380   
            }
 5381   5381   
        }
 5382   5382   
    }
 5383   5383   
    impl ::std::error::Error for ConstraintViolation {}
 5384   5384   
    impl ConstraintViolation {
 5385   5385   
        pub(crate) fn as_validation_exception_field(
 5386   5386   
            self,
 5387   5387   
            path: ::std::string::String,
 5388   5388   
        ) -> crate::model::ValidationExceptionField {
 5389   5389   
            match self {
 5390         -
        ConstraintViolation::MissingShortInPath => crate::model::ValidationExceptionField {
 5391         -
                                        message: format!("Value at '{}/shortInPath' failed to satisfy constraint: Member must not be null", path),
 5392         -
                                        path: path + "/shortInPath",
 5393         -
                                    },
 5394         -
    }
        5390  +
            ConstraintViolation::MissingShortInPath => crate::model::ValidationExceptionField {
        5391  +
                                                message: format!("Value at '{}/shortInPath' failed to satisfy constraint: Member must not be null", path),
        5392  +
                                                path: path + "/shortInPath",
        5393  +
                                            },
        5394  +
        }
 5395   5395   
        }
 5396   5396   
    }
 5397   5397   
    impl ::std::convert::From<ConstraintViolation>
 5398   5398   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
 5399   5399   
    {
 5400   5400   
        fn from(constraint_violation: ConstraintViolation) -> Self {
 5401   5401   
            let first_validation_exception_field =
 5402   5402   
                constraint_violation.as_validation_exception_field("".to_owned());
 5403   5403   
            let validation_exception = crate::error::ValidationException {
 5404   5404   
                message: format!(
@@ -5505,5505 +5569,5569 @@
 5525   5525   
            }
 5526   5526   
        }
 5527   5527   
    }
 5528   5528   
    impl ::std::error::Error for ConstraintViolation {}
 5529   5529   
    impl ConstraintViolation {
 5530   5530   
        pub(crate) fn as_validation_exception_field(
 5531   5531   
            self,
 5532   5532   
            path: ::std::string::String,
 5533   5533   
        ) -> crate::model::ValidationExceptionField {
 5534   5534   
            match self {
 5535         -
        ConstraintViolation::MissingByteInPath => crate::model::ValidationExceptionField {
 5536         -
                                        message: format!("Value at '{}/byteInPath' failed to satisfy constraint: Member must not be null", path),
 5537         -
                                        path: path + "/byteInPath",
 5538         -
                                    },
 5539         -
    }
        5535  +
            ConstraintViolation::MissingByteInPath => crate::model::ValidationExceptionField {
        5536  +
                                                message: format!("Value at '{}/byteInPath' failed to satisfy constraint: Member must not be null", path),
        5537  +
                                                path: path + "/byteInPath",
        5538  +
                                            },
        5539  +
        }
 5540   5540   
        }
 5541   5541   
    }
 5542   5542   
    impl ::std::convert::From<ConstraintViolation>
 5543   5543   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
 5544   5544   
    {
 5545   5545   
        fn from(constraint_violation: ConstraintViolation) -> Self {
 5546   5546   
            let first_validation_exception_field =
 5547   5547   
                constraint_violation.as_validation_exception_field("".to_owned());
 5548   5548   
            let validation_exception = crate::error::ValidationException {
 5549   5549   
                message: format!(
@@ -5779,5779 +5843,5843 @@
 5799   5799   
            }
 5800   5800   
        }
 5801   5801   
    }
 5802   5802   
    impl ::std::error::Error for ConstraintViolation {}
 5803   5803   
    impl ConstraintViolation {
 5804   5804   
        pub(crate) fn as_validation_exception_field(
 5805   5805   
            self,
 5806   5806   
            path: ::std::string::String,
 5807   5807   
        ) -> crate::model::ValidationExceptionField {
 5808   5808   
            match self {
 5809         -
        ConstraintViolation::MissingBooleanInPath => crate::model::ValidationExceptionField {
 5810         -
                                        message: format!("Value at '{}/booleanInPath' failed to satisfy constraint: Member must not be null", path),
 5811         -
                                        path: path + "/booleanInPath",
 5812         -
                                    },
 5813         -
    }
        5809  +
            ConstraintViolation::MissingBooleanInPath => crate::model::ValidationExceptionField {
        5810  +
                                                message: format!("Value at '{}/booleanInPath' failed to satisfy constraint: Member must not be null", path),
        5811  +
                                                path: path + "/booleanInPath",
        5812  +
                                            },
        5813  +
        }
 5814   5814   
        }
 5815   5815   
    }
 5816   5816   
    impl ::std::convert::From<ConstraintViolation>
 5817   5817   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
 5818   5818   
    {
 5819   5819   
        fn from(constraint_violation: ConstraintViolation) -> Self {
 5820   5820   
            let first_validation_exception_field =
 5821   5821   
                constraint_violation.as_validation_exception_field("".to_owned());
 5822   5822   
            let validation_exception = crate::error::ValidationException {
 5823   5823   
                message: format!(
@@ -5964,5964 +6028,6028 @@
 5984   5984   
            }
 5985   5985   
        }
 5986   5986   
    }
 5987   5987   
    impl ::std::error::Error for ConstraintViolation {}
 5988   5988   
    impl ConstraintViolation {
 5989   5989   
        pub(crate) fn as_validation_exception_field(
 5990   5990   
            self,
 5991   5991   
            path: ::std::string::String,
 5992   5992   
        ) -> crate::model::ValidationExceptionField {
 5993   5993   
            match self {
 5994         -
        ConstraintViolation::MissingIntegerInPath => crate::model::ValidationExceptionField {
 5995         -
                                        message: format!("Value at '{}/integerInPath' failed to satisfy constraint: Member must not be null", path),
 5996         -
                                        path: path + "/integerInPath",
 5997         -
                                    },
 5998         -
    }
        5994  +
            ConstraintViolation::MissingIntegerInPath => crate::model::ValidationExceptionField {
        5995  +
                                                message: format!("Value at '{}/integerInPath' failed to satisfy constraint: Member must not be null", path),
        5996  +
                                                path: path + "/integerInPath",
        5997  +
                                            },
        5998  +
        }
 5999   5999   
        }
 6000   6000   
    }
 6001   6001   
    impl ::std::convert::From<ConstraintViolation>
 6002   6002   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
 6003   6003   
    {
 6004   6004   
        fn from(constraint_violation: ConstraintViolation) -> Self {
 6005   6005   
            let first_validation_exception_field =
 6006   6006   
                constraint_violation.as_validation_exception_field("".to_owned());
 6007   6007   
            let validation_exception = crate::error::ValidationException {
 6008   6008   
                message: format!(
@@ -10375,10375 +10443,10443 @@
10395  10395   
            }
10396  10396   
        }
10397  10397   
    }
10398  10398   
    impl ::std::error::Error for ConstraintViolation {}
10399  10399   
    impl ConstraintViolation {
10400  10400   
        pub(crate) fn as_validation_exception_field(
10401  10401   
            self,
10402  10402   
            path: ::std::string::String,
10403  10403   
        ) -> crate::model::ValidationExceptionField {
10404  10404   
            match self {
10405         -
        ConstraintViolation::MissingFloat => crate::model::ValidationExceptionField {
10406         -
                                        message: format!("Value at '{}/float' failed to satisfy constraint: Member must not be null", path),
10407         -
                                        path: path + "/float",
10408         -
                                    },
10409         -
        ConstraintViolation::MissingDouble => crate::model::ValidationExceptionField {
10410         -
                                        message: format!("Value at '{}/double' failed to satisfy constraint: Member must not be null", path),
10411         -
                                        path: path + "/double",
10412         -
                                    },
10413         -
    }
       10405  +
            ConstraintViolation::MissingFloat => crate::model::ValidationExceptionField {
       10406  +
                                                message: format!("Value at '{}/float' failed to satisfy constraint: Member must not be null", path),
       10407  +
                                                path: path + "/float",
       10408  +
                                            },
       10409  +
            ConstraintViolation::MissingDouble => crate::model::ValidationExceptionField {
       10410  +
                                                message: format!("Value at '{}/double' failed to satisfy constraint: Member must not be null", path),
       10411  +
                                                path: path + "/double",
       10412  +
                                            },
       10413  +
        }
10414  10414   
        }
10415  10415   
    }
10416  10416   
    impl ::std::convert::From<ConstraintViolation>
10417  10417   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
10418  10418   
    {
10419  10419   
        fn from(constraint_violation: ConstraintViolation) -> Self {
10420  10420   
            let first_validation_exception_field =
10421  10421   
                constraint_violation.as_validation_exception_field("".to_owned());
10422  10422   
            let validation_exception = crate::error::ValidationException {
10423  10423   
                message: format!(
@@ -10646,10646 +10734,10734 @@
10666  10666   
            }
10667  10667   
        }
10668  10668   
    }
10669  10669   
    impl ::std::error::Error for ConstraintViolation {}
10670  10670   
    impl ConstraintViolation {
10671  10671   
        pub(crate) fn as_validation_exception_field(
10672  10672   
            self,
10673  10673   
            path: ::std::string::String,
10674  10674   
        ) -> crate::model::ValidationExceptionField {
10675  10675   
            match self {
10676         -
        ConstraintViolation::MissingMemberEpochSeconds => crate::model::ValidationExceptionField {
10677         -
                                        message: format!("Value at '{}/memberEpochSeconds' failed to satisfy constraint: Member must not be null", path),
10678         -
                                        path: path + "/memberEpochSeconds",
10679         -
                                    },
10680         -
        ConstraintViolation::MissingMemberHttpDate => crate::model::ValidationExceptionField {
10681         -
                                        message: format!("Value at '{}/memberHttpDate' failed to satisfy constraint: Member must not be null", path),
10682         -
                                        path: path + "/memberHttpDate",
10683         -
                                    },
10684         -
        ConstraintViolation::MissingMemberDateTime => crate::model::ValidationExceptionField {
10685         -
                                        message: format!("Value at '{}/memberDateTime' failed to satisfy constraint: Member must not be null", path),
10686         -
                                        path: path + "/memberDateTime",
10687         -
                                    },
10688         -
        ConstraintViolation::MissingDefaultFormat => crate::model::ValidationExceptionField {
10689         -
                                        message: format!("Value at '{}/defaultFormat' failed to satisfy constraint: Member must not be null", path),
10690         -
                                        path: path + "/defaultFormat",
10691         -
                                    },
10692         -
        ConstraintViolation::MissingTargetEpochSeconds => crate::model::ValidationExceptionField {
10693         -
                                        message: format!("Value at '{}/targetEpochSeconds' failed to satisfy constraint: Member must not be null", path),
10694         -
                                        path: path + "/targetEpochSeconds",
10695         -
                                    },
10696         -
        ConstraintViolation::MissingTargetHttpDate => crate::model::ValidationExceptionField {
10697         -
                                        message: format!("Value at '{}/targetHttpDate' failed to satisfy constraint: Member must not be null", path),
10698         -
                                        path: path + "/targetHttpDate",
10699         -
                                    },
10700         -
        ConstraintViolation::MissingTargetDateTime => crate::model::ValidationExceptionField {
10701         -
                                        message: format!("Value at '{}/targetDateTime' failed to satisfy constraint: Member must not be null", path),
10702         -
                                        path: path + "/targetDateTime",
10703         -
                                    },
10704         -
    }
       10676  +
            ConstraintViolation::MissingMemberEpochSeconds => crate::model::ValidationExceptionField {
       10677  +
                                                message: format!("Value at '{}/memberEpochSeconds' failed to satisfy constraint: Member must not be null", path),
       10678  +
                                                path: path + "/memberEpochSeconds",
       10679  +
                                            },
       10680  +
            ConstraintViolation::MissingMemberHttpDate => crate::model::ValidationExceptionField {
       10681  +
                                                message: format!("Value at '{}/memberHttpDate' failed to satisfy constraint: Member must not be null", path),
       10682  +
                                                path: path + "/memberHttpDate",
       10683  +
                                            },
       10684  +
            ConstraintViolation::MissingMemberDateTime => crate::model::ValidationExceptionField {
       10685  +
                                                message: format!("Value at '{}/memberDateTime' failed to satisfy constraint: Member must not be null", path),
       10686  +
                                                path: path + "/memberDateTime",
       10687  +
                                            },
       10688  +
            ConstraintViolation::MissingDefaultFormat => crate::model::ValidationExceptionField {
       10689  +
                                                message: format!("Value at '{}/defaultFormat' failed to satisfy constraint: Member must not be null", path),
       10690  +
                                                path: path + "/defaultFormat",
       10691  +
                                            },
       10692  +
            ConstraintViolation::MissingTargetEpochSeconds => crate::model::ValidationExceptionField {
       10693  +
                                                message: format!("Value at '{}/targetEpochSeconds' failed to satisfy constraint: Member must not be null", path),
       10694  +
                                                path: path + "/targetEpochSeconds",
       10695  +
                                            },
       10696  +
            ConstraintViolation::MissingTargetHttpDate => crate::model::ValidationExceptionField {
       10697  +
                                                message: format!("Value at '{}/targetHttpDate' failed to satisfy constraint: Member must not be null", path),
       10698  +
                                                path: path + "/targetHttpDate",
       10699  +
                                            },
       10700  +
            ConstraintViolation::MissingTargetDateTime => crate::model::ValidationExceptionField {
       10701  +
                                                message: format!("Value at '{}/targetDateTime' failed to satisfy constraint: Member must not be null", path),
       10702  +
                                                path: path + "/targetDateTime",
       10703  +
                                            },
       10704  +
        }
10705  10705   
        }
10706  10706   
    }
10707  10707   
    impl ::std::convert::From<ConstraintViolation>
10708  10708   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
10709  10709   
    {
10710  10710   
        fn from(constraint_violation: ConstraintViolation) -> Self {
10711  10711   
            let first_validation_exception_field =
10712  10712   
                constraint_violation.as_validation_exception_field("".to_owned());
10713  10713   
            let validation_exception = crate::error::ValidationException {
10714  10714   
                message: format!(
@@ -10905,10905 +10997,10997 @@
10925  10925   
            }
10926  10926   
        }
10927  10927   
    }
10928  10928   
    impl ::std::error::Error for ConstraintViolation {}
10929  10929   
    impl ConstraintViolation {
10930  10930   
        pub(crate) fn as_validation_exception_field(
10931  10931   
            self,
10932  10932   
            path: ::std::string::String,
10933  10933   
        ) -> crate::model::ValidationExceptionField {
10934  10934   
            match self {
10935         -
        ConstraintViolation::MissingString => crate::model::ValidationExceptionField {
10936         -
                                        message: format!("Value at '{}/string' failed to satisfy constraint: Member must not be null", path),
10937         -
                                        path: path + "/string",
10938         -
                                    },
10939         -
        ConstraintViolation::MissingShort => crate::model::ValidationExceptionField {
10940         -
                                        message: format!("Value at '{}/short' failed to satisfy constraint: Member must not be null", path),
10941         -
                                        path: path + "/short",
10942         -
                                    },
10943         -
        ConstraintViolation::MissingInteger => crate::model::ValidationExceptionField {
10944         -
                                        message: format!("Value at '{}/integer' failed to satisfy constraint: Member must not be null", path),
10945         -
                                        path: path + "/integer",
10946         -
                                    },
10947         -
        ConstraintViolation::MissingLong => crate::model::ValidationExceptionField {
10948         -
                                        message: format!("Value at '{}/long' failed to satisfy constraint: Member must not be null", path),
10949         -
                                        path: path + "/long",
10950         -
                                    },
10951         -
        ConstraintViolation::MissingFloat => crate::model::ValidationExceptionField {
10952         -
                                        message: format!("Value at '{}/float' failed to satisfy constraint: Member must not be null", path),
10953         -
                                        path: path + "/float",
10954         -
                                    },
10955         -
        ConstraintViolation::MissingDouble => crate::model::ValidationExceptionField {
10956         -
                                        message: format!("Value at '{}/double' failed to satisfy constraint: Member must not be null", path),
10957         -
                                        path: path + "/double",
10958         -
                                    },
10959         -
        ConstraintViolation::MissingBoolean => crate::model::ValidationExceptionField {
10960         -
                                        message: format!("Value at '{}/boolean' failed to satisfy constraint: Member must not be null", path),
10961         -
                                        path: path + "/boolean",
10962         -
                                    },
10963         -
        ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
10964         -
                                        message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
10965         -
                                        path: path + "/timestamp",
10966         -
                                    },
10967         -
    }
       10935  +
            ConstraintViolation::MissingString => crate::model::ValidationExceptionField {
       10936  +
                                                message: format!("Value at '{}/string' failed to satisfy constraint: Member must not be null", path),
       10937  +
                                                path: path + "/string",
       10938  +
                                            },
       10939  +
            ConstraintViolation::MissingShort => crate::model::ValidationExceptionField {
       10940  +
                                                message: format!("Value at '{}/short' failed to satisfy constraint: Member must not be null", path),
       10941  +
                                                path: path + "/short",
       10942  +
                                            },
       10943  +
            ConstraintViolation::MissingInteger => crate::model::ValidationExceptionField {
       10944  +
                                                message: format!("Value at '{}/integer' failed to satisfy constraint: Member must not be null", path),
       10945  +
                                                path: path + "/integer",
       10946  +
                                            },
       10947  +
            ConstraintViolation::MissingLong => crate::model::ValidationExceptionField {
       10948  +
                                                message: format!("Value at '{}/long' failed to satisfy constraint: Member must not be null", path),
       10949  +
                                                path: path + "/long",
       10950  +
                                            },
       10951  +
            ConstraintViolation::MissingFloat => crate::model::ValidationExceptionField {
       10952  +
                                                message: format!("Value at '{}/float' failed to satisfy constraint: Member must not be null", path),
       10953  +
                                                path: path + "/float",
       10954  +
                                            },
       10955  +
            ConstraintViolation::MissingDouble => crate::model::ValidationExceptionField {
       10956  +
                                                message: format!("Value at '{}/double' failed to satisfy constraint: Member must not be null", path),
       10957  +
                                                path: path + "/double",
       10958  +
                                            },
       10959  +
            ConstraintViolation::MissingBoolean => crate::model::ValidationExceptionField {
       10960  +
                                                message: format!("Value at '{}/boolean' failed to satisfy constraint: Member must not be null", path),
       10961  +
                                                path: path + "/boolean",
       10962  +
                                            },
       10963  +
            ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
       10964  +
                                                message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
       10965  +
                                                path: path + "/timestamp",
       10966  +
                                            },
       10967  +
        }
10968  10968   
        }
10969  10969   
    }
10970  10970   
    impl ::std::convert::From<ConstraintViolation>
10971  10971   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
10972  10972   
    {
10973  10973   
        fn from(constraint_violation: ConstraintViolation) -> Self {
10974  10974   
            let first_validation_exception_field =
10975  10975   
                constraint_violation.as_validation_exception_field("".to_owned());
10976  10976   
            let validation_exception = crate::error::ValidationException {
10977  10977   
                message: format!(