[The specs](https://swagger.io/specification/) has a set of rules for types and should be used to generate PHP types