Kitura / SwiftyRequest

SwiftyRequest is an HTTP networking library built for Swift.
Apache License 2.0
110 stars 19 forks source link

Make ClientCertificate init scope public #41

Closed alexhumphreys closed 6 years ago

alexhumphreys commented 6 years ago

I was trying to initialise this class from another module and ran into the error:

'ClientCertificate' initializer is inaccessible due to 'internal' protection level

From the apple swift docs:

Default Memberwise Initializers for Structure Types The default memberwise initializer for a structure type is considered private if any of the structure’s stored properties are private. Likewise, if any of the structure’s stored properties are file private, the initializer is file private. Otherwise, the initializer has an access level of internal.

As with the default initializer above, if you want a public structure type to be initializable with a memberwise initializer when used in another module, you must provide a public memberwise initializer yourself as part of the type’s definition.

This PR adds provides that public memberwise initializer.

CLAassistant commented 6 years ago

CLA assistant check
All committers have signed the CLA.

ianpartridge commented 6 years ago

Thanks!