Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data validation for inputs in front end #2479

Merged
merged 2 commits into from
Dec 3, 2019

Conversation

reyery
Copy link
Member

@reyery reyery commented Nov 28, 2019

This PR provides a way to implement input validation for the front end, which helps with #2310 and #2141

It introduces a new property constraints for fields in input.yaml, which could be used to specify the range of the field i.e. max.

A new field type choice is also added to restrict users to only select values found in a list.
A property location is used to extract this list of values from a database.

Other Changes:
Update technical_systems to air_conditioning_systems

@daren-thomas
Copy link
Member

@reyery I wonder if we should be using schemas.yml instead of input.yml? That way, we'd have one source of truth for our data?

@jimenofonseca
Copy link
Contributor

jimenofonseca commented Nov 29, 2019

@daren-thomas maybe let's open a new issue to move inputs.yml to schemas.yml to a separated issue. #2480

@daren-thomas
Copy link
Member

@reyery @jimenofonseca as far as I can tell, this can be merged - it's what I presented at the demo.

@daren-thomas daren-thomas merged commit 3bf38e4 into master Dec 3, 2019
@daren-thomas daren-thomas mentioned this pull request Dec 10, 2019
@reyery reyery deleted the 2310-input-supply-system-choice branch April 22, 2020 02:48
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.

None yet

3 participants