A way to make the request body required or not
A
Amir Ahmetovic
Is there a way to mark the request body as required or not?
We have a Swagger comparison script that compares Apidog Swagger spec vs. TypeScript-based Swagger spec and it seems that "required" field in the Apidog Swagger spec is missing even though the request body is required for some of our API endpoints so the script is currently failing.
Emily
Hi, Ahmetovic.Thank you for your detailed feedback.
After testing, I've confirmed that Apidog does support marking the request body as required in the Swagger specification.
To help us better understand the issue you're encountering, could you please provide the following information:
- Steps to Reproduce:
How did you defined endpoint in Apidog?
How did you export the Swagger specification?
What was the exported result?
What was the expected result?
- Version Information:
What version of Apidog are you using?
- Additional Details:
Any other details that might help us understand the context of the issue.
The more detailed information you can provide, the faster we can help you resolve this issue.
Md Mamunur Rashid
Hi Amir Ahmetovic, Good day. I have read your message carefully and could you please tell me what kinds of script you are comparing? Thank you.
A
Amir Ahmetovic
Md Mamunur Rashid We're using "oasdiff" to compare two Swagger files - one generated from our code base and another from Apidog.