@@ -45,9 +45,6 @@ struct TypeAssigner {
45
45
/// safe to be used as a Swift identifier.
46
46
var asSwiftSafeName : ( String ) -> String
47
47
48
- ///Enable decoding and encoding of as base64-encoded data strings.
49
- var enableBase64EncodingDecoding : Bool
50
-
51
48
/// Returns a type name for an OpenAPI-named component type.
52
49
///
53
50
/// A component type is any type in `#/components` in the OpenAPI document.
@@ -331,10 +328,7 @@ struct TypeAssigner {
331
328
inParent parent: TypeName ,
332
329
subtype: SubtypeNamingMethod
333
330
) throws -> TypeUsage {
334
- let typeMatcher = TypeMatcher (
335
- asSwiftSafeName: asSwiftSafeName,
336
- enableBase64EncodingDecoding: enableBase64EncodingDecoding
337
- )
331
+ let typeMatcher = TypeMatcher ( asSwiftSafeName: asSwiftSafeName)
338
332
// Check if this type can be simply referenced without
339
333
// creating a new inline type.
340
334
if let referenceableType = try typeMatcher. tryMatchReferenceableType ( for: schema, components: components) {
@@ -551,20 +545,10 @@ struct TypeAssigner {
551
545
extension FileTranslator {
552
546
553
547
/// A configured type assigner.
554
- var typeAssigner: TypeAssigner {
555
- TypeAssigner(
556
- asSwiftSafeName: swiftSafeName,
557
- enableBase64EncodingDecoding: config.featureFlags.contains(.base64DataEncodingDecoding)
558
- )
559
- }
548
+ var typeAssigner: TypeAssigner { TypeAssigner(asSwiftSafeName: swiftSafeName) }
560
549
561
550
/// A configured type matcher.
562
- var typeMatcher: TypeMatcher {
563
- TypeMatcher(
564
- asSwiftSafeName: swiftSafeName,
565
- enableBase64EncodingDecoding: config.featureFlags.contains(.base64DataEncodingDecoding)
566
- )
567
- }
551
+ var typeMatcher: TypeMatcher { TypeMatcher(asSwiftSafeName: swiftSafeName) }
568
552
}
569
553
570
554
/// An error used during the parsing of JSON references specified in an
0 commit comments