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
I have a very long list (hundreds) of items in Rule::in().
I would like to hide the "Must be one of" in the generated docs, but I can not find a way to do this.
Did I miss anything?
Using the FormRequest variant:
<?php
/**
* Get the validation rules that apply to the request.
*
* @return array<string, mixed>
*/
public function rules(): array
{
return [
'records.*.data.*.descriptor' => [ 'required', 'string', Rule::in( Descriptor::getAllUids() ) ],
];
}
/**
* Documentation for Scribe API documentary.
*
* @return array[]
*/
public function bodyParameters(): array
{
return [
'records.*.data.*.descriptor' => [
'description' => 'UID of the descriptor.',
'example' => '0.0.NTSCD55',
],
];
}
Scribe version
4.39.0
Your question
I have a very long list (hundreds) of items in Rule::in().
I would like to hide the "Must be one of" in the generated docs, but I can not find a way to do this.
Did I miss anything?
Using the FormRequest variant:
Docs
The text was updated successfully, but these errors were encountered: