Repository navigation
Commit 3aad40f
committed
fix(ci,scripts): harden Petstore spec acquisition with fail-fast retries and local container fallback
- ci: replace bare 'curl -sSL' against https://petstore.swagger.io/v2/swagger.json with 'curl --retry 5 --retry-all-errors --retry-delay 2 -fsSL' prioritizing the local swaggerapi/petstore service container (http://localhost:8080/v2/swagger.json) and canonical cdd-openapi-test-harness GitHub mirror, followed by a JSON root schema assertion ('swagger' or 'openapi' key present); this prevents transient HTTP 5xx/HTML error responses from being saved as scalar YAML strings and misclassified by parse_openapi_spec_with_registry as invalid OAS 3.1/3.2 schema-root documents
- scripts/test_server_and_client: replace .parse().unwrap() with .parse().unwrap_or(8080) in the generated Actix mock server entrypoint so zero unwrap() calls exist across the repository1 parent 20a2673 commit 3aad40f
2 files changed
Lines changed: 25 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
64 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
65 | 86 | | |
66 | 87 | | |
67 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
0 commit comments