Open mwillbanks opened 1 month ago
4.31.0
It would be helpful as most API's actually leverage the exact model for inputs to be able to do something like:
@bodyParam [] App\Model\MyModel with=... omits=some_field,with_relation.field
It doesn't currently appear that this is possible but rather it's recommended to always use Form handlers but this would be a nice feature especially for quick building of the spec docs.
Seems interesting. I'd welcome a PR with support for this, then we can refine the implementation from there.
Scribe version
4.31.0
Your question
It would be helpful as most API's actually leverage the exact model for inputs to be able to do something like:
@bodyParam [] App\Model\MyModel with=... omits=some_field,with_relation.field
It doesn't currently appear that this is possible but rather it's recommended to always use Form handlers but this would be a nice feature especially for quick building of the spec docs.
Docs