summaryrefslogtreecommitdiff
path: root/src/components/policy/policy_external/include/policy/policy_table/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/policy/policy_external/include/policy/policy_table/types.h')
-rw-r--r--src/components/policy/policy_external/include/policy/policy_table/types.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/components/policy/policy_external/include/policy/policy_table/types.h b/src/components/policy/policy_external/include/policy/policy_table/types.h
index c95802f181..6b2f05d336 100644
--- a/src/components/policy/policy_external/include/policy/policy_table/types.h
+++ b/src/components/policy/policy_external/include/policy/policy_table/types.h
@@ -654,6 +654,7 @@ struct VehicleDataItem : CompositeType {
Optional<String<0, 255> > until;
Optional<Boolean> removed;
Optional<Boolean> deprecated;
+ Optional<String<0, UINT32_MAX> > defvalue;
Optional<Float<-INT32_MAX, INT32_MAX> > minvalue;
Optional<Float<-INT32_MAX, INT32_MAX> > maxvalue;
Optional<Integer<uint32_t, 0, UINT32_MAX> > minsize;
@@ -682,6 +683,12 @@ struct VehicleDataItem : CompositeType {
* @return true if type is valid.
*/
bool ValidateTypes() const;
+ /**
+ * @brief Validates default value of vehicle data item based
+ * on type, unable to validate enum values
+ * @return true if defvalue is valid.
+ */
+ bool ValidateDefault() const;
bool IsPrimitiveType() const;
bool ValidateNaming(std::string str) const;