cebe / yii2-openapi

REST API application generator for Yii2, openapi 3.0 YAML -> Yii2
MIT License
130 stars 23 forks source link

Consider default constant values in model validation rules #154

Closed SOHELAHMED7 closed 1 year ago

SOHELAHMED7 commented 1 year ago
        billing_factor:
          description: integer between 0 and 100, default value 100
          type: integer
          default: 100
          nullable: false
          x-faker: '$faker->numberBetween(0, 100)'

in model validation rules, it should be in default validation rule

SOHELAHMED7 commented 1 year ago

Note: This seems to be implemented. I have a passing test. But in real world project where this lib is used I faced this issue. Need to check in detail

SOHELAHMED7 commented 1 year ago

This is already implemented.