You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know that there's anything the checker can do in this case out of the box. The azure pipelines schema doesn't really describe what those files can contain.
I don't want that to be my final answer -- even weak validation is worth something -- but it is my starting point.
I'm thinking about how to work around this without trying to really implement their expression language (that seems very fraught to me). What if I offered an option to replace strings prior to validation, such that you could write in your config
Would that be sufficient and interesting to you as a user?
I might not want to make it a CLI option, perhaps config instead, but that would be the idea of it.
Or it might be nicer to let you specify jsonpath to the value which needs replacement.
Json path might be cleaner via a config as our pipelines are utilizing the templated job names quite a bit.. Some come from variables, some come from parameters so replace-string may be hard to scale. If we could some how ignore values in certain json paths it might be more flexible and scalable.
If we could some how ignore values in certain json paths it might be more flexible and scalable.
I wish we could. I agree that it would work better from a user-perspective: you get an error from the linting and you effectively say "ignore that error".
Unfortunately, I think that would require modifying the schema, and there's no reliable way to do that with nested structures like oneOf.
I'll try to make time soon to work on some kind of replacer config, since that's the best workaround I can come up with.
Problem:
When using expressions for job names we get a Schema validation error.
Error:
Setup:
Note this also errors out in the Azure Server Lang plugin as well as it can't validate the schema
The text was updated successfully, but these errors were encountered: