webflow / openapi-spec

OpenAPI specification for the Webflow REST API
http://developers.webflow.com
MIT License
11 stars 2 forks source link

`fields` in Collection API is missing properties #3

Open p2004a opened 1 day ago

p2004a commented 1 day ago

There is at least no MultiReference and Option as possible values in the fields[].type enum even those can be returned.

Moreover fields[].validations is also not defined at all.

This is impacting https://github.com/webflow/js-webflow-api because the generated TypeScript types are incomplete.

The different types and validations could be modeled with https://swagger.io/docs/specification/v3_0/data-models/inheritance-and-polymorphism/ Discriminator.

victoriaplummer commented 4 hours ago

Thanks for flagging. @p2004a - investigating this.