Let's say I have:
requestBody:
content:
application/x-www-form-urlencoded:
schema:
type: object
properties:
address:
type: object
properties: {}
encoding:
address:
contentType: "application/json" # This is the default
style: form # This is the default
explode: true # This is the default
Since encoding has both a contentType and a style, what do I do with the address property? Do I decode it as an exploded form object? Do I extract the value of 'address' from the message body and run it through JSON.parse()? Do I decode it as an exploded form, but run the value of each key through JSON.parse()?
Or does contentType here only apply to multipart bodies?
Let's say I have:
Since encoding has both a
contentTypeand astyle, what do I do with theaddressproperty? Do I decode it as an exploded form object? Do I extract the value of 'address' from the message body and run it throughJSON.parse()? Do I decode it as an exploded form, but run the value of each key throughJSON.parse()?Or does contentType here only apply to
multipartbodies?