File tree Expand file tree Collapse file tree 1 file changed +4
-67
lines changed Expand file tree Collapse file tree 1 file changed +4
-67
lines changed Original file line number Diff line number Diff line change @@ -994,9 +994,10 @@ describe("OpenAPI3 features", () => {
994
994
openapi : "3.0.1" ,
995
995
paths : {
996
996
"/" : {
997
- summary : "Root " ,
998
- description : "Lorem ipsum sic dolor amet " ,
997
+ summary : "root summary " ,
998
+ description : "root description " ,
999
999
get : {
1000
+ summary : "get summary" ,
1000
1001
responses : {
1001
1002
"200" : {
1002
1003
content : {
@@ -1015,49 +1016,6 @@ describe("OpenAPI3 features", () => {
1015
1016
} ,
1016
1017
} ,
1017
1018
} ,
1018
- "/search" : {
1019
- post : {
1020
- parameters : [
1021
- {
1022
- name : "q" ,
1023
- in : "query" ,
1024
- required : true ,
1025
- schema : { type : "string" } ,
1026
- } ,
1027
- {
1028
- name : "p" ,
1029
- in : "query" ,
1030
- schema : { type : "integer" } ,
1031
- } ,
1032
- ] ,
1033
- responses : {
1034
- "200" : {
1035
- content : {
1036
- "application/json" : {
1037
- schema : {
1038
- type : "object" ,
1039
- properties : {
1040
- results : {
1041
- type : "array" ,
1042
- items : { $ref : "#/components/schemas/SearchResult" } ,
1043
- } ,
1044
- total : { type : "integer" } ,
1045
- } ,
1046
- required : [ "total" ] ,
1047
- } ,
1048
- } ,
1049
- } ,
1050
- } ,
1051
- "404" : {
1052
- content : {
1053
- "application/json" : {
1054
- schema : { $ref : "#/components/schemas/ErrorResponse" } ,
1055
- } ,
1056
- } ,
1057
- } ,
1058
- } ,
1059
- } ,
1060
- } ,
1061
1019
} ,
1062
1020
components : {
1063
1021
schemas : {
@@ -1094,35 +1052,14 @@ describe("OpenAPI3 features", () => {
1094
1052
format ( `
1095
1053
export interface paths {
1096
1054
'/': {
1097
- get: {
1055
+ get: {
1098
1056
responses: {
1099
1057
'200': {
1100
1058
'application/json': { title: string; body: string }
1101
1059
}
1102
1060
}
1103
1061
}
1104
1062
};
1105
- '/search': {
1106
- post: {
1107
- parameters: {
1108
- query: {
1109
- q: string;
1110
- p?: number;
1111
- }
1112
- };
1113
- responses: {
1114
- '200': {
1115
- 'application/json': {
1116
- results?: components['schemas']['SearchResult'][];
1117
- total: number;
1118
- }
1119
- }
1120
- '404': {
1121
- 'application/json': components['schemas']['ErrorResponse']
1122
- }
1123
- }
1124
- }
1125
- }
1126
1063
}
1127
1064
1128
1065
export interface operations {}
You can’t perform that action at this time.
0 commit comments