python-jsonschema / python-jsonschema/check-jsonschema

Schema validation errors for dynamic job name within azure pipeline

Open
#169 5 comments 1 reaction 0 assignees View on GitHub

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:
image

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
image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.