Skip to content

Validate swagger#972

Merged
brylie merged 2 commits intodevelopfrom
feature/swagger-validation
Jun 1, 2016
Merged

Validate swagger#972
brylie merged 2 commits intodevelopfrom
feature/swagger-validation

Conversation

@jykae
Copy link
Copy Markdown
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
Copy Markdown
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.

2 participants