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.

getValue() print other dependency block when without change.

See original GitHub issue

General information

getValue() print other dependency block when without change.

  • json-editor version:

Expected behavior

see developer console screen

result1:  {"fieldOne":"bar","depender2":"dolor"}
result2:  {"fieldOne":"foo","depender1":"lorem"}
result3:  {"fieldOne":"bar","depender2":"dolor"}

Actual behavior

result1:  {"fieldOne":"bar","depender1":"lorem","depender2":"dolor"}
result2:  {"fieldOne":"foo","depender1":"lorem"}
result3:  {"fieldOne":"bar","depender2":"dolor"}

Steps to reproduce the behavior

Direct link to example: https://is.gd/4GsOx2

// README - Dependencies
{
  "title": "An object",
  "type": "object",
  "properties": {
    "fieldOne": {
      "title": "I should be changed to 'foo'",
      "type": "string",
      "enum": ["foo","bar"],
      "default": "bar"
    },
    "depender1": {
      "title": "I depend on fieldOne to be 'foo'",
      "type": "string",
      "enum": ["lorem","ipsum"],
      "options": {
        "dependencies": {
          "fieldOne": "foo"
        }
      }
    },
    "depender2": {
      "title": "I depend on fieldOne to be 'bar'",
      "type": "string",
      "enum": ["dolor", "sit"],
      "options": {
        "dependencies": {
          "fieldOne": "bar"
        }
      }
    }
  }
}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
Samibanleycommented, Oct 2, 2020

I can take a look at this one

0reactions
Samibanleycommented, Oct 6, 2020

@schmunk42 Gotcha, thanks for the clarification!

Read more comments on GitHub >

github_iconTop Results From Across the Web

contextlib — Utilities for with-statement contexts ... - Python Docs
This function is a decorator that can be used to define a factory function for with statement context managers, without needing to create...
Read more >
DataSnapshot | Firebase - Google
getValue() returns the data contained in this snapshot as native types. ... If the child location has no data, an empty DataSnapshot is...
Read more >
Parse a URI String into Name-Value Collection - java
If you are looking for a way to achieve it without using an external library, the following ... final String value = idx...
Read more >
4. Methods Use Instance Variables: How Objects Behave
Call the go() method, passing the variable x as the argument. The bits in x are copied, and the copy lands in z....
Read more >
Your Guide to the Python print() Function
In this step-by-step tutorial, you'll learn about the print() function in Python and discover some of its lesser-known features.
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