feat: overlay linting, decorators, preprocessors, types extension support#1898
feat: overlay linting, decorators, preprocessors, types extension support#1898tatomyr merged 2 commits intoRedocly:mainfrom
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.
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
| @@ -104,6 +108,7 @@ export class StyleguideConfig { | |||
| [SpecVersion.Async2]: { ...rawConfig.decorators, ...rawConfig.async2Decorators }, | |||
| [SpecVersion.Async3]: { ...rawConfig.decorators, ...rawConfig.async3Decorators }, | |||
| [SpecVersion.Arazzo1]: { ...rawConfig.arazzo1Decorators }, | |||
There was a problem hiding this comment.
should this line include ...rawConfig.decorators?
There was a problem hiding this comment.
Most likely yes. @DmitryAnansky what do you think?
There was a problem hiding this comment.
these can be added in an separate pr unrelated to Overlays.. I found this omission when updating this pr.
| @@ -95,6 +98,7 @@ export class StyleguideConfig { | |||
| [SpecVersion.Async2]: { ...rawConfig.preprocessors, ...rawConfig.async2Preprocessors }, | |||
| [SpecVersion.Async3]: { ...rawConfig.preprocessors, ...rawConfig.async3Preprocessors }, | |||
| [SpecVersion.Arazzo1]: { ...rawConfig.arazzo1Preprocessors }, | |||
There was a problem hiding this comment.
should this line include ...rawConfig.preprocessors?
tatomyr
left a comment
There was a problem hiding this comment.
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.
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