mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
json schema: parse default value as integer if the type is integer
This commit is contained in:
@@ -445,6 +445,7 @@ public class JsonSchemaObject {
|
||||
}
|
||||
|
||||
public Object getDefault() {
|
||||
if (JsonSchemaType._integer.equals(myType)) return myDefault instanceof Number ? ((Number)myDefault).intValue() : myDefault;
|
||||
return myDefault;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user