Bug in web service / definition file


#1

hi there

just found something realy strange
just imagine you want to setup a web service with the folowing in definition file

Below is a part of my definition file

“/mango201/users/natural”: {
“post”: {
“tags”: [
“mango201”
],
“description”: “creates natural users”,
“parameters”: [
{
“name”: “Tag”,
“in”: “query”,
“description”: “Tag”,
“required”: true,
“type”: “string”,
“format”: “string”
},
{
“name”: “FirstName”,
“in”: “query”,
“description”: “FirstName”,
“required”: true,
“type”: “string”,
“format”: “string”
}

after saving / updating the service file the Definition file will look like this

“/mango201/usersatural”: {
“post”: {
“tags”: [
“mango201”
],
“description”: “creates natural users”,
“parameters”: [
{
“name”: “Tag”,
“in”: “query”,
“description”: “Tag”,
“required”: true,
“type”: “string”,
“format”: “string”
},
{
“name”: “FirstName”,
“in”: “query”,
“description”: “FirstName”,
“required”: true,
“type”: “string”,
“format”: “string”
}

for a strange reason the /n (from users/natural ) will be delete in the definition file
is like the system interpret the /n like an html code
causing of course the service to not working …

any advice?
thanks


#2

looks like a bug in the service definition builder. what version of DreamFactory is this?


#3

hi Drew
Bitnami VM
Dreamfactory 2.1

thanks