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 1696f9e commit fdc3a71Copy full SHA for fdc3a71
Sources/OpenAPIKitCore/AnyCodable/AnyCodable.swift
@@ -213,7 +213,7 @@ extension AnyCodable {
213
case let uint32 as UInt32:
214
self = .int(Int(uint32))
215
case let uint64 as UInt64:
216
- self = .int(Int(uint64))
+ self = .int(Int(min(uint64, UInt64(Int.max))))
217
case let float as Float:
218
self = .double(Double(float))
219
case let double as Double:
0 commit comments