You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version info - I'm using scribe 4.16.0 with laravel 10
I've read the documentation and I can't find details on how to achieve this.
I've searched the word enum in the documentation, but only found one occurence which was irrelevant.
The question is rather related to the generated openapi.yaml file.
As shown in the documentation page, openapi specification supports enums as parameters.
This helps the documentation to show dropdown menus for parameters having several predefined values, as in the following image:
Question
So, do we have a way to annotate a parameter in the comment blocks so that scribe generates the openapi.yaml file with enum value list? I guess I can override this via nn.yaml or config/scribe.php files, but it would be nice to do this via comment blocks.
Thanks!
The text was updated successfully, but these errors were encountered:
scribe 4.16.0
withlaravel 10
enum
in the documentation, but only found one occurence which was irrelevant.The question is rather related to the generated
openapi.yaml
file.As shown in the documentation page, openapi specification supports
enum
s as parameters.This helps the documentation to show dropdown menus for parameters having several predefined values, as in the following image:
Question
So, do we have a way to annotate a parameter in the comment blocks so that scribe generates the
openapi.yaml
file withenum
value list? I guess I can override this viann.yaml
orconfig/scribe.php
files, but it would be nice to do this via comment blocks.Thanks!
The text was updated successfully, but these errors were encountered: