-
Notifications
You must be signed in to change notification settings - Fork 86
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
Validation in API layer #3950
Comments
Interesting - we should do this (and think about broader frameworks for doing this kind of validation). Working on the swagger stuff right now, would that help? |
In this case I think it was just an oversight on the server-side validation, so that it was happening in the client, but not also at the server. |
I confirm this is still an issue:
|
So we don't forget. I did a bit of code spelunking with cuelang to try and address this in #3735. The idea was to define a schema in cue that we could use to validate job specs against. The resulting work allowed users to validate a job.yaml file against the cue schema via a command like: |
Although we do normalize inputs, there's an oversight on the normalization of the optional publisher field if the job is posted directly to the API.
where the JSON file looks like the following (note, no publisher).
The text was updated successfully, but these errors were encountered: