Skip to content

Commit

Permalink
test the accessor for the core context inferred property.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpolzin committed Nov 13, 2023
1 parent 973d357 commit 74ef7bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -837,6 +837,7 @@ extension SchemaFragmentTests {
let decoded3 = try orderUnstableDecode(JSONSchema.self, from: t3)

XCTAssertEqual(decoded3, JSONSchema.object(.init(), .init(properties: ["hello": .fragment(.init(required: true, _inferred: true))])))
XCTAssertEqual(decoded3.objectContext?.properties["hello"]?.inferred, true)

let t4 =
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -834,6 +834,7 @@ extension SchemaFragmentTests {
let decoded3 = try orderUnstableDecode(JSONSchema.self, from: t3)

XCTAssertEqual(decoded3, JSONSchema.object(.init(), .init(properties: ["hello": .fragment(.init(required: true, _inferred: true))])))
XCTAssertEqual(decoded3.objectContext?.properties["hello"]?.inferred, true)

let t4 =
"""
Expand Down

0 comments on commit 74ef7bb

Please sign in to comment.