yii2-openapi
yii2-openapi copied to clipboard
REST API application generator for Yii2, openapi 3.0 YAML -> Yii2
Though PR https://github.com/SOHELAHMED7/yii2-openapi/pull/30 and https://github.com/SOHELAHMED7/yii2-openapi/pull/14 fixes corresponding issues, we need a more proper way for how `allOf` is resolved. This can be part of this lib or cebe/php-openapi.
Example: src/lib/SchemaToDatabase.php ```php public function prepareModels():array { $models = []; $openApi = $this->config->getOpenApi(); $junctions = $this->findJunctionSchemas(); foreach ($openApi->components->schemas as $schemaName => $openApiSchema) { $schema = Yii::createObject(ComponentSchema::class, [$openApiSchema, $schemaName]); if (!$this->canGenerateModel($schemaName,...
If a schema is removed or deleted from OpenAPI spec, then delete its everything: - table (create migration for drop table -> https://github.com/cebe/yii2-openapi/issues/132) - URLs - Models - FakerModels -...