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.

Incorrect output for intersection of records with the same property

See original GitHub issue

This

type Schema = {
    a: {
        b: any
    }
} & {
    a: {
        c: any
    }
};

yields this:

{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$ref": "#/definitions/Schema",
    "definitions": {
        "Schema": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "a": {
                    "type": "object",
                    "properties": {
                        "b": {}
                    },
                    "required": [
                        "b"
                    ],
                    "additionalProperties": false
                }
            },
            "required": [
                "a"
            ]
        }
    }
}

The c property is missing.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
GrantGryczancommented, Nov 24, 2021

Alright! Let me know how that goes 😃

0reactions
GrantGryczancommented, Jan 6, 2022

Oh okay, I asked because I was under the impression you were still trying to fix it yourself. Was wondering if you ran into complications or something.

Read more comments on GitHub >

github_iconTop Results From Across the Web

problem with intersect operation in a sql query - Stack Overflow
I wrote the following query, I think it's correct but I have a "missing operator" error. SELECT * FROM results,Types WHERE results.a=Types.b INTERSECT...
Read more >
Improper Intersection Approach - Fienman Defense
Improper Intersection Approach - Call our criminal defense attorneys from Fienman Defense at (215) 839-9529 today! FREE Consults available.
Read more >
Intersect (analysis) of polygons generating empty output
Whenever I run an intersect with all the polygon shapefiles (there is about 40) within the Polygon boundary it generates an empty output....
Read more >
Enumerable.Intersect Method (System.Linq) - Microsoft Learn
When the object returned by this method is enumerated, Intersect yields distinct elements occurring in both sequences in the order in which they...
Read more >
Problem: Some Overlay tools, such as Intersect, return ...
Cause. It is possible that tool outputs may be incorrect because one or more features in the input feature class have geometry problems....
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