Skip to contentBrand Logo
RegisterSign In
  1. SmartBear Community
  2. Swagger Open Source Tools
  3. Swagger Open Source Tools Questions

Forum Discussion

mrvgulay's avatar
mrvgulay
Regular Visitor
5 years ago

How to set reference of the request body content as dynamic JSON?

I want to pass dynamic JSON to request body content. When I search on google, I see that this operation made by a DTO. 

Is it possible to do this without defining any DTO? 

 

I share below the example with DTO.

 

https://swagger.io/docs/specification/describing-request-body/

requestbody
Swagger Core
Swagger Editor
Swagger UI
No RepliesBe the first to reply

Recent Discussions

  • Looking for a more modern, easier-to-customize SwaggerUI alternative?

    21 hours ago
    shadowsyntax
  • How do I validate the key of a object type schema | v3.0.4

    17 days ago
    nitinkumar-na
  • Use anyOf/oneOf with codegen?

    2 months ago
    stuartreynolds
Related Content
  • How to set different Content-Types in multipart/form-data POST Request?

    6 months ago
    rasierapparat
  • How to add a JSON example in a POST Request Body? (without a schema reference)

    5 years ago
    bdipasca
  • POST request data is getting truncated and error Content is not allowed in prolog shown

    4 years ago
    shadab1312
© 2025 SmartBear Software. All Rights Reserved.
  • Privacy
  • |
  • Terms of Use
  • |
  • Site Map
  • |
  • Website Terms of Use
  • |
  • Security
  • |
  • Community Terms of Service