Would the idea be to validate that an http-types req/res pair conforms to an openapi schema?
Yes. Precisely.
Would this need to be done in-memory or from a cli?
It should be done whenever the http-types are read to be used.
hmt
does internally, and the output of hmt
is just a jsonl file of http-types.
hmt mock
or any mocking tool that accepts openapi (ie prism).