Skip to content

Commit 29b994e

Browse files
committed
Update OpenAPI.Content.Encoding usage according to OpenAPIKit v4 Migration Guide
1 parent 70f60d0 commit 29b994e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/OpenAPIGeneratorCoreTests/Translator/TypeAssignment/Test_TypeMatcher.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ final class Test_TypeMatcher: Test_Core {
245245
static let multipartElementTypeReferenceIfReferenceableTypes:
246246
[(UnresolvedSchema?, OrderedDictionary<String, OpenAPI.Content.Encoding>?, String?)] = [
247247
(nil, nil, nil), (.b(.string), nil, nil), (.a(.component(named: "Foo")), nil, "Foo"),
248-
(.a(.component(named: "Foo")), ["foo": .init(contentType: .json)], nil),
248+
(.a(.component(named: "Foo")), ["foo": .init(contentTypes: [.json])], nil),
249249
]
250250
func testMultipartElementTypeReferenceIfReferenceableTypes() throws {
251251
for (schema, encoding, name) in Self.multipartElementTypeReferenceIfReferenceableTypes {

0 commit comments

Comments
 (0)