python-jsonschema / python-jsonschema/check-jsonschema
Schema validation errors for dynamic job name within azure pipeline
Open
Nobody has claimed this yet.
azure-schema-lies
enhancement
- Dominant language
- Python
- Stars
- 341
- Forks
- 71
- Avg merge
- 15d 20h
- Merged PRs (30d)
- 4
Description
Problem:
When using expressions for job names we get a Schema validation error.
parameters:
- name: name
type: string
stages:
- stage: aws
displayName: AWS
jobs:
- job: "${{ parameters.name }}"
Error:

Setup:
repos:
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.18.4
hooks:
- id: check-azure-pipelines
files: '^.azure/.*\.yml'
Note this also errors out in the Azure Server Lang plugin as well as it can't validate the schema

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported configuration through the check-azure-pipelines hook and tracing the schema validation for the dynamic job name. Done means the expression-based job name validates without the reported schema error, including the Azure Server Lang plugin case described in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, python
- Domain
- ci-cd, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100