Skip to content

Commit 8fc2ca8

Browse files
authored
Fix tool JSON parameters (#9)
1 parent 911cb65 commit 8fc2ca8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Models/Tool.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ import MetaCodable
116116
public var minItems: Int?
117117
public var maxItems: Int?
118118
public var uniqueItems: Bool?
119+
public var required: [String]?
120+
public var additionalProperties: Bool?
119121

120122
public init(
121123
type: JSONType,
@@ -128,7 +130,9 @@ import MetaCodable
128130
maximum: Double? = nil,
129131
minItems: Int? = nil,
130132
maxItems: Int? = nil,
131-
uniqueItems: Bool? = nil
133+
uniqueItems: Bool? = nil,
134+
required: [String]? = nil,
135+
additionalProperties: Bool? = false
132136
) {
133137
self.type = type
134138
self.properties = properties
@@ -141,6 +145,8 @@ import MetaCodable
141145
self.minItems = minItems
142146
self.maxItems = maxItems
143147
self.uniqueItems = uniqueItems
148+
self.required = required
149+
self.additionalProperties = additionalProperties
144150
}
145151
}
146152
}

0 commit comments

Comments
 (0)