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

refactor: Move metadata.ts to openapi-spec[WIP] #800

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion packages/openapi-spec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"node": ">=6"
},
"devDependencies": {
"@loopback/build": "^4.0.0-alpha.7"
"@loopback/build": "^4.0.0-alpha.7",
"@loopback/testlab": "^4.0.0-alpha.16",
"@loopback/openapi-spec-builder": "^4.0.0-alpha.14"
},
"scripts": {
"build": "npm run build:dist && npm run build:dist6",
Expand All @@ -16,6 +18,8 @@
"build:apidocs": "lb-apidocs",
"clean": "rm -rf loopback-openapi-spec*.tgz dist* package",
"prepare": "npm run build && npm run build:apidocs",
"pretest": "npm run build:current",
"unit": "lb-dist mocha --opts ../../test/mocha.opts 'DIST/test/unit/**/*.js'",
"verify": "npm pack && tar xf loopback-openapi-spec*.tgz && tree package && npm run clean"
},
"author": "IBM",
Expand All @@ -38,5 +42,10 @@
"repository": {
"type": "git",
"url": "https://github.com/strongloop/loopback-next.git"
},
"dependencies": {
"@loopback/context": "^4.0.0-alpha.22",
"lodash": "^4.17.4",
"openapi3-ts": "^0.6.2"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
SchemaObject,
ParameterType,
PathsObject,
} from '@loopback/openapi-spec';
} from '../../openapi-spec-v3';

const debug = require('debug')('loopback:core:router:metadata');

Expand All @@ -34,6 +34,7 @@ function cloneDeep<T>(val: T): T {
});
}

// !!!!!!! Need to be changed in openapi3
export interface ControllerSpec {
/**
* The base path on which the Controller API is served.
Expand Down
3 changes: 2 additions & 1 deletion packages/openapi-spec/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT

export * from './openapi-spec-v2';
export * from './openapi-spec-v3';
export * from './decorators/controller-decorators/metadata';
Loading