-
Notifications
You must be signed in to change notification settings - Fork 23
List of general enhancements #122
Comments
@SOHELAHMED7 as far as I see some of these are already done. Please update the checkbox list. |
No. Only first one is completed and that is already checked. Though this is none of your fault, I have described in very short detail. I am elaborating it soon |
I have provided more detail to each checkbox. One was duplicate so removed it. Each checkbox task is big enough such that it should have stand alone issue. But instead I have kept this as list because I think it comes under "nice to have", "later" or "low priority" status If you feel any one of these deserve high priority, please let me know |
Regarding task: Enhance all code generation for x-db-type #119 . E.g. x-db-type should be reflected in model validation rules() + faker and other place where relevant. (SOHELAHMED7#17) I am generating models with default value and validation rules obtained from OpenAPI spec. Ideally fake values generated by faker should pass validation. This happens in all cases except MySQL Consider datetime_col:
type: string
x-db-type: datetime generates models validation rules: 'datetime_col_datetime' => [['datetime_col'], 'datetime', 'format' => '-----THIS is WIP ---' ],
// more about format is described below and faker $model->datetime_col = $faker->dateTimeThisYear('now', 'UTC')->format(DATE_ATOM);
|
enum_<TABLE_NAME>_<COLUMN_NAME>
instead of currentenum_<COLUMN_NAME>
x-db-default-expression
is present then ensure it is present in\yii\db\Expression(...)
in model validationrules()
x-db-type
Enhance all code generation for x-db-type #119 . E.g.x-db-type
should be reflected in model validationrules()
+ faker and other place where relevant. PR: Resolve - Consider x-db-type in validation rules and faker and more if any SOHELAHMED7/yii2-openapi#17The text was updated successfully, but these errors were encountered: