alibaba / alibaba/HandyJSON

Type 'String' does not conform to protocol 'HandyJSON'

Open
#341 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
4.3k
Forks
677
PR merge metrics
No merged PRs in 30d

Description

Hello everyone, please tell me how can I fix it?

![1](https://user-images.githubusercontent.com/7747716/60317252-d1938a80-9933-11e9-888a-2c71cc474e7d.png)

```
import Foundation
import HandyJSON
class BaseResponse: BaseError{
let success: Bool = false
let body: T? = nil
required init() {
}
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue identifies the BaseResponse declaration and the Swift compiler error; start by reproducing that declaration with the HandyJSON dependency and inspecting the protocol requirements. Done means the reported conformance error is resolved and the example builds.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.