1
0
mirror of https://github.com/Icinga/icinga2.git synced 2025-04-08 17:05:25 +02:00

Merge pull request from Icinga/bugfix/validate-array-types-correctly

ClassCompiler: Validate field types -> Icinga type names correctly
This commit is contained in:
Julian Brost 2022-09-06 18:14:43 +02:00 committed by GitHub
commit 86b63a57ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -151,9 +151,6 @@ static std::string FieldTypeToIcingaName(const Field& field, bool inner)
if (field.Attributes & FAEnum)
return "Number";
if (ftype == "bool" || ftype == "int" || ftype == "double")
return "Number";
if (ftype == "int" || ftype == "double")
return "Number";
else if (ftype == "bool")