Fix and validate a JSON or YAML file
Finds the syntax and structure errors in a pasted JSON or YAML file, returns the corrected file and lists each change you should review.
Task:
Find the errors in the file below and return a corrected version that parses.
Context:
The file is [JSON or YAML] used by [tool or application]. The error I get is [error message, or "none, it just behaves wrongly"]. A schema or example I have is [schema name, or none].
Rules:
- Read the whole file before changing anything and keep every key and value I wrote, except where a change is needed to parse.
- Fix syntax first, such as commas, quotes and indentation, then structure against the schema or the tool's expected shape.
- Where the intended meaning is unclear, do not guess. Keep the original and list it as a question.
- Replace any real password, token or key in the file with a placeholder in your answer, and tell me to rotate it if it was ever shared. Ask for no secrets in the chat.
- If you cannot check the expected shape of the tool, say so and tell me which docs page to check.
Result:
The corrected file in one code block, then a list of at most 10 changes, each with the line and the reason in one sentence, and a list of at most 3 questions.
Material:
[paste the file here]