Closed reefdog closed 2 months ago
Grumble grumble.
So this is properly marked as readonly: https://github.com/PhilanthropyDataCommons/service/blob/5795b15786e3c3d098af6522b8d61d5e6de3b386/src/openapi.json#L250
However it looks like swagger codegen is not honoring that fact. I'm going to take a moment trying to figure out the state of reality with swagger codegen right now to make sure we're on the latest version.
Some related resources:
Some of this might also inform fixes to #1004
When trying to use an argument of
WritablePresignedPostRequest
type — which should only requirefileType
andfileSize
— TypeScript gets bigmad that we aren't includingpresignedPost
as well.This API-access hook should work:
And would be called thusly:
However, that implementation throws this error:
Our temporary fix on the front end was to instead define and use this local type in the callback: