-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change Example Value #184
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
First image is my current situation:
I want to change two Example Value in second image:
Parameter type is stream (input in body).
The POST method is:
Stream AddFingerPrintTask(Stream taskStream);
Red frame:
I add [SwaggerWcfReturnType(typeof(FingerPrint))] In front of method "AddFingerPrintTask". FingerPrint is class consisted of Org_Code, Call_No and INP_Date.
I want to remove "AddFingerPrintTaskResult" and finally want it to be:
{
"Org_Code": "string",
"Call_No": "string",
"INP_Date": "string"
}
I also try this:
[SwaggerWcfResponse(HttpStatusCode.Created, "OK", ExampleContent = "{"Org_Code":"string","Call_No":"string","INP_Date":"string"}")]
It will be:
It is closer but not enough.
Blue frame:
I try to add [SwaggerWcfParameter(ParameterType = typeof(FingerPrint))] but it doesn't work.
I also want it to be:
{
"Org_Code": "string",
"Call_No": "string",
"INP_Date": "string"
}
Please help me, thanks!
The text was updated successfully, but these errors were encountered: