mattpolzin / mattpolzin/JSONAPI

Warning: Redundant constrant on Transformer

Open
#90 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
81
Forks
21
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
Getting a compile warning on Attribute.swift on line 39 for extension TransformedAttribute "Redundant conformance constraint 'Transformer' : 'Transformer'.

Platform (only for runtime bugs):
MacOS 11.0.1
Xcode 12.2

Context
JSONAPI is included and installed as a CocoaPod but not imported or used in code, just having it available throws the warning.

Do you plan to fix yourself?
I might but It's a bit beyond my understanding at the moment.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open Attribute.swift at line 39 and inspect the TransformedAttribute extension and its Transformer constraint. Reproduce the warning in the reported CocoaPods/Xcode setup, then verify that the redundant-conformance warning is absent while the framework still compiles.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.