<!--
title: Validate Block JSON
domain: docs
topic: CI/CD
language: Json
source: freeCodeCamp/freeCodeCamp
updated: 2026-04-07
url: https://awesomereviewers.com/reviewers/freecodecamp-validate-block-json/
-->

Ensure every `curriculum/structure/blocks/*.json` file matches the CI-validated schema and constraints.

- Remove deprecated/unused fields (e.g., `name`)—CI may reject these.
- Ensure required identifiers conform to CI rules (e.g., block/challenge `id` must be valid and not too short).
- If CI fails, fix the JSON payload in the same branch (don’t rely on retries).

Example (schema-compliant style):
```json
{
  "isUpcomingChange": false,
  "dashedName": "workshop-envelope-budget-app",
  "helpCategory": "HTML-CSS",
  "blockLayout": "challenge-grid",
  "blockLabel": "workshop",
  "challengeOrder": [
    { "id": "<valid-id-length-and-format>", "title": "Step 1" }
  ]
}
```
