API Contract Until Passing
This loop ensures that the API implementation aligns with the OpenAPI specification by repeatedly validating the contract using swagger-cli until all require…
This loop is republished with attribution. Full credit and the original content belong to the source linked above.
AI Skill Market Insights
Real data. Real impact.
Emerging
Developers
Kickoff Prompt
Copy this prompt and run it with your agent to start the loop.
Start the "API Contract Until Passing" loop.
Goal: API implementation matches OpenAPI specification
Max iterations: 10
Between iterations run: swagger-cli validate openapi.yaml
Exit when: Contract validation succeeds
Please validate the API implementation against the OpenAPI specification defined in 'openapi.yaml'. Run swagger-cli to check for compliance and fix any issues found until validation passes or 10 iterations are completed.
Self-pace this loop. After each iteration, run `swagger-cli validate openapi.yaml` and evaluate the output, and only continue if the exit condition is not met (Contract validation succeeds). Stop when the exit condition passes or 10 iterations are reached. Give a short status update each pass.