opticdev / optic

OpenAPI linting, diffing and testing. Optic helps prevent breaking changes, publish accurate documentation and improve the design of your APIs.
https://useoptic.com
MIT License
1.36k stars 83 forks source link

Add form support to `capture` #2655

Closed niclim closed 10 months ago

niclim commented 10 months ago

🍗 Description

What does this PR do? Anything folks should know?

Adds support for application/x-www-form-urlencoded and multipart/form-data content types.

Note that these fields are similar to query parameters (i.e. you can send multiple keys and some parsers will handle as arrays, etc) but we haven't handled it here since there are many ways to define arrays in forms and or JSON objects.

📚 References

Links to relevant docs (Notion, Twist, GH issues, etc.), if applicable. https://github.com/opticdev/optic/issues/2535

👹 QA

How can other humans verify that this PR is correct?