oav icon indicating copy to clipboard operation
oav copied to clipboard

Example for DELETE doesn't need both Min and Max set

Open abatishchev opened this issue 3 years ago • 2 comments

Currently generated examples include bothMinimumSet and MaximumSet for all verbs. But those for DELETE appear to be always identical.

At least provide an option to customize the behavior.

abatishchev avatar May 05 '22 19:05 abatishchev

@abatishchev , do you mean to allow user to specify these two rules or one of them from CLI?

raych1 avatar May 26 '22 03:05 raych1

Yes, it would be very useful to be able to specify whether user need min, max, or both.

Also whether to put the "mode" into the file name. For example, Cadl expects the file name to match the operation name. But include the mode breaks this expectations, as the result I have to rename one resulting file and delete the another.

In case of delete, the specified preference might be ignored, as I don't think the payload matters. Does it?

abatishchev avatar May 26 '22 04:05 abatishchev