Exemple #1
0
class NameLint(FlaskLint):
    name = StringField(validators=[DataRequired(), Length(min=8)])
Exemple #2
0
 class F3(jsons.Json):
     a = StringField(validators=[validators.Length(max=1)])
Exemple #3
0
 class F2(jsons.Json):
     a = StringField(validators=[validators.DataRequired(), validators.Length(max=3)])
Exemple #4
0
 class F(jsons.Json):
     class Meta:
         locales = ['en_US', 'en']
     a = StringField(validators=[validators.DataRequired()])
Exemple #5
0
    class F2(jsons.Json):
        class Meta:
            def get_translations(self, data):
                return Lower_Translator()

        a = StringField([validators.Length(max=5)])
Exemple #6
0
class BasicLint(FlaskLint):
    name = StringField(validators=[DataRequired()])