SmartBear / intellij-swaggerhub-release

3 stars 0 forks source link

How to Validate APIs and Components #5

Open sehand opened 3 years ago

sehand commented 3 years ago

Is there a way to validate the APIs and Components within the plugin? This would be any or all of the following:

  1. Syntactic correctness.
  2. Referenced entities exist (either within the same file or referencing entities from component models).

I haven't found a way, so I keep going back into SwaggerHUB website to see if there are errors. This makes it really tedious to use the plugin because I end up making edits both in the SwaggerHUB UI (to resolve validation errors) and in the Plugin and then can't remember which way to sync.

emmett008 commented 3 years ago

@sehand,

In the current version 1.0.2, api definitions are validated and errors shown to the user - i.e. if a required definition field e.g version is missing the user will be told as such.

With regards to checking/resolving for referenced entities, this is not something that we have in place currently but is in plans to deliver in the future