Skip to content

Commit 5f18b84

Browse files
authored
intbase schema fix (#741)
1 parent bafc771 commit 5f18b84

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

generator/konfig-generator-api/src/main/resources/python/schemas.handlebars

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2102,6 +2102,7 @@ class IntBase:
21022102
IntBase _validate_oapg
21032103
TODO what about types = (int, number) -> IntBase, NumberBase? We could drop int and keep number only
21042104
"""
2105+
if cls._types and int not in cls._types: cls._types.add(int)
21052106
cls.__validate_format(arg, validation_metadata=validation_metadata)
21062107
return super()._validate_oapg(arg, validation_metadata=validation_metadata)
21072108

0 commit comments

Comments
 (0)