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.

AllOf objects duplicated when rendering

See original GitHub issue

Hi. Here the issue I’m getting:

Brief description: When using AllOf in a object (normally with more than one level of inheritance) properties get rendered twice (or even more depending on the number of levels).

Reproduction steps Use AllOf with several levels of inheritance. For intance next Yaml shows this structrue: Invoice --> ProgressionEntity --> Reference

` invoice: allOf: - $ref: “#/components/schemas/progressionEntity” required: - currencyIsoCode - notificationDate - sections - subType - taxPointDate - type type: object properties: comments: $ref: “#/components/schemas/comments” currencyIsoCode: $ref: “#/components/schemas/currencyIsoCode” estimateReference: $ref: “#/components/schemas/reference” files: $ref: “#/components/schemas/files” notificationDate: $ref: “#/components/schemas/notificationDate” orderItemReference: $ref: “#/components/schemas/reference” description: Mandatory if estimateReference field is not filled. sections: type: array items: $ref: “#/components/schemas/section” subType: $ref: “#/components/schemas/invoiceSubType” taxPointDate: $ref: “#/components/schemas/taxPointDate” type: $ref: “#/components/schemas/invoiceType” additionalProperties: false

progressionEntity: allOf: - $ref: “#/components/schemas/reference” type: object properties: progressionData: type: array items: $ref: “#/components/schemas/progressionData” additionalProperties: false

reference: type: object required: - externalReference properties: externalReference: $ref: “#/components/schemas/externalReference” transportReference: $ref: “#/components/schemas/transportReference” gatewayReference: $ref: “#/components/schemas/gatewayReference” additionalProperties: false`

It shows up like this in Developer portal: image

Expected behavior Properties don’t get duplicated.

Is your portal managed or self-hosted? Managed

Release tag or commit SHA (if using self-hosted version) [e.g., release 2.0.0, commit c45da9778b70d369aba60fa2e63c191efe2b548f]

Add any other context about the problem here, including screenshots.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
i02corojcommented, Jul 12, 2022

Hi. We messed things up. It was happening in self-hosted mode. Just tried in the managed version and not seeing the issue. So will figure out what code change in our end produced it. Sorry for wasting your time

1reaction
msftbot[bot]commented, Jul 6, 2022

@i02coroj, thank you for reporting the bug.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Duplicated objects created in Blender Render are invisible in ...
Navigate to Object properties, Cycles settings tab: enter image description here. Turn on all Ray Visibility types:.
Read more >
Duplication — Blender Manual
There are two types of object duplication, being Duplicate and Linked ... This will create a new object with all of its data...
Read more >
How to DUPLICATE (linked / objects) | Blender 2.9 | Tutorial
Blenderduplicate #duplicateobject #instanceWhile modeling or any kind of scene design you may come to the point to duplicate an object to ...
Read more >
Efficient rendering of duplicate objects - Unity Forum
I'm using the default Standard shader. Enabling GPU instancing results in no change in draw calls. If I enable dynamic batching, with GPU ......
Read more >
Solved: Re: creating 3D objects with duplicate method
A better solution would be to parent all of the copied 3D layers in the pre-comp to a null or the top layer...
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