Hello, nice that you like it!
It’s not possible, there was a discussion over a few years about it https://github.com/zircote/swagger-php/issues/39, but they decided to not implement it and suggested to use $ref and composition.
Maybe the oneOf composition can help you
oneOf={
@OA\Schema(ref="#/components/schemas/Something"),
@OA\Schema(ref="#/components/schemas/SomethingElse"),
}
https://swagger.io/docs/specification/data-models/oneof-anyof-allof-not/#oneof