Added 'hash' to objcReservedWords (#8582)

Fix for https://github.com/OpenAPITools/openapi-generator/issues/7991
This commit is contained in:
Pe-te 2021-02-01 06:31:30 +01:00 committed by GitHub
parent 6dee98784a
commit c12f6041f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,6 +140,8 @@ public class Swift5ClientCodegen extends DefaultCodegen implements CodegenConfig
// Added for Objective-C compatibility // Added for Objective-C compatibility
"id", "description", "NSArray", "NSURL", "CGFloat", "NSSet", "NSString", "NSInteger", "NSUInteger", "id", "description", "NSArray", "NSURL", "CGFloat", "NSSet", "NSString", "NSInteger", "NSUInteger",
"NSError", "NSDictionary", "NSError", "NSDictionary",
// 'Property 'hash' with type 'String' cannot override a property with type 'Int' (when objcCompatible=true)
"hash",
// Cannot override with a stored property 'className' // Cannot override with a stored property 'className'
"className" "className"
) )