-> @haileys.quest @blakes.dev · Nov 30

Looks like Swift/Vapor doesn't want me to have a dictionary value of varying type. If I explicitly cast it to `[String:Content]` (Content is a Vapor type, which is something it expects), it tells me I can't specify the type as a protocol, it has to be a […] [Original post on infosec.town]

1 likes 0 replies

?

Replies

-> @haileys.quest · Nov 30

Putting "true" in quotes gets it to compile and the errors disappear, and yes, the endpoint does output that as JSON, correct content-type and everything. But I can't mix types in this dict. Such bullshit.