question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[plugins] `mustExist` for custom rules does not give an error for additional properties

See original GitHub issue

Is your feature request related to a problem? Please describe. following the example for Plugins

I successfully created an example to test required properties in a Response object but I was not able to figure out how to evaluate additional properties in the schema object. I want to ensure the mustExist array are the only properties defined in the schema.

Describe the solution you’d like I would like to know how to use mustExist in the custom rule to enforce a specific schema.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
RomanHotsiycommented, Jan 17, 2022

@jeremyfiel your code looks valid!

I would just improve location arg from the last report:

location: location.child(['properties', key]).key(),

Can this issue be resolved?

0reactions
jeremyfielcommented, Jan 17, 2022

thanks Roman.

Read more comments on GitHub >

github_iconTop Results From Across the Web

should NOT have additional properties. · Issue #2231 ... - GitHub
Configuration for rule "react/jsx-indent" is invalid: Value {"indentLogicalExpressions":true} should NOT have additional properties.
Read more >
Rules - Redocly
Rules. All Redocly CLI rules are listed on this page. To learn how to configure rules, read more about their configuration syntax.
Read more >
What happened to my website? - WordPress.org
My website was running well. Updated all plugins. Then it crashed with 2 weird line of error. Decidded to manually update WordPress to...
Read more >
Resolve validation errors - Azure DevOps Services
Fix errors reported upon importing a process to support customization of tracking work in Azure DevOps Services.
Read more >
SonarQube 5.2 - Issues not locked against custom Java rules
Debug statements from custom plugin code were not executed when analysis was done with logging level at verbose/DEBUG. The behaviour was the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found