Open yannick-softwerft opened 4 months ago
Could you add some tests as well? You don't necessarily need to add new tests, just find some of the tests around @responseField
and #[ResponseField]
and ensure they generate the correct parameter values. Also add some cases in the OpenAPI spec writer test that handle required/optional.
Could you add some tests as well? You don't necessarily need to add new tests, just find some of the tests around
@responseField
and#[ResponseField]
and ensure they generate the correct parameter values. Also add some cases in the OpenAPI spec writer test that handle required/optional.
Yes, I will do that, but I will probably not be able to do it until 15.03.2024.
Ready for review? It's still marked as draft.
Extends the documentation for @responseField tags by adding the required field.
Format before was:
Format after is:
If required is set in the documentation it will set the new
$required
- property (ResponseField Dto) to true. All fields that have the required property set to true will be added to the openapi spec for object types.