@loopback/openapi-v3 1.9.1 → 1.9.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +40 -0
- package/dist/decorators/api.decorator.js +1 -1
- package/dist/decorators/api.decorator.js.map +1 -1
- package/dist/decorators/operation.decorator.js +1 -1
- package/dist/decorators/operation.decorator.js.map +1 -1
- package/dist/decorators/parameter.decorator.js +1 -1
- package/dist/decorators/parameter.decorator.js.map +1 -1
- package/dist/decorators/request-body.decorator.js +2 -2
- package/dist/decorators/request-body.decorator.js.map +1 -1
- package/package.json +12 -12
- package/src/decorators/api.decorator.ts +2 -1
- package/src/decorators/operation.decorator.ts +1 -0
- package/src/decorators/parameter.decorator.ts +1 -0
- package/src/decorators/request-body.decorator.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,46 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.9.6](https://github.com/strongloop/loopback-next/compare/@loopback/openapi-v3@1.9.5...@loopback/openapi-v3@1.9.6) (2019-09-06)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @loopback/openapi-v3
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [1.9.5](https://github.com/strongloop/loopback-next/compare/@loopback/openapi-v3@1.9.4...@loopback/openapi-v3@1.9.5) (2019-09-03)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @loopback/openapi-v3
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [1.9.4](https://github.com/strongloop/loopback-next/compare/@loopback/openapi-v3@1.9.3...@loopback/openapi-v3@1.9.4) (2019-08-19)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @loopback/openapi-v3
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## [1.9.3](https://github.com/strongloop/loopback-next/compare/@loopback/openapi-v3@1.9.2...@loopback/openapi-v3@1.9.3) (2019-08-15)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package @loopback/openapi-v3
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
## [1.9.2](https://github.com/strongloop/loopback-next/compare/@loopback/openapi-v3@1.9.1...@loopback/openapi-v3@1.9.2) (2019-08-15)
|
|
39
|
+
|
|
40
|
+
**Note:** Version bump only for package @loopback/openapi-v3
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
6
46
|
## [1.9.1](https://github.com/strongloop/loopback-next/compare/@loopback/openapi-v3@1.9.0...@loopback/openapi-v3@1.9.1) (2019-07-31)
|
|
7
47
|
|
|
8
48
|
|
|
@@ -26,7 +26,7 @@ const keys_1 = require("../keys");
|
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
function api(spec) {
|
|
29
|
-
return context_1.ClassDecoratorFactory.createDecorator(keys_1.OAI3Keys.CLASS_KEY, spec);
|
|
29
|
+
return context_1.ClassDecoratorFactory.createDecorator(keys_1.OAI3Keys.CLASS_KEY, spec, { decoratorName: '@api' });
|
|
30
30
|
}
|
|
31
31
|
exports.api = api;
|
|
32
32
|
//# sourceMappingURL=api.decorator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.decorator.js","sourceRoot":"","sources":["../../src/decorators/api.decorator.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,oCAAoC;AACpC,+CAA+C;AAC/C,gEAAgE;;
|
|
1
|
+
{"version":3,"file":"api.decorator.js","sourceRoot":"","sources":["../../src/decorators/api.decorator.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,oCAAoC;AACpC,+CAA+C;AAC/C,gEAAgE;;AAEhE,+CAAwD;AAExD,kCAAiC;AAEjC;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,GAAG,CAAC,IAAoB;IACtC,OAAO,+BAAqB,CAAC,eAAe,CAC1C,eAAQ,CAAC,SAAS,EAClB,IAAI,EACJ,EAAC,aAAa,EAAE,MAAM,EAAC,CACxB,CAAC;AACJ,CAAC;AAND,kBAMC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operation.decorator.js","sourceRoot":"","sources":["../../src/decorators/operation.decorator.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,oCAAoC;AACpC,+CAA+C;AAC/C,gEAAgE;;AAEhE,+CAAyD;AAEzD,kCAAiC;AAGjC;;;;;;;GAOG;AACH,SAAgB,GAAG,CAAC,IAAY,EAAE,IAAsB;IACtD,OAAO,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AACtC,CAAC;AAFD,kBAEC;AAED;;;;;;;GAOG;AACH,SAAgB,IAAI,CAAC,IAAY,EAAE,IAAsB;IACvD,OAAO,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AACvC,CAAC;AAFD,oBAEC;AAED;;;;;;;GAOG;AACH,SAAgB,GAAG,CAAC,IAAY,EAAE,IAAsB;IACtD,OAAO,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AACtC,CAAC;AAFD,kBAEC;AAED;;;;;;;GAOG;AACH,SAAgB,KAAK,CAAC,IAAY,EAAE,IAAsB;IACxD,OAAO,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AACxC,CAAC;AAFD,sBAEC;AAED;;;;;;;GAOG;AACH,SAAgB,GAAG,CAAC,IAAY,EAAE,IAAsB;IACtD,OAAO,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AACzC,CAAC;AAFD,kBAEC;AAED;;;;;;;GAOG;AACH,SAAgB,SAAS,CAAC,IAAY,EAAE,IAAY,EAAE,IAAsB;IAC1E,OAAO,gCAAsB,CAAC,eAAe,CAC3C,eAAQ,CAAC,WAAW,EACpB;QACE,IAAI;QACJ,IAAI;QACJ,IAAI;KACL,
|
|
1
|
+
{"version":3,"file":"operation.decorator.js","sourceRoot":"","sources":["../../src/decorators/operation.decorator.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,oCAAoC;AACpC,+CAA+C;AAC/C,gEAAgE;;AAEhE,+CAAyD;AAEzD,kCAAiC;AAGjC;;;;;;;GAOG;AACH,SAAgB,GAAG,CAAC,IAAY,EAAE,IAAsB;IACtD,OAAO,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AACtC,CAAC;AAFD,kBAEC;AAED;;;;;;;GAOG;AACH,SAAgB,IAAI,CAAC,IAAY,EAAE,IAAsB;IACvD,OAAO,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AACvC,CAAC;AAFD,oBAEC;AAED;;;;;;;GAOG;AACH,SAAgB,GAAG,CAAC,IAAY,EAAE,IAAsB;IACtD,OAAO,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AACtC,CAAC;AAFD,kBAEC;AAED;;;;;;;GAOG;AACH,SAAgB,KAAK,CAAC,IAAY,EAAE,IAAsB;IACxD,OAAO,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AACxC,CAAC;AAFD,sBAEC;AAED;;;;;;;GAOG;AACH,SAAgB,GAAG,CAAC,IAAY,EAAE,IAAsB;IACtD,OAAO,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AACzC,CAAC;AAFD,kBAEC;AAED;;;;;;;GAOG;AACH,SAAgB,SAAS,CAAC,IAAY,EAAE,IAAY,EAAE,IAAsB;IAC1E,OAAO,gCAAsB,CAAC,eAAe,CAC3C,eAAQ,CAAC,WAAW,EACpB;QACE,IAAI;QACJ,IAAI;QACJ,IAAI;KACL,EACD,EAAC,aAAa,EAAE,YAAY,EAAC,CAC9B,CAAC;AACJ,CAAC;AAVD,8BAUC"}
|
|
@@ -52,7 +52,7 @@ function param(paramSpec) {
|
|
|
52
52
|
throw new Error(`The parameter type is set to 'array' but the JavaScript type is ${paramType.name}`);
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
context_1.ParameterDecoratorFactory.createDecorator(keys_1.OAI3Keys.PARAMETERS_KEY, paramSpec)(target, member, index);
|
|
55
|
+
context_1.ParameterDecoratorFactory.createDecorator(keys_1.OAI3Keys.PARAMETERS_KEY, paramSpec, { decoratorName: '@param' })(target, member, index);
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
58
|
exports.param = param;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parameter.decorator.js","sourceRoot":"","sources":["../../src/decorators/parameter.decorator.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,oCAAoC;AACpC,+CAA+C;AAC/C,gEAAgE;;AAEhE,+CAA+E;AAC/E,wDAAiD;AACjD,kCAAiC;AACjC,oCAMkB;AAElB;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,KAAK,CAAC,SAA0B;IAC9C,OAAO,UAAS,MAAc,EAAE,MAAc,EAAE,KAAa;QAC3D,SAAS,GAAG,SAAS,IAAI,EAAE,CAAC;QAC5B,gDAAgD;QAChD,MAAM,SAAS,GAAG,2BAAiB,CAAC,sBAAsB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAC3E,MAAM,UAAU,GAAG,CAAC,SAAS,IAAI,SAAS,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC;QAEjE,2DAA2D;QAE3D,MAAM,SAAS,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;QAEpC,IAAI,SAAS,EAAE;YACb;YACE,iDAAiD;YACjD,CAAC,SAAS,CAAC,MAAM;gBACjB,iEAAiE;gBACjE,CAAC,sBAAc,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,EAC5D;gBACA,yEAAyE;gBACzE,SAAS,CAAC,MAAM,GAAG,+BAAa,CAAC,SAAS,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;aAC/D;SACF;QAED,IACE,SAAS,CAAC,MAAM;YAChB,sBAAc,CAAC,SAAS,CAAC,MAAM,CAAC;YAChC,SAAS,CAAC,MAAM,CAAC,IAAI,KAAK,OAAO,EACjC;YACA,6CAA6C;YAC7C,IAAI,SAAS,IAAI,IAAI,IAAI,SAAS,KAAK,MAAM,IAAI,SAAS,KAAK,KAAK,EAAE;gBACpE,MAAM,IAAI,KAAK,CACb,mEAAmE,SAAS,CAAC,IAAI,EAAE,CACpF,CAAC;aACH;SACF;QAED,mCAAyB,CAAC,eAAe,CACvC,eAAQ,CAAC,cAAc,EACvB,SAAS,
|
|
1
|
+
{"version":3,"file":"parameter.decorator.js","sourceRoot":"","sources":["../../src/decorators/parameter.decorator.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,oCAAoC;AACpC,+CAA+C;AAC/C,gEAAgE;;AAEhE,+CAA+E;AAC/E,wDAAiD;AACjD,kCAAiC;AACjC,oCAMkB;AAElB;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,KAAK,CAAC,SAA0B;IAC9C,OAAO,UAAS,MAAc,EAAE,MAAc,EAAE,KAAa;QAC3D,SAAS,GAAG,SAAS,IAAI,EAAE,CAAC;QAC5B,gDAAgD;QAChD,MAAM,SAAS,GAAG,2BAAiB,CAAC,sBAAsB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAC3E,MAAM,UAAU,GAAG,CAAC,SAAS,IAAI,SAAS,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC;QAEjE,2DAA2D;QAE3D,MAAM,SAAS,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;QAEpC,IAAI,SAAS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AAC,MAAM,EAAE,YAAY,CAAC,MAAM,CAAC;QACxD;;;;;WAKG;QACH,IAAI,EAAE,mBAAmB,CAAC,MAAM,EAAE,YAAY,CAAC,IAAI,CAAC;QACpD;;;;;WAKG;QACH,QAAQ,EAAE,mBAAmB,CAAC,MAAM,EAAE,YAAY,CAAC,QAAQ,CAAC;QAC5D;;;;;WAKG;QACH,QAAQ,EAAE,mBAAmB,CAAC,MAAM,EAAE,YAAY,CAAC,QAAQ,CAAC;KAC7D,CAAC;IAEF;;;;;;;;;;;;;;;;OAgBG;IACU,WAAK,GAAG,UACnB,IAAY,EACZ,MAAyB,EACzB,QAAwC;QAExC,OAAO,KAAK,CAAC;YACX,IAAI;YACJ,EAAE,EAAE,MAAM;YACV,MAAM,EAAE,EAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAC;SACzC,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC,EA7UgB,KAAK,GAAL,aAAK,KAAL,aAAK,QA6UrB;AAOD,SAAS,mBAAmB,CAC1B,MAAyB,EACzB,OAA6B;IAE7B,OAAO,CAAC,IAAY,EAAE,IAA+B,EAAE,EAAE;QACvD,OAAO,KAAK,iBAAE,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,oBAAM,OAAO,KAAM,IAAI,EAAE,CAAC;IAClE,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -108,7 +108,7 @@ function requestBody(requestBodySpec) {
|
|
|
108
108
|
/* istanbul ignore if */
|
|
109
109
|
if (debug.enabled)
|
|
110
110
|
debug(' final spec: ', util_1.inspect(requestBodySpec, { depth: null }));
|
|
111
|
-
context_1.ParameterDecoratorFactory.createDecorator(keys_1.OAI3Keys.REQUEST_BODY_KEY, requestBodySpec)(target, member, index);
|
|
111
|
+
context_1.ParameterDecoratorFactory.createDecorator(keys_1.OAI3Keys.REQUEST_BODY_KEY, requestBodySpec, { decoratorName: '@requestBody' })(target, member, index);
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
114
|
exports.requestBody = requestBody;
|
|
@@ -133,7 +133,7 @@ exports.requestBody = requestBody;
|
|
|
133
133
|
* @param itemSpec - the full item object
|
|
134
134
|
*/
|
|
135
135
|
requestBody.array = function (itemSpec, properties) {
|
|
136
|
-
return requestBody(Object.assign({}, properties, { content: {
|
|
136
|
+
return requestBody(Object.assign(Object.assign({}, properties), { content: {
|
|
137
137
|
'application/json': {
|
|
138
138
|
schema: { type: 'array', items: itemSpec },
|
|
139
139
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-body.decorator.js","sourceRoot":"","sources":["../../src/decorators/request-body.decorator.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,oCAAoC;AACpC,+CAA+C;AAC/C,gEAAgE;;AAEhE,+CAA+E;AAC/E,4BAA4B;AAC5B,+BAA6B;AAC7B,wDAAiD;AACjD,kCAAiC;AAGjC,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,wCAAwC,CAAC,CAAC;AAC5D,QAAA,kBAAkB,GAAG,mBAAmB,CAAC;AAEtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+DG;AACH,SAAgB,WAAW,CAAC,eAA4C;IACtE,OAAO,UAAS,MAAc,EAAE,MAAc,EAAE,KAAa;QAC3D,KAAK,CAAC,yBAAyB,EAAE,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAClE,KAAK,CAAC,uBAAuB,EAAE,KAAK,CAAC,CAAC;QACtC,wBAAwB;QACxB,IAAI,KAAK,CAAC,OAAO;YACf,KAAK,CAAC,eAAe,EAAE,cAAO,CAAC,eAAe,EAAE,EAAC,KAAK,EAAE,IAAI,EAAC,CAAC,CAAC,CAAC;QAElE,0EAA0E;QAC1E,eAAe,GAAG,eAAe,IAAI,EAAC,OAAO,EAAE,EAAE,EAAC,CAAC;QAEnD,IAAI,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC,OAAO,CAAC;YACpC,eAAe,CAAC,OAAO,GAAG,EAAC,kBAAkB,EAAE,EAAE,EAAC,CAAC;QAErD,gDAAgD;QAChD,MAAM,SAAS,GAAG,2BAAiB,CAAC,sBAAsB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAC3E,MAAM,UAAU,GAAG,CAAC,SAAS,IAAI,SAAS,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC;QAEjE,MAAM,SAAS,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;QACpC,MAAM,MAAM,GAAG,+BAAa,CAAC,SAAS,CAAC,CAAC;QACxC,wBAAwB;QACxB,IAAI,KAAK,CAAC,OAAO;YACf,KAAK,CAAC,uBAAuB,EAAE,cAAO,CAAC,MAAM,EAAE,EAAC,KAAK,EAAE,IAAI,EAAC,CAAC,CAAC,CAAC;QACjE,eAAe,CAAC,OAAO,GAAG,CAAC,CAAC,SAAS,CAAC,eAAe,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE;YACjE,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE;gBACb,CAAC,CAAC,MAAM,GAAG,MAAM,CAAC;aACnB;YACD,OAAO,CAAC,CAAC;QACX,CAAC,CAAC,CAAC;QAEH,sDAAsD;QACtD,oEAAoE;QACpE,IAAI,KAAK,KAAK,CAAC,EAAE;YACf,eAAe,CAAC,0BAAkB,CAAC,GAAG,KAAK,CAAC;SAC7C;QAED,wBAAwB;QACxB,IAAI,KAAK,CAAC,OAAO;YACf,KAAK,CAAC,gBAAgB,EAAE,cAAO,CAAC,eAAe,EAAE,EAAC,KAAK,EAAE,IAAI,EAAC,CAAC,CAAC,CAAC;QACnE,mCAAyB,CAAC,eAAe,CACvC,eAAQ,CAAC,gBAAgB,EACzB,eAAoC,
|
|
1
|
+
{"version":3,"file":"request-body.decorator.js","sourceRoot":"","sources":["../../src/decorators/request-body.decorator.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,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opback/openapi-v3",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.6",
|
|
4
4
|
"description": "Processes openapi v3 related metadata",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=8.9"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@loopback/context": "^1.
|
|
10
|
-
"@loopback/repository-json-schema": "^1.9.
|
|
9
|
+
"@loopback/context": "^1.22.1",
|
|
10
|
+
"@loopback/repository-json-schema": "^1.9.7",
|
|
11
11
|
"debug": "^4.1.1",
|
|
12
12
|
"lodash": "^4.17.15",
|
|
13
13
|
"openapi3-ts": "^1.3.0"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@loopback/build": "^2.0.
|
|
17
|
-
"@loopback/eslint-config": "^
|
|
18
|
-
"@loopback/openapi-spec-builder": "^1.2.
|
|
19
|
-
"@loopback/repository": "^1.
|
|
20
|
-
"@loopback/testlab": "^1.
|
|
21
|
-
"@types/debug": "^4.1.
|
|
22
|
-
"@types/lodash": "^4.14.
|
|
23
|
-
"@types/node": "^10.14.
|
|
16
|
+
"@loopback/build": "^2.0.10",
|
|
17
|
+
"@loopback/eslint-config": "^4.0.2",
|
|
18
|
+
"@loopback/openapi-spec-builder": "^1.2.12",
|
|
19
|
+
"@loopback/repository": "^1.13.1",
|
|
20
|
+
"@loopback/testlab": "^1.8.0",
|
|
21
|
+
"@types/debug": "^4.1.5",
|
|
22
|
+
"@types/lodash": "^4.14.138",
|
|
23
|
+
"@types/node": "^10.14.17"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
26
|
"build": "lb-tsc",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"url": "https://github.com/strongloop/loopback-next.git",
|
|
56
56
|
"directory": "packages/openapi-v3"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "4e653bbff797b26437bd1b0817ed9b8c91f3477b"
|
|
59
59
|
}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
5
5
|
|
|
6
|
-
import {ControllerSpec} from '../controller-spec';
|
|
7
6
|
import {ClassDecoratorFactory} from '@loopback/context';
|
|
7
|
+
import {ControllerSpec} from '../controller-spec';
|
|
8
8
|
import {OAI3Keys} from '../keys';
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -30,5 +30,6 @@ export function api(spec: ControllerSpec) {
|
|
|
30
30
|
return ClassDecoratorFactory.createDecorator<ControllerSpec>(
|
|
31
31
|
OAI3Keys.CLASS_KEY,
|
|
32
32
|
spec,
|
|
33
|
+
{decoratorName: '@api'},
|
|
33
34
|
);
|
|
34
35
|
}
|
|
@@ -119,6 +119,7 @@ export function requestBody(requestBodySpec?: Partial<RequestBodyObject>) {
|
|
|
119
119
|
ParameterDecoratorFactory.createDecorator<RequestBodyObject>(
|
|
120
120
|
OAI3Keys.REQUEST_BODY_KEY,
|
|
121
121
|
requestBodySpec as RequestBodyObject,
|
|
122
|
+
{decoratorName: '@requestBody'},
|
|
122
123
|
)(target, member, index);
|
|
123
124
|
};
|
|
124
125
|
}
|