From 5a792abca93173e3ad973d73a01e2fffcbb07c85 Mon Sep 17 00:00:00 2001 From: Xiliang Chen Date: Wed, 4 Dec 2024 12:10:35 +1300 Subject: [PATCH] Fix build (#241) * use exact 0.2.1 for json schema * improve title --- Tools/Package.swift | 2 +- Tools/Sources/Tools/OpenRPC.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/Package.swift b/Tools/Package.swift index 44cc66e3..a8b9fb7f 100644 --- a/Tools/Package.swift +++ b/Tools/Package.swift @@ -13,7 +13,7 @@ let package = Package( .package(path: "../TracingUtils"), .package(path: "../Utils"), .package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.5.0"), - .package(url: "https://github.com/ajevans99/swift-json-schema.git", from: "0.2.1"), + .package(url: "https://github.com/ajevans99/swift-json-schema.git", exact: "0.2.1"), .package(url: "https://github.com/wickwirew/Runtime.git", from: "2.2.7"), ], targets: [ diff --git a/Tools/Sources/Tools/OpenRPC.swift b/Tools/Sources/Tools/OpenRPC.swift index be6dbbf2..7b84a8d3 100644 --- a/Tools/Sources/Tools/OpenRPC.swift +++ b/Tools/Sources/Tools/OpenRPC.swift @@ -107,7 +107,7 @@ func getSchema(type: Any.Type) -> any JSONSchemaComponent { getSchema(type: field.type) } } - }.title(String(describing: type)) + }.title(getName(type: type)) } default: return build {