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

feat: add diagnostic data with missing properties #775

Conversation

p-spacek
Copy link
Contributor

@p-spacek p-spacek commented Sep 2, 2022

What does this PR do?

When problem 'Property {0} is not allowed.' is found during diagnostic it will extend diagnostic.data by possible props that could be inside the object.

  • diagnostic.data = Object.keys(schema.properties) subtract seenProperties

then it can be used inside CodeAction to suggest proper properties instead of the wrong one.

What issues does this PR fix or reference?

no ref

Is it tested? How?

added tests

@coveralls
Copy link

coveralls commented Sep 2, 2022

Coverage Status

Coverage increased (+0.03%) to 82.984% when pulling b58cb21 on jigx-com:feat/add-diagnostic-data-with-missing-properties into 47290fe on redhat-developer:main.

@gorkem
Copy link
Collaborator

gorkem commented Sep 25, 2022

Are you also planning to contribute CodeAction changes?

@p-spacek
Copy link
Contributor Author

Are you also planning to contribute CodeAction changes?

I didn't plan it (I needed some customized functionality in client, so I didn't need it in YLS), but I can add it (but not sure when).

@msivasubramaniaan msivasubramaniaan merged commit 7853bfd into redhat-developer:main Oct 14, 2022
@fbricon fbricon added this to the 1.11.0 milestone Jan 26, 2023
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.

None yet

5 participants