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 openapi guards to use the upstream version #2974

Merged
merged 2 commits into from
May 27, 2019

Conversation

bajtos
Copy link
Member

@bajtos bajtos commented May 27, 2019

In metadevpro/openapi3-ts#46, I contributed our type guards to openapi3-ts package. This pull request is updating loopback-next to leverage that.

See also #301

Checklist

👉 Read and sign the CLA (Contributor License Agreement) 👈

  • npm test passes on your machine
  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style guide
  • API Documentation in code was updated
  • Documentation in /docs/site was updated
  • Affected artifact templates in packages/cli were updated
  • Affected example projects in examples/* were updated

👉 Check out how to submit a PR 👈

@bajtos bajtos added this to the May 2019 milestone milestone May 27, 2019
@bajtos bajtos self-assigned this May 27, 2019
* See https://github.com/Microsoft/TypeScript/issues/26985
*/
// import {OpenApiSpec} from '@loopback/openapi-v3-types';
import {OpenAPIObject as OpenApiSpec} from 'openapi3-ts';
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

microsoft/TypeScript#26985 has been fixed, the workaround is no longer needed.

Copy link
Contributor

@hacksparrow hacksparrow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

Copy link
Contributor

@nabdelgadir nabdelgadir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI is failing because of the code linter, PTAL 👍

@bajtos bajtos force-pushed the refactor/openapi-guards branch from 2cb4b50 to 070dbe4 Compare May 27, 2019 14:04
@bajtos bajtos merged commit 07afc14 into master May 27, 2019
@bajtos bajtos deleted the refactor/openapi-guards branch May 27, 2019 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants