-
Notifications
You must be signed in to change notification settings - Fork 59
Description
Expected Behavior
When I don't use r.Example, I get a correctly formatted string, but it does have the default values that I would like to show the user. I want it to look something like this:
{
"location": {
"latitude": 0,
"longitude": 0,
"name": "string",
"radius": 0
},
"options": {
"groupByID": false,
"groupByType": false,
"makeSingleID": true,
"makeSingleType": true,
"site": "Center",
"useFlag": true
}
}
Actual Behavior
If I add my example object like so r.Example("", myObject) I get the following:
{"location":{"name":"Bullseye","latitude":38,"longitude":-120,"radius":250},"options":{"makeSingleID":true,"makeSingleType":true,"groupByID":false,"groupByType":false,"groupBySameWeapon":false,"useFlag":false,"site":"Center"}}
I'm not sure if I am doing wrong but I have tried to use different forms of formatting but it continues to come out flat.
Steps to Reproduce the Problem
- Create an Object
- Add to
ResponseBuilder Example(string myType, object example)
Specifications
- Version: 2.2.51-alpha
- Project: Nancy.Swagger