Skip to content

Commit 1969b08

Browse files
committed
fix: Use JSON Encoder by default to respond to requests
1 parent c5d5b5c commit 1969b08

File tree

3 files changed

+91
-55
lines changed

3 files changed

+91
-55
lines changed

Package.resolved

Lines changed: 88 additions & 52 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ let package = Package(
2121
dependencies: [
2222
.package(
2323
url: "https://github.com/vapor/vapor.git",
24-
.upToNextMajor(from: "4.113.2")
24+
.upToNextMajor(from: "4.115.1")
2525
),
2626
.package(
2727
url: "https://github.com/netreconlab/Parse-Swift.git",
28-
.upToNextMajor(from: "5.12.0")
28+
.upToNextMajor(from: "5.12.3")
2929
)
3030
],
3131
targets: [

Sources/ParseServerSwift/Parse.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func initializeServer(
5353
) async throws {
5454

5555
// Parse uses tailored encoders/decoders. These can be retrieved from any ParseObject
56-
ContentConfiguration.global.use(encoder: User.getEncoder(), for: .json)
56+
ContentConfiguration.global.use(encoder: User.getJSONEncoder(), for: .json)
5757
ContentConfiguration.global.use(decoder: User.getDecoder(), for: .json)
5858

5959
guard let parseServerURL = URL(string: configuration.primaryParseServerURLString) else {

0 commit comments

Comments
 (0)