@@ -101,7 +101,7 @@ class JsonParserGenerator(
101101 ReturnSymbolToParse (codegenContext.symbolProvider.toSymbol(shape), false)
102102 },
103103 private val customizations : List <JsonParserCustomization > = listOf(),
104- smithyJson : RuntimeType = RuntimeType .smithyJson(codegenContext.runtimeConfig),
104+ smithyJsonWithFeatureFlag : RuntimeType = RuntimeType .smithyJson(codegenContext.runtimeConfig),
105105) : StructuredDataParserGenerator {
106106 private val model = codegenContext.model
107107 private val symbolProvider = codegenContext.symbolProvider
@@ -111,20 +111,20 @@ class JsonParserGenerator(
111111 private val builderInstantiator = codegenContext.builderInstantiator()
112112 private val codegenScope =
113113 arrayOf(
114- " Error" to smithyJson .resolve(" deserialize::error::DeserializeError" ),
115- " expect_blob_or_null" to smithyJson .resolve(" deserialize::token::expect_blob_or_null" ),
116- " expect_bool_or_null" to smithyJson .resolve(" deserialize::token::expect_bool_or_null" ),
117- " expect_document" to smithyJson .resolve(" deserialize::token::expect_document" ),
118- " expect_number_or_null" to smithyJson .resolve(" deserialize::token::expect_number_or_null" ),
119- " expect_start_array" to smithyJson .resolve(" deserialize::token::expect_start_array" ),
120- " expect_start_object" to smithyJson .resolve(" deserialize::token::expect_start_object" ),
121- " expect_string_or_null" to smithyJson .resolve(" deserialize::token::expect_string_or_null" ),
122- " expect_timestamp_or_null" to smithyJson .resolve(" deserialize::token::expect_timestamp_or_null" ),
123- " json_token_iter" to smithyJson .resolve(" deserialize::json_token_iter" ),
114+ " Error" to smithyJsonWithFeatureFlag .resolve(" deserialize::error::DeserializeError" ),
115+ " expect_blob_or_null" to smithyJsonWithFeatureFlag .resolve(" deserialize::token::expect_blob_or_null" ),
116+ " expect_bool_or_null" to smithyJsonWithFeatureFlag .resolve(" deserialize::token::expect_bool_or_null" ),
117+ " expect_document" to smithyJsonWithFeatureFlag .resolve(" deserialize::token::expect_document" ),
118+ " expect_number_or_null" to smithyJsonWithFeatureFlag .resolve(" deserialize::token::expect_number_or_null" ),
119+ " expect_start_array" to smithyJsonWithFeatureFlag .resolve(" deserialize::token::expect_start_array" ),
120+ " expect_start_object" to smithyJsonWithFeatureFlag .resolve(" deserialize::token::expect_start_object" ),
121+ " expect_string_or_null" to smithyJsonWithFeatureFlag .resolve(" deserialize::token::expect_string_or_null" ),
122+ " expect_timestamp_or_null" to smithyJsonWithFeatureFlag .resolve(" deserialize::token::expect_timestamp_or_null" ),
123+ " json_token_iter" to smithyJsonWithFeatureFlag .resolve(" deserialize::json_token_iter" ),
124124 " Peekable" to RuntimeType .std.resolve(" iter::Peekable" ),
125- " skip_value" to smithyJson .resolve(" deserialize::token::skip_value" ),
126- " skip_to_end" to smithyJson .resolve(" deserialize::token::skip_to_end" ),
127- " Token" to smithyJson .resolve(" deserialize::Token" ),
125+ " skip_value" to smithyJsonWithFeatureFlag .resolve(" deserialize::token::skip_value" ),
126+ " skip_to_end" to smithyJsonWithFeatureFlag .resolve(" deserialize::token::skip_to_end" ),
127+ " Token" to smithyJsonWithFeatureFlag .resolve(" deserialize::Token" ),
128128 " or_empty" to orEmptyJson(),
129129 * preludeScope,
130130 )
0 commit comments