Commit 11cee1a
fix(@angular/cli): correct boolean parsing in MCP example front matter
This commit fixes a bug in the `parseFrontmatter` utility where boolean values (true/false) were being incorrectly parsed as strings. The Zod schema validator for the `experimental` flag would reject these string values, causing the example database generation to fail. The parser has been updated to explicitly check for "true" and "false" strings and convert them to their corresponding boolean types, ensuring that the front matter is parsed correctly. This fix is applied to both the build-time database generator and the runtime tool.1 parent 02d7105 commit 11cee1a
File tree
2 files changed
+16
-2
lines changed- packages/angular/cli/src/commands/mcp/tools
- tools
2 files changed
+16
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
407 | | - | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
408 | 415 | | |
409 | 416 | | |
410 | 417 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
52 | 59 | | |
53 | 60 | | |
54 | 61 | | |
| |||
0 commit comments