Skip to content
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

refactor: add possibility to pass custom resolvers (unstable) #593

Merged

Conversation

magicmatatjahu
Copy link
Member

@magicmatatjahu magicmatatjahu commented Sep 5, 2022

Description

Add possibility to pass custom resolvers. With json-schema-ref-resolvers we have possibility to pass custom ref resolvers. Atm we use that feature in Generator and in ServerAPI. Unfortunately, ref-resolver from Spectral doesn't have such a thing, so that PR "wraps" default Spectral resolvers with adding similar functionality. Of course that feature will be used only by us, so I annotated that feature by __unstable prefix. Spectral team is preparing to switch to the json-schema-ref-parser and we will provide this functionality when Spectral will support it natively.

cc @smoya

Related issue(s)
Part of #481
Part of #482

@magicmatatjahu magicmatatjahu added the enhancement New feature or request label Sep 5, 2022
@sonarcloud
Copy link

sonarcloud bot commented Sep 22, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Copy link
Member

@smoya smoya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🚀🌔

@magicmatatjahu
Copy link
Member Author

/rtm

@asyncapi-bot asyncapi-bot merged commit 6fc8b21 into asyncapi:next-major Sep 23, 2022
@magicmatatjahu magicmatatjahu deleted the next/custom-resolvers branch September 23, 2022 08:33
magicmatatjahu added a commit to magicmatatjahu/parser-js that referenced this pull request Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ready-to-merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants