-
Notifications
You must be signed in to change notification settings - Fork 195
feat: overlay linting, decorators, preprocessors, types extension support #1898
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
Conversation
🦋 Changeset detectedLatest commit: 7abbfe2 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
* updated references to use defined NodeTypes. * update `any` to `unknown` * run prettier * rebase latest changes from main * refactor to match Redocly#1898 type definitions related Redocly#1246
* updated references to use defined NodeTypes. * update `any` to `unknown` * run prettier * rebase latest changes from main * refactor to match Redocly#1898 type definitions related Redocly#1246
b9f71e5 to
4810f51
Compare
|
docs to be added separately |
4810f51 to
303d41b
Compare
* updated references to use defined NodeTypes. * update `any` to `unknown` * run prettier * rebase latest changes from main * refactor to match Redocly#1898 type definitions related Redocly#1246
* updated references to use defined NodeTypes. * update `any` to `unknown` * run prettier * rebase latest changes from main * refactor to match Redocly#1898 type definitions related Redocly#1246
* updated references to use defined NodeTypes. * update `any` to `unknown` * run prettier * rebase latest changes from main * refactor to match Redocly#1898 type definitions related Redocly#1246
|
I have to check this locally. Will try to do it today. Meanwhile, I'm updating your branch. |
tatomyr
left a comment
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 like you're missing handling overlay rules in config/builtIn.ts and config/config-resolvers.ts. Could you add a test for linting/bundling and an example of the Overlay description in the resource/ folder?
d4bbb56 to
19ec47f
Compare
* updated references to use defined NodeTypes. * update `any` to `unknown` * run prettier related Redocly#1246
6fbb445 to
7c0e2cb
Compare
| [SpecVersion.OAS3_1]: { ...rawConfig.decorators, ...rawConfig.oas3_1Decorators }, | ||
| [SpecVersion.Async2]: { ...rawConfig.decorators, ...rawConfig.async2Decorators }, | ||
| [SpecVersion.Async3]: { ...rawConfig.decorators, ...rawConfig.async3Decorators }, | ||
| [SpecVersion.Arazzo1]: { ...rawConfig.arazzo1Decorators }, |
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.
should this line include ...rawConfig.decorators?
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.
Most likely yes. @DmitryAnansky what do you think?
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.
these can be added in an separate pr unrelated to Overlays.. I found this omission when updating this pr.
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.
Sure, thanks.
| [SpecVersion.OAS3_1]: { ...rawConfig.preprocessors, ...rawConfig.oas3_1Preprocessors }, | ||
| [SpecVersion.Async2]: { ...rawConfig.preprocessors, ...rawConfig.async2Preprocessors }, | ||
| [SpecVersion.Async3]: { ...rawConfig.preprocessors, ...rawConfig.async3Preprocessors }, | ||
| [SpecVersion.Arazzo1]: { ...rawConfig.arazzo1Preprocessors }, |
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.
should this line include ...rawConfig.preprocessors?
tatomyr
left a comment
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.
Left a minor suggestion, otherwise looks good 🎉
* linting * preprocessors * decorators * type extensions
7c0e2cb to
7abbfe2
Compare
tatomyr
left a comment
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.
Thank you for your contribution @jeremyfiel 🎉. Looking forward to the docs updates!
What/Why/How?
Added support for linting, preprocessors, decorators, and type extensions for Overlay v1 documents.
Reference
depends on #1775
Testing
Screenshots (optional)
Check yourself
Security