Skip to content
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

Swagger/OpenAPI - UnrecognizedPropertyException #113

Open
suryakumar101987 opened this issue Aug 18, 2017 · 1 comment
Open

Swagger/OpenAPI - UnrecognizedPropertyException #113

suryakumar101987 opened this issue Aug 18, 2017 · 1 comment

Comments

@suryakumar101987
Copy link

Getting below error when using the given request model

"Error 500: javax.servlet.ServletException: org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "RQSHDR" (Class iseries.wsbeans.ServiceInput.RQSHDR_DS), not marked as ignorable

Request:

"{"RQSHDR":[{"ID":"20423","Name":"226229","DOCTYPE":"EXCEL"}],"RQSLEN":1,"RQSDS":[{"DSID":"148490","DS":"40026","AMOUNT":"250.00"}]}"

Here is sample code:

"ServiceInput": {
"type": "object",
"properties": {
"RQSHDR": {
"type": "object",
"$ref": "#/definitions/rqshdr_DS"
},
"RQSLEN": {
"type": "integer",
"format": "int32"
},
"RQSDS": {
"type": "array",
"items": {
"$ref": "#/definitions/rqsdtl_DS"
}
}
}
}

And
"rqshdr_DS": {
"type": "object",
"properties": {
"ID": {
"type": "string",
"maxLength": 30
},
"NAME": {
"type": "string",
"maxLength": 10
},
"DOCTYPE": {
"type": "string",
"maxLength": 4
}
}
},
"rqsdtl_DS": {
"type": "object",
"properties": {
"DSID": {
"type": "string",
"maxLength": 10
},
"DS": {
"type": "string",
"maxLength": 25
},
"AMOUNT": {
"type": "string",
"maxLength": 12
}
}
},

Please assist to resolve

@kamaruddin-desai
Copy link

Facing the same issue. Please update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants