-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disabling reference-components-regex #28
Conversation
074f004
to
6e33326
Compare
@@ -688,7 +688,9 @@ function checkPathItem(pathItem, path, openapi, options) { | |||
op.should.not.have.property('produces'); | |||
op.should.not.have.property('schemes'); | |||
op.should.have.property('responses'); | |||
op.responses.should.not.be.empty(); | |||
if (!(typeof op.responses === 'object' && Object.keys(op.responses).length > 0)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated, but an empty responses was causing unclear errors.
post: | ||
summary: b | ||
parameters: | ||
- $ref: './parameters.yaml#/foo' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be considered valid, but supposedly is not.
84709e5
to
8bd2756
Compare
test/linter.test.js
Outdated
done(); | ||
}); | ||
|
||
it('is valid with ./', done => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is coming up as true.
test/linter.test.js
Outdated
} | ||
}; | ||
|
||
it('should error if missing ./', done => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test is failing, as missing a ./
is showing up as valid... this seems to be the opposite of the complaints.
29ecc8f
to
a348422
Compare
a348422
to
74ded8e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good otherwise.
lib/linter.js
Outdated
}); | ||
if (target) { | ||
if (split) { | ||
// console.log('====\ntarget', target); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove commented code if not needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Refresh!
74ded8e
to
1fcd638
Compare
The resolver is rewriting $refs, so it turns
'./schemas/parameters.yml#/Page'
into'#/paths/~1v1~1conversations/get/parameters/1'
and sometimes puts that value intox-miro
instead.We'll track fixing this in #43, but for the sake of fixing things for multiple users we gotta disable this rule.
Some other random changes snuck in, please don't complain about the boyscouting.
Fixes #23