Azure / Azure/bicep

Address Testing Gaps in Schema Validation for Built-in Configuration JSON

Open
#13,112 0 comments 0 reactions 0 assignees View on GitHub
tech debt
Dominant language
Bicep
Stars
3.6k
Forks
830
Avg merge
1d 21m
Merged PRs (30d)
79

Description

## Overview

### Issue Description

This issue highlights a gap in our testing strategy, specifically concerning the validation of various configuration JSON blobs against our predefined schema in the Bicep compiler. Currently, there appears to be a lack of systematic validation checks to ensure that different configuration JSON instances conform to our established schema standards.

### Impact

The absence of these validation checks could lead to scenarios where:
- Invalid configuration JSON blobs are mistakenly considered valid, potentially leading to runtime errors or misconfigurations.
- Updates or modifications to the schema are not adequately tested against existing configuration JSON instances, possibly causing backward compatibility issues.

### Related Items
- https://github.com/Azure/bicep/pull/13111

Contributor guide

Open the contributing guide

Research direction

Review the Bicep compiler's predefined schema and built-in configuration JSON blobs, then read the related pull request #13111 for context and likely entry points. Add systematic validation coverage for the configuration instances and confirm that invalid blobs fail while existing valid blobs continue to conform to the schema.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
compilers, testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.