# openapi-contract-macros
Proc-macro implementation crate for [`openapi-contract`][oc]. It exposes
the `api!` and `generate_types!` macros, which validate HTTP calls and
generate request/response types against an OpenAPI 3.x spec at compile
time.
**This crate is an implementation detail. Don't depend on it directly
— depend on [`openapi-contract`][oc] instead**, which re-exports both
macros and the runtime types (`ApiClient`, `ApiRequest`, `ApiError`,
`SseStream`, …) they produce.
See the [main README][oc-readme] for usage, examples, and the full
feature list.
[oc]: https://crates.io/crates/openapi-contract
[oc-readme]: https://github.com/ZacharyL2/openapi-contract#readme