File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
src/language/typescript/2.0/serializers Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ import {
52
52
SerializedFragment ,
53
53
} from '../../common/data/serialized-fragment' ;
54
54
import { sequenceOptionEither } from '../../../../utils/option' ;
55
+ import { identity } from 'fp-ts/lib/function' ;
55
56
56
57
interface Parameters {
57
58
readonly pathParameters : PathParameterObject [ ] ;
@@ -246,6 +247,7 @@ export const serializeOperationObject = combineReader(
246
247
247
248
const deprecated = pipe (
248
249
operation . deprecated ,
250
+ option . filter ( identity ) ,
249
251
map ( ( ) => `@deprecated` ) ,
250
252
) ;
251
253
Original file line number Diff line number Diff line change 49
49
"tags" : [
50
50
" pet"
51
51
],
52
+ "deprecated" : false ,
52
53
"summary" : " Add a new pet to the store" ,
53
54
"description" : " " ,
54
55
"operationId" : " addPet" ,
149
150
"tags" : [
150
151
" pet"
151
152
],
153
+ "deprecated" : true ,
152
154
"summary" : " Finds Pets by status" ,
153
155
"description" : " Multiple status values can be provided with comma separated strings" ,
154
156
"operationId" : " findPetsByStatus" ,
You can’t perform that action at this time.
0 commit comments