Removing default values from repsonse example model in swagger UI Java - swagger

I have swagger UI configured and it is showing by default values in response example. Need to remove this default values.

Related

Swagger UI input set of variables

I create an swagger API as below
However, I am blocked to input set of UUID through swagger UI without any reason. It seems that I don't input in correct format (""","" or ["",""] )
May I know how to input correct set of UUID or other suggestion?
Thanks.

Generating Get requests examples with swashbuckle for Swagger UI

I've seen some resources for generating a request example & defaults with Swashbuckle:
Default model example in Swashbuckle (Swagger)
The defaults works fine for a get Operation with a query string parameters. But is there any way to generate a request example for a Get operation? or is it only available for non get operations?

Swagger 3.x : Query params act as readonly values

I tried swagger 3.2.2 by running a GET operation with few query params.
I find defaults values I set in REST API can't override in swagger UI. All the text boxes are read only, and drop-down of Boolean query param always sends 'false' though I select it to 'true'. It seems program default values are super hard-corded here. I was playing with swagger #ApiPram(..) to fix this but it didn't help me.
Did anyone ran in to the same issue I describe above with Swagger 3.x?
I start using Swagger UI 3.5.0 and fixed the issue

Spring-WS WSA header contains hardcoded mustUnderstand attribute

When sending WSA headers with Spring-WS, the wsa:To field always contains the attribute mustUnderstand="true". By looking at the source code, I found that this attribute is hardcoded in AbstractAddressingVersion.java. Based on the W3 standard the mustUnderstand attribute is not mandatory I think.
Is there a reason why Spring-WS hardcodes it? We have difficulties when integrating Spring-WS with some other SOAP stacks because of this attribute.
If you file a JIRA here, we can make it customizable.

Send HTTP header from Orbeon XForm submission

I have an API that depends on certain HTTP Headers for specific behavior. Example would be HTTP Header If-Matches on a POST to support updating only if version matches the value of If-Matches.
How would I send these HTTP headers from an Orbeon XForms submission?
The xf:submission element supports a nested xf:header element, which allows you to set custom headers. For example:
<xf:header>
<xf:name>If-Matches</xf:name>
<xf:value>whatever value</xf:value>
</xf:header>
The name and value can be dynamic using the value attribute. You can use many xf:header children elements. For more, see The header Element from the XForms 1.1 specification.

Resources