yii2-openapi
yii2-openapi copied to clipboard
REST API application generator for Yii2, openapi 3.0 YAML -> Yii2
**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".  **reproduction steps** - execute `./yii gii/api` to generate code...
**initial** - MariaDB - "schema.yaml" with attribute, which has type "enum"  - 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 