yii2-openapi icon indicating copy to clipboard operation
yii2-openapi copied to clipboard

REST API application generator for Yii2, openapi 3.0 YAML -> Yii2

Results 53 yii2-openapi issues
Sort by recently updated
recently updated
newest added

**Initial** _schema.yaml_ ``` openapi: 3.0.3 # Edit this schema and start your project # This is sample schema # To generate code which is based on this schema # run...

**initial** - MariaDB - "schema.yaml" In my table there is a reference to another table which has the word "mail". ![mail_schema](https://github.com/cebe/yii2-openapi/assets/43443582/40650b4b-9658-492f-a501-86c0684d2de2) **reproduction steps** - execute `./yii gii/api` to generate code...

**initial** - MariaDB - "schema.yaml" with attribute, which has type "enum" ![schema yaml](https://github.com/cebe/yii2-openapi/assets/43443582/6c8e20f2-a557-4d08-bb80-17a24dcf70ce) - this new attribute can be NULL ! **reproduction steps** - execute `./yii gii/api` to generate code...

### Error with migrate down **Initial state:** _schema.yaml_ ``` schemas: InvoiceDetail: type: object required: - id - customer - countryCode - postCode x-indexes: - 'unique:customer,countryCode,postCode' properties: id: type: integer customer:...

**Initial** _schema.yaml_ ``` openapi: 3.0.3 # Edit this schema and start your project # This is sample schema # To generate code which is based on this schema # run...

In order to setting up this lib locally for development following CONTRIBUTING.md, I faced error ``` $ make migrate docker-compose run --user=5886 --rm php sh -c 'mkdir -p "tests/tmp/app"' Creating...

Hi, I have looked online and in the docs, cant see this issue. When I generate with ./yii gii/api --openApiPath=http://localhost:3000/documentation/json My base classes all have a broken findModel method. I...

See file : [yii2-openapi/tests/specs/blog_v2/migrations_pgsql_db/m200000_000000_change_table_v2_posts.php](https://github.com/cebe/yii2-openapi/blob/master/tests/specs/blog_v2/migrations_pgsql_db/m200000_000000_change_table_v2_posts.php) ```php // after deleting uid this should be executed, // currently getting error about 2 PK in one table $this->addColumn('{{%v2_posts}}', 'id', $this->bigPrimaryKey()); $this->execute('CREATE TYPE "enum_itt_v2_posts_lang" AS...

```php class m200000_000000_change_table_fruits extends \yii\db\Migration { public function safeUp() { $this->alterColumn('{{%fruits}}', 'name', $this->string(151)->notNull()); // below line is not needed, it should not be generated for above migration statement $this->alterColumn('{{%fruits}}', 'name',...

Please see https://github.com/cebe/yii2-openapi/pull/141/files#diff-76ed074a9305c04054cdebb9e9aad2d818052b07091de1f20cad0bbac34ffb52 scroll down a bit ![github-comment](https://github.com/cebe/yii2-openapi/assets/6770119/da1692a6-8ba4-443f-8dc3-320e873315ba)