feat(protocol): carry complete encoded media frames
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// Code generated by tools/generate.py; DO NOT EDIT.
|
||||
import Foundation
|
||||
public typealias JSONObject = [String: String]
|
||||
public let schemaSHA256 = "3aec8dd72bdbb6b9657c8df3160252c93034c7c1032d471e01eae2ef91e47716"
|
||||
public let schemaSHA256 = "a86cbdaf2cfb884e3d98467968007e731ca55c6f6eb6dbd5cd6b95e062a9b058"
|
||||
public let currentWireVersion = "1"
|
||||
public let nMinus1WireVersion = "0"
|
||||
public let nMinus2WireVersion = "-1"
|
||||
@@ -278,9 +278,7 @@ public struct CapabilityProfile: Codable, Equatable {
|
||||
if self.transport.isEmpty { throw ContractValidationError(field: "transport", code: "required") }
|
||||
if !self.transport.isEmpty && self.transport.utf8.count < 1 { throw ContractValidationError(field: "transport", code: "min_length") }
|
||||
if self.transport.utf8.count > 64 { throw ContractValidationError(field: "transport", code: "max_length") }
|
||||
if self.framing.isEmpty { throw ContractValidationError(field: "framing", code: "required") }
|
||||
if !self.framing.isEmpty && self.framing.utf8.count < 1 { throw ContractValidationError(field: "framing", code: "min_length") }
|
||||
if self.framing.utf8.count > 64 { throw ContractValidationError(field: "framing", code: "max_length") }
|
||||
if !["datagram-v1", "datagram-v2"].contains(self.framing) { throw ContractValidationError(field: "framing", code: "invalid_value") }
|
||||
if self.media.isEmpty { throw ContractValidationError(field: "media", code: "required") }
|
||||
if !self.media.isEmpty && self.media.utf8.count < 1 { throw ContractValidationError(field: "media", code: "min_length") }
|
||||
if self.media.utf8.count > 64 { throw ContractValidationError(field: "media", code: "max_length") }
|
||||
|
||||
Reference in New Issue
Block a user