From f0e559d657a270f658a937a40b513c5d291c8157 Mon Sep 17 00:00:00 2001 From: William Alexander Date: Fri, 17 Jan 2025 14:06:54 -0500 Subject: [PATCH] Make Document.Info members mutable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I'm working on a project that requires lots of individual mutation of the entire Document structure, and I couldn't find a particular reason why all the Document.Info fields are immutable. The rest of the structure seems to be mutable and I couldn't find a particular reason why these members need to be immutable. Wondering if there's something I'm overlooking. Thanks so much for this awesome package 😀 --- Sources/OpenAPIKit/Document/DocumentInfo.swift | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Sources/OpenAPIKit/Document/DocumentInfo.swift b/Sources/OpenAPIKit/Document/DocumentInfo.swift index ddbf3a3ed..13a74f1ee 100644 --- a/Sources/OpenAPIKit/Document/DocumentInfo.swift +++ b/Sources/OpenAPIKit/Document/DocumentInfo.swift @@ -13,13 +13,13 @@ extension OpenAPI.Document { /// /// See [OpenAPI Info Object](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.1.0.md#info-object). public struct Info: Equatable, CodableVendorExtendable { - public let title: String - public let summary: String? - public let description: String? - public let termsOfService: URL? - public let contact: Contact? - public let license: License? - public let version: String + public var title: String + public var summary: String? + public var description: String? + public var termsOfService: URL? + public var contact: Contact? + public var license: License? + public var version: String /// Dictionary of vendor extensions. ///