From e4ef61fd56fc2329ce4c02769afc0672a98d4827 Mon Sep 17 00:00:00 2001 From: Mathew Polzin Date: Sun, 27 Jan 2019 12:46:13 -0800 Subject: [PATCH] bugfix: OpenAPI path components should begin with a slash. --- Sources/JSONAPIOpenAPI/OpenAPI/OpenAPITypes.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/JSONAPIOpenAPI/OpenAPI/OpenAPITypes.swift b/Sources/JSONAPIOpenAPI/OpenAPI/OpenAPITypes.swift index b17dea5..eed839b 100644 --- a/Sources/JSONAPIOpenAPI/OpenAPI/OpenAPITypes.swift +++ b/Sources/JSONAPIOpenAPI/OpenAPI/OpenAPITypes.swift @@ -933,7 +933,7 @@ public struct OpenAPISchema { } public var rawValue: String { - return components.joined(separator: "/") + return "/\(components.joined(separator: "/"))" } public func encode(to encoder: Encoder) throws {