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

(ans same for junction tables for keep schema column names in unified style)

For field with bool data type which have default value either `true` or `false`, and not in required section, its migration is generated as `$this->boolean()->null()->defaultValue(false)` Ideally it should be `$this->boolean()->defaultValue(false)`...

example json api resource schema: ```yaml _TaskResource: type: object properties: id: type: integer example: 1 type: type: string enum: - "tasks" ```

enhancement
generator-feature

Hey, there! I'm PHP contributor of [OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator) project. I used OAS3 schema with generated PHP server for a few years already and just noticed your package. Maybe you should...

According to the OAS 3 Spec, status codes that are available are defined in https://tools.ietf.org/html/rfc7231#section-6 The generated code is returning 422 for example. https://github.com/OAI/OpenAPI-Specification/blob/3.0.2/versions/3.0.2.md#httpCodes These code is not defined in...

generator-feature

The generated code does not respect the "readOnly" property. This is because of the generated model rules. and the requestbody is loaded against the DatabaseModel. It could be a good...

generator-feature

thanks for this great tool! with composer config: ``` "config": { "platform": {"php": "8.1"}, ``` we get this error: ``` Problem 1 - laminas/laminas-code[3.4.0, ..., 3.4.1] require php ^7.1 ->...

OpenAPI schema ``` properties: id: type: integer list_owner: $ref: '#/components/schemas/ListOwner' price: description: price in EUR type: number x-db-type: decimal(10,2) default: 0 ``` Generated Migration: ```php public function up() { $this->createTable('{{%table}}',...

I have a field in OpenAPI schema: ``` updated_at: readOnly: true type: string format: datetime nullable: false x-db-type: datetime ``` If I change its name to `updated_at2` then run `$...

Fix #100 --- This PR is continued from https://github.com/cebe/yii2-openapi/pull/103