Skip to content

Commit

Permalink
Apply requested changes to Process_Parameter_Update & `Parameter_Va…
Browse files Browse the repository at this point in the history
…lidation_Status`
  • Loading branch information
Jbsco committed Jul 30, 2024
1 parent 2008566 commit 87b53e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions gen/templates/component/component-name.adb
Original file line number Diff line number Diff line change
Expand Up @@ -965,9 +965,10 @@ package body Component.{{ name }} is
-- The default return for this function always returns "Valid", so this
-- should be inaccessible.
Status := Validation_Error;
else
-- Set status:
Status := Validation_Success;
end if;
-- Set status:
Status := Validation_Success;
when Update =>
-- All parameters have been staged, we can now update our local parameters:
Self.Staged_Parameters.Set_Parameters_Staged;
Expand Down
6 changes: 3 additions & 3 deletions src/types/parameter/parameter_enums.enums.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ enums:
value: 4
description: The operation could not be performed because it was dropped from a full queue.
- name: Parameter_Validation_Status
description: This status enumeration provides information on the result of a parameter validation.
description: This status enumeration provides information on the result of validating a set of parameters.
literals:
- name: Valid
value: 0
description: Parameter was validated.
description: Parameters were validated.
- name: Invalid
value: 1
description: Parameter was found to be invalid.
description: Parameters were found to be invalid.

0 comments on commit 87b53e2

Please sign in to comment.