preaction / Yancy

The Best Web Framework Deserves the Best Content Management System
http://preaction.me/yancy/
Other
54 stars 21 forks source link

Option to exclude particular schema from OpenAPI #105

Closed pavelsr closed 4 years ago

pavelsr commented 4 years ago

I want that one schema be editable only from Yancy form. Is there any out-of-the box way to do that?

Ideally if there was an option, let's call it x-api-hidden, that does inverse logic to x-hidden:

Option \ Exclude from API Rich form
x-hidden - +
x-api-hidden + -
x-ignore + +
preaction commented 4 years ago

Do you mean editable only by $c->yancy->form->form_for(), or editable by the Yancy editor application (which uses the API)? x-ignore should make it not available to the API, but still available to $c->yancy->form->form_for().