Closed shalvah closed 1 year ago
This is a breaking change
After I updated to the latest version i get this error:
TypeError
Cannot assign null to property Knuckles\Camel\Extraction\Parameter::$enumValues of type array
at vendor/spatie/data-transfer-object/src/Reflection/DataTransferObjectProperty.php:48
Adds support for limiting parameter values. Works with either a PHP 8.1 enum or an array of values.
Also supported in docblocks:
This will:
enum
key in the OpenAPI specIt does not currently restrict the values that can be entered in Try It Out, as there may still be some value in seeing how invalid values are responded to.
This may be a breaking change, as it replaces the earlier manual description setting (automatically generated for validation rules) with a structured field.
In the internal Scribe API, this adds a new
enumValues
field to the parameter types. This is an array of all valid values.Closes #626