Skip to content

Commit

Permalink
feat: improve analyzer errors (#2743)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeepc authored Jun 21, 2023
1 parent ba07c28 commit 9b4f226
Show file tree
Hide file tree
Showing 27 changed files with 642 additions and 127 deletions.
19 changes: 18 additions & 1 deletion api/linters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ components:
type: string
description:
type: string
errorDescription:
type: string
passed:
type: boolean
weight:
Expand All @@ -94,11 +96,26 @@ components:
errors:
type: array
items:
type: string
$ref: "#/components/schemas/LinterResultPluginRuleResultError"
passed:
type: boolean
severity:
type: string
enum:
- error
- warning
LinterResultPluginRuleResultError:
type: object
properties:
value:
type: string
expected:
type: string
level:
type: string
description:
type: string
suggestions:
type: array
items:
type: string
48 changes: 42 additions & 6 deletions cli/openapi/model_linter_result_plugin_rule.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions cli/openapi/model_linter_result_plugin_rule_result.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9b4f226

Please sign in to comment.