teunmooij / payload-tools

Collection of payload plugins and tools: payload-openapi, payload-swagger, create-payload-api-docs, payload-rbac
https://github.com/teunmooij/payload-tools/#readme
MIT License
101 stars 12 forks source link

Support draft/publish #14

Closed teunmooij closed 1 year ago

teunmooij commented 1 year ago

Description

If a collection support draft, the config contains versions: { draft: true}. Then on an update there's a _status property with value draft or published

We need to support this.

teunmooij commented 1 year ago

This field is already in the type and thus in the openapi doc.