SimplePet.php 553 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace Petstore;
  3. /**
  4. * @OA\Schema(schema="NewPet", required={"name"})
  5. */
  6. class SimplePet
  7. {
  8. public $id;
  9. /**
  10. * @OA\Property()
  11. * @var string
  12. */
  13. public $name;
  14. /**
  15. * @var string
  16. * @OA\Property()
  17. */
  18. public $tag;
  19. }
  20. /**
  21. * @OA\Schema(
  22. * schema="Pet",
  23. * type="object",
  24. * allOf={
  25. * @OA\Schema(ref="#/components/schemas/NewPet"),
  26. * @OA\Schema(
  27. * required={"id"},
  28. * @OA\Property(property="id", format="int64", type="integer")
  29. * )
  30. * }
  31. * )
  32. */