tzkt / api-sdk-ts

Typed SDK for TzKT API
https://sdk.tzkt.io
MIT License
16 stars 0 forks source link

Allow not passing jsonPath for JsonParameter type args #5

Closed mv-go closed 2 years ago

mv-go commented 2 years ago

Summary Despite TS types stating that jsonPath field in JsonParameter is optional, the runtime error is thrown every time jsonPath is not passed in.

This essentially prohibits creating requests of any patter that looks like this /{bigmap}/keys?key.nat={tokenId}&value.gt=0 Value filter for creating this request should have jsonPath: undefined or not passed in at all.