Skip to content

Commit

Permalink
fix(ls): fix Parameter Object required fields lint rule
Browse files Browse the repository at this point in the history
Before the fix, Reference Object referencing Parameter Objects
generated 5150001 error, which was a false positive.

Refs swagger-api/swagger-editor#3791
  • Loading branch information
char0n committed Feb 9, 2023
1 parent 4646a62 commit 9d8eaf1
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ const requiredFieldsLint: LinterMeta = {
linterParams: ['content'],
marker: 'key',
conditions: [
{
function: 'missingField',
params: ['$ref'],
},
{
function: 'missingFields',
params: [['content', 'schema']],
Expand Down

0 comments on commit 9d8eaf1

Please sign in to comment.