ucfinancegroup / pfp

a personal finance app, focused on projections, written in Rust and React
4 stars 0 forks source link

In OpenAPI Codegen: Value of type 'PlaidJWT' has no member 'encodeToJSON' #48

Closed brettfazio closed 3 years ago

brettfazio commented 3 years ago

https://github.com/ucfinancegroup/pfp/blob/d486356eacd433c0e9db111f2708b60e5925982a/postman/api.yaml#L731-L735

brettfazio commented 3 years ago

Perhaps we need to change our API spec. This is the only route that takes in an input parameter and is thus the only route that provides a codegen error.

The error provided by Xcode:

Value of type 'PlaidJWT' has no member 'encodeToJSON'

The line of codegen are here:

https://github.com/ucfinancegroup/FinchSwiftClient/blob/e2f6525189ec11db9f4f0239e43439d611a81167/OpenAPIClient/Classes/OpenAPIs/APIs/PlaidAPI.swift#L96-L129

And the exact line causing the error is https://github.com/ucfinancegroup/FinchSwiftClient/blob/e2f6525189ec11db9f4f0239e43439d611a81167/OpenAPIClient/Classes/OpenAPIs/APIs/PlaidAPI.swift#L120

c650 commented 3 years ago

The swift client does not need to handle the webhook route. Only plaid uses that route. Comment out these parts of the spec for codegen of swift client.