I am trying to document a Laravel API using l5-swagger (swagger-php). I have a request body where one property is a map of wallet IDs to effective dates, like this in PHP:
[
11 => "2025-12-21",
14 => "2025-11-29"
]
I want to define it in OpenAPI so that:
The property is an object with dynamic keys (wallet IDs).
Each value is a date string (Y-m-d).
The Swagger UI displays an example of the map.
What is the correct way to define an object with dynamic keys and date values in l5-swagger so that:
The PHP request can still be [id => date]
Swagger UI displays an example of the map
Doctrine annotations do not throw errors
Any help or working example would be greatly appreciated