Skip to content

Commit

Permalink
2.18.3
Browse files Browse the repository at this point in the history
  • Loading branch information
dankinsoid committed Nov 11, 2023
1 parent 20852f9 commit dca73b6
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ import PackageDescription
let package = Package(
name: "SomeProject",
dependencies: [
.package(url: "https://github.com/dankinsoid/SwiftOpenAPI.git", from: "2.18.2")
.package(url: "https://github.com/dankinsoid/SwiftOpenAPI.git", from: "2.18.3")
],
targets: [
.target(name: "SomeProject", dependencies: ["SwiftOpenAPI"])
Expand Down
2 changes: 1 addition & 1 deletion SwiftOpenAPI.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'SwiftOpenAPI'
s.version = '2.18.2'
s.version = '2.18.3'
s.summary = 'A short description of SwiftOpenAPI.'
s.description = <<-DESC
TODO: Add long description of the pod here.
Expand Down
22 changes: 21 additions & 1 deletion Tests/SwiftOpenAPITests/ArrayDecodingTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,27 @@ class ArrayDecodingTests: XCTestCase {
func testDecodeArray() throws {
var schemas: ComponentsMap<SchemaObject> = [:]
_ = try ReferenceOr<SchemaObject>.decodeSchema(Tag.ListResponse.self, into: &schemas)
prettyPrint(schemas)
XCTAssertNoDifference(
schemas,
[
"TagResponse": .object(
properties: [
"id": .integer,
"value": .string
],
required: [
"id",
"value"
]
),
"TagListResponse": .object(
properties: [
"tags": .array(of: .ref(components: \.schemas, "TagResponse"))
],
required: ["tags"]
)
]
)
}
}

Expand Down

0 comments on commit dca73b6

Please sign in to comment.