Skip to content

Commit 84081c4

Browse files
Makes SelfDescribingJson class open to allow for inheritance (#906)
This allow inheritance on the client side. This as the behaviour available with Objc version of the SDK and one I could not find any drawback in the current state of the SDK. Being able to inherit allows of use of type's init while preserving SelfDescribingJson identity.
1 parent 53881e5 commit 84081c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Snowplow/Payload/SelfDescribingJson.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import Foundation
1818
/// This class holds the information of a self-describing JSON.
1919
/// - seealso: SPPayload
2020
@objc(SPSelfDescribingJson)
21-
public class SelfDescribingJson: NSObject {
21+
open class SelfDescribingJson: NSObject {
2222
/// the schema URI for this self-describing JSON.
2323
@objc
2424
public var schema: String

0 commit comments

Comments
 (0)