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 {