Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdebreceni committed Oct 2, 2024
1 parent 146b6c9 commit 396c607
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
8 changes: 4 additions & 4 deletions core/include/minifi-cpp/core/PropertyDefinition.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@ struct PropertyDefinition {
std::string_view name;
std::string_view display_name;
std::string_view description;
bool is_required = false;
bool is_sensitive = false;
bool is_required;
bool is_sensitive;
std::array<std::string_view, NumAllowedValues> allowed_values;
std::span<const std::string_view> allowed_types;
std::array<std::string_view, NumDependentProperties> dependent_properties;
std::array<std::pair<std::string_view, std::string_view>, NumExclusiveOfProperties> exclusive_of_properties;
std::optional<std::string_view> default_value;
gsl::not_null<const PropertyType*> type;
bool supports_expression_language = false;
bool supports_expression_language;

uint8_t version = 1;
uint8_t version;
};

struct PropertyReference {
Expand Down
14 changes: 13 additions & 1 deletion utils/include/core/PropertyDefinitionBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,19 @@ struct PropertyDefinitionBuilder {
}

PropertyDefinition<NumAllowedValues, NumDependentProperties, NumExclusiveOfProperties> property{
.type = gsl::make_not_null(&StandardPropertyTypes::VALID_TYPE)
.name = {},
.display_name = {},
.description = {},
.is_required = false,
.is_sensitive = false,
.allowed_values = {},
.allowed_types = {},
.dependent_properties = {},
.exclusive_of_properties = {},
.default_value = {},
.type = gsl::make_not_null(&StandardPropertyTypes::VALID_TYPE),
.supports_expression_language = false,
.version = 1
};
};

Expand Down

0 comments on commit 396c607

Please sign in to comment.