A small language that compiles to OpenAPI 3.1.0.
Responsible is based on KDL 1.0.0.
brew install openapi-generator
bunx @responsibleapi/cli file.kdl -o /tmp/openapi.json
openapi-generator generate -g typescript-fetch -i /tmp/openapi.json -o gen/ --additional-properties=typescriptThreePlus=true,modelPropertyNaming=original,nullSafeAdditionalProps=true,enumPropertyNaming=original,supportsES6=true,useSingleRequestParameter=false
bunx @responsibleapi/cli file.kdl -o /tmp/openapi.json
openapi-generator generate -g kotlin -i /tmp/openapi.json -o gen/ --additional-properties=library=jvm-vertx
The idea behind testing with OpenAPI is validating server responses against the contract.
See https://github.com/responsibleapi/test-kotlin-vertx
To be published, see https://github.com/listenbox/yanic/blob/master/tests/responsible.py
To be published
Use https://schemathesis.io for now
pipx install schemathesis
st run --checks all --base-url http://localhost:8080 --workers 40 src/main/resources/openapi.json
Ultimately the plan is to integrate fuzzing into the testing libraries.