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

Introduce API for overriding json objects coming from contributors #271

Closed
wants to merge 1 commit into from

Conversation

JPinkney
Copy link
Contributor

This introduces some new API that allows you to override schemas that come from contributors using the registerContributor API.

The way it works is that if registerContributor registers with a scheme "kubernetes" and then you use registerCustomSchemaContentModifier with scheme "kubernetes" and your callback function, the callback function will be called with the schema content after a schema content request has been made BUT before it sends the schema back to the language server. This means you can intercept the schema and control it however you'd like.

@JPinkney
Copy link
Contributor Author

Closing as we are going with #272

@JPinkney JPinkney closed this Jan 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant