-
Notifications
You must be signed in to change notification settings - Fork 537
Closed
Description
Example json in OAS v2:
{
"swagger": "2.0",
"info": {
"version": "1.0",
"title": "x-example"
},
"host": "httpbin.org",
"basePath": "/anything",
"schemes": [
"http"
],
"paths": {
"/{foo}": {
"get": {
"responses": {
"200": {
"description": "OK"
}
},
"deprecated": false
}
}
}
}In case of deprecated: false like above or the field is omitted, Operation.getDeprecated() returns null.
I think Operation.getDeprecated() should return false in that case. There is the same issue in OAS v3.
I'll submit a PR that fixes this issue.
Metadata
Metadata
Assignees
Labels
No labels