Commit 85ccd72
Add
* Initial plan
* Add config validate subcommand for validating Dev Proxy configuration files
Co-authored-by: waldekmastykarz <11164679+waldekmastykarz@users.noreply.github.com>
* Use ProxyUtils.JsonSerializerOptions and JsonDocumentOptions instead of custom duplicates
Co-authored-by: waldekmastykarz <11164679+waldekmastykarz@users.noreply.github.com>
* Switch from Console.WriteLine to ILogger in config validate output
Co-authored-by: waldekmastykarz <11164679+waldekmastykarz@users.noreply.github.com>
* Centralize config file search and schema version validation to avoid duplication
Co-authored-by: waldekmastykarz <11164679+waldekmastykarz@users.noreply.github.com>
* Remove local --output option from validate command, use global --log-for instead
Co-authored-by: waldekmastykarz <11164679+waldekmastykarz@users.noreply.github.com>
* Remove ValidateConfigAsync wrapper; use exit code 2 for validation errors
Co-authored-by: waldekmastykarz <11164679+waldekmastykarz@users.noreply.github.com>
* Address review feedback: YAML validation, type safety, error handling, machine output formatting
- Add YAML-to-JSON conversion in ValidateConfigCoreAsync so YAML configs can be validated
- Wrap plugin property reads in try-catch for malformed type handling
- Check url.ValueKind before calling GetString() in ValidateUrls
- Catch IOException/UnauthorizedAccessException when reading config files
- Register MachineConsoleFormatter and select formatter based on isJsonOutput
- Return warning message for unparseable schema URLs instead of silently ignoring
* Fix references to renamed OutputFormat/JsonConsoleFormatter after merge with main
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: waldekmastykarz <11164679+waldekmastykarz@users.noreply.github.com>
Co-authored-by: Waldek Mastykarz <waldek@mastykarz.nl>
Co-authored-by: Garry Trinder <garry@trinder365.co.uk>devproxy config validate subcommand (#1552)1 parent 3f8297c commit 85ccd72
5 files changed
Lines changed: 546 additions & 34 deletions
File tree
- DevProxy.Abstractions/Utils
- DevProxy
- Commands
- Extensions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
278 | 297 | | |
279 | 298 | | |
280 | 299 | | |
| |||
287 | 306 | | |
288 | 307 | | |
289 | 308 | | |
290 | | - | |
| 309 | + | |
291 | 310 | | |
292 | 311 | | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | 312 | | |
298 | | - | |
| 313 | + | |
299 | 314 | | |
300 | | - | |
| 315 | + | |
301 | 316 | | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
302 | 350 | | |
303 | 351 | | |
304 | 352 | | |
| |||
0 commit comments