We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6bc177 commit 042a54aCopy full SHA for 042a54a
Sources/OpenAPIKit/Schema Object/JSONSchema.swift
@@ -13,7 +13,7 @@ import OpenAPIKitCore
13
public struct JSONSchema: JSONSchemaContext, HasWarnings {
14
15
public let warnings: [OpenAPI.Warning]
16
- public let value: Schema
+ public var value: Schema
17
18
internal init(warnings: [OpenAPI.Warning], schema: Schema) {
19
self.warnings = warnings
@@ -441,8 +441,8 @@ extension JSONSchema: VendorExtendable {
441
get {
442
coreContext.vendorExtensions
443
}
444
- set {
445
- coreContext.vendorExtensions
+ set(extensions) {
+ self.value = value.with(vendorExtensions: extensions)
446
447
448
0 commit comments