You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if this is really a bug but I'm trying to extend the Page struct from FluentKit on my project and it's saying that the T is not conforming to Encodable but it seems it is extending the Page to Encodable. I am guessing it migh be because the extension was internal and not set to public? This is the error I am getting Type 'T' does not conform to protocol 'Encodable'
To Reproduce
Steps to reproduce the behavior:
Create a protocol and inside the protocol to use the page's items.
Create an extension for Page that uses the protocol
You'll get the error that T is not encodable.
Expected behavior
That T is encodable even when used in an extension.
Environment
Vapor Framework version: 4.69.2
Vapor Toolbox version: Not installed
OS version: MacOS 13.2
Additional context
You can message me directly if you'd like to do one on one to figure out the issue.
The text was updated successfully, but these errors were encountered:
Just realized that T does not conform to Encodable or Decodable. It's just an extension where T is encodable or decodable. Is there a reason why T does not directly conform to codable?
Describe the bug
Not sure if this is really a bug but I'm trying to extend the
Page
struct from FluentKit on my project and it's saying that the T is not conforming to Encodable but it seems it is extending thePage
toEncodable
. I am guessing it migh be because the extension was internal and not set to public? This is the error I am gettingType 'T' does not conform to protocol 'Encodable'
To Reproduce
Steps to reproduce the behavior:
Expected behavior
That T is encodable even when used in an extension.
Environment
Additional context
You can message me directly if you'd like to do one on one to figure out the issue.
The text was updated successfully, but these errors were encountered: