Closed iksi closed 2 months ago
The Collection interface seems to have the wrong type in src/api/types/Collection.ts:
Collection
src/api/types/Collection.ts
/** The list of fields in the Collection */ fields: Record<string, unknown>;
It seems that this should be an array of Field (from src/api/types/Field.d.ts):
Field
src/api/types/Field.d.ts
fields: Field[];
Currently I’m getting this warning when running webflowClient.collections.get:
webflowClient.collections.get
Failed to validate. - response.fields: Expected object. Received list.
Also see https://github.com/webflow/js-webflow-api/issues/138#issue-2227378133
Closing as this is fixed with the latest version of the SDK.
The
Collection
interface seems to have the wrong type insrc/api/types/Collection.ts
:It seems that this should be an array of
Field
(fromsrc/api/types/Field.d.ts
):Currently I’m getting this warning when running
webflowClient.collections.get
: