Skip to content

Commit

Permalink
ddd
Browse files Browse the repository at this point in the history
  • Loading branch information
nulltoken committed Feb 1, 2020
1 parent 8eb1215 commit 9f04eef
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/__tests__/__fixtures__/custom-oas-ruleset.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,9 @@
}
}
}
},
"except": {
"/test/file.yaml#/object/values/1": ["info-matches-stoplight", "dummy-rule"],
"another.yaml#": ["dummy-rule"]
}
}
2 changes: 2 additions & 0 deletions src/__tests__/spectral.jest.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ describe('Spectral', () => {
},
}),
);

expect(s.exceptions).toEqual({});
});

test('should support loading rulesets over http', async () => {
Expand Down
1 change: 1 addition & 0 deletions src/spectral.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ export class Spectral {
),
);

// TODO: Should we accept relative paths for exception locations at that level?
this.setExceptions(ruleset.exceptions);
}

Expand Down

0 comments on commit 9f04eef

Please sign in to comment.