Skip to content

Improve support for input variable constraints - #36

Merged
ethanjli merged 5 commits into
mainfrom
input-var-constraints
Oct 23, 2026
Merged

ethanjli merged 5 commits into
mainfrom
input-var-constraints

Conversation

@ethanjli

Copy link
Copy Markdown
Collaborator

Previously optikit-design.yml supported declaring min and max constraints on input variables. However, those constraints were never actually used or checked in the optikit CLI tool itself.

This PR adds checks for min and max constraints, when the DSN is checked upon being loaded. This PR also allows declaring a list of allowed values for the variables; if the list is non-empty, then any provided values outside that list will be rejected.

Finally, this PR adds error detection for errors in scripts in the make generate command; previously, those errors weren't actually bubbling up into a CI run failure.

@ethanjli
ethanjli merged commit fc4f912 into main Oct 23, 2026
2 checks passed
@ethanjli
ethanjli deleted the input-var-constraints branch October 23, 2026 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant