Skip to content

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 👈

…xed by now

Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
@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 👍

Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
@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.

4 participants