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

Validate swagger #972

Merged
merged 2 commits into from
Jun 1, 2016
Merged

Validate swagger #972

merged 2 commits into from
Jun 1, 2016

Conversation

jykae
Copy link
Contributor

@jykae jykae commented May 30, 2016

Closes #523

Proposed changes

  • add swagger-parser package
  • add Meteor method to validate Swagger file

Related to #967

@apinf/developers please review

@jykae jykae added this to the Sprint 23 milestone May 30, 2016
validateSwagger: function(url) {
SwaggerParser.validate(url)
.then(function(api){
console.log("Your API is valid!");
Copy link
Contributor

Choose a reason for hiding this comment

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

We probably do not need to show any console logs, since this code runs on the server. We will use the return value of this function to show an alert to the user.

@brylie brylie merged commit d0ac741 into develop Jun 1, 2016
@brylie brylie deleted the feature/swagger-validation branch June 1, 2016 10:13
@brylie brylie removed the in progress label Jun 1, 2016
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.

None yet

2 participants