Cleaning and regenerating

This commit is contained in:
Luke Hagar
2024-04-11 11:09:16 -05:00
parent 5beda3b623
commit 5c1a849e2e
518 changed files with 0 additions and 27808 deletions

View File

@@ -1,17 +0,0 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
func jsonEncoder() -> JSONEncoder {
let jsonEncoder = JSONEncoder()
// Sort keys to make this easier to test resulting JSON.
jsonEncoder.outputFormatting = [.sortedKeys]
return jsonEncoder
}
func serializeEncodable(_ encodable: Encodable?) throws -> String? {
guard let encodable else { return nil }
let data = try jsonEncoder().encode(encodable)
return String(data: data, encoding: .utf8)
}