Comments (11)
You can expect a fix by EoD today. Will update in this thread when its pushed out.
from merge-python-client.
You should change the type to typing.Optional[typing.List[typing.Dict[str, typing.Any]]]
If it's okay, I'll fork it and open a new PR addressing this issue
from merge-python-client.
Got it -- that makes sense, the root cause is that the OpenAPI spec is incorrectly representing the API. So @rmkonnur is planning to fix the OpenAPI generation which will then regenerate a proper client library.
from merge-python-client.
merge-python-client/src/merge/resources/filestorage/types/file.py
Lines 31 to 33 in 42f42e4
permissions
should be typed str | List[str]
in the OpenAPI specfrom merge-python-client.
When can I expect the fix?
from merge-python-client.
Should I create our own version of merge client that sends request directly to the API endpoint? I personally believe that not able to list files is a P1 issue and should be fixed ASAP. This has been blocking the service for few days now.
from merge-python-client.
@hwuiwon one option to unblock yourself is to make this change to the library locally (#39). Can you make that change and confirm that the SDK works end-to-end?
Apologize for any inconvenience.
from merge-python-client.
@dsinghvi I just tried and that would yield a different error.
12 validation errors for ParsingModel[PaginatedFileList]
__root__ -> results -> 0 -> permissions
str type expected (type=type_error.str)
__root__ -> results -> 0 -> permissions -> 0
str type expected (type=type_error.str)
__root__ -> results -> 1 -> permissions
str type expected (type=type_error.str)
__root__ -> results -> 1 -> permissions -> 0
str type expected (type=type_error.str)
__root__ -> results -> 2 -> permissions
str type expected (type=type_error.str)
__root__ -> results -> 2 -> permissions -> 0
str type expected (type=type_error.str)
__root__ -> results -> 3 -> permissions
str type expected (type=type_error.str)
__root__ -> results -> 3 -> permissions -> 0
str type expected (type=type_error.str)
__root__ -> results -> 4 -> permissions
str type expected (type=type_error.str)
__root__ -> results -> 4 -> permissions -> 0
str type expected (type=type_error.str)
__root__ -> results -> 5 -> permissions
str type expected (type=type_error.str)
__root__ -> results -> 5 -> permissions -> 0
str type expected (type=type_error.str)
from merge-python-client.
@hwuiwon any chance you are around for 15 min to hop on a zoom? You can join the fern discord and we can chat more realtime there.
from merge-python-client.
Im encountering this problem. It seems that previously the permissions field was a list of (str) ids, like:
"permissions": [
"1496fd39-1b31-42be-9aa4",
"99b321d0-5dad-4268-b73c",
]
But now the permission object looks like:
So i guess just changing the type to str | JSON would fix the library.. but its a kind of breaking change
from merge-python-client.
Hi @hwuiwon, I pushed an update of the File Storage OpenAPI spec to generate the SDK this morning. Please try it out to confirm it fixes your issue. Apologies in the delay here - feel free to escalate via Intercom in the bottom right hand corner of the Merge dashboard for higher priority issues.
Thanks
from merge-python-client.
Related Issues (14)
- Update `httpx` HOT 3
- client.filestorage.users.list(is_me=True) doesn't work HOT 4
- Download file will run into 502 error HOT 10
- Support for pydantic v2 HOT 4
- How do you pass in your account token? HOT 1
- Typed integration names HOT 2
- Lexicographic order HOT 1
- Filestorage files download casts/returns None instead of returning the downloaded bytes HOT 2
- Expand object not using value. HOT 3
- Soften pydantic upper version constraint HOT 5
- Upgrade to Pydantic 2.0 HOT 5
- Asyncio support in README HOT 1
- Python type checking return list base model HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from merge-python-client.