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

support sync middleware initialization #50

Closed
wants to merge 1 commit into from
Closed

Conversation

kobik
Copy link
Collaborator

@kobik kobik commented Mar 7, 2019

closes #38

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 99.531% when pulling 8ac31c1 on kobik:sync-init into fc13de6 on Zooz:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 99.531% when pulling 8ac31c1 on kobik:sync-init into fc13de6 on Zooz:master.

}

function init(swaggerPath, options) {
Copy link
Contributor

Choose a reason for hiding this comment

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

we should add comment that this is kept for backward compatibility and it's not really async

@@ -52,6 +52,8 @@
"dependencies": {
"ajv": "^6.6.2",
"clone-deep": "^4.0.1",
"js-yaml": "^3.12.2",
"json-schema-deref-sync": "^0.9.0",
"swagger-parser": "^6.0.2"
Copy link
Contributor

Choose a reason for hiding this comment

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

if you removed the dependency in swagger-parser please remove it from the dependencies as well

});
});

describe.skip('And init fails', function () {
Copy link
Contributor

Choose a reason for hiding this comment

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

why this is skipped?

@kobik
Copy link
Collaborator Author

kobik commented Apr 2, 2019

I think that we should add it in api-schema-builder in order to avoid conflicts with #54

@kibertoad
Copy link
Collaborator

@kobik Do you need any help finishing this PR?

@kibertoad
Copy link
Collaborator

@kobik @idanto Created PayU/api-schema-builder#20 based on implementation from this PR.

@kobik kobik closed this Jun 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Create a synchronous version of init function
4 participants