Azure / Azure/api-management-developer-portal

AnyOf/OneOf complex object cannot be rendered

Open
#2,813 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
545
Forks
360
PR merge metrics
No merged PRs in 30d

Description

I had a schema that used to work in the Developer portal until there was an array of complex objects added.

My schema is valid (checked on editor.swagger.io) but when I'm using a complex object in an AnyOf or OneOf it cannot be rendered because the map() method cannot be found on an undefined object

I've also tried to use the $ref notation but it doesn't help.

Any suggestions what might help to get the rendering fixed?

Many thanks in advance!

![Image](https://github.com/user-attachments/assets/389f2bb3-b47a-43d3-b26b-cd6938026621)

Contributor guide

No contributing guide indexed for this repository

Research direction

No source file, test, or entry point is named in the report. Reproduce the schema with an array of complex objects inside AnyOf or OneOf, then trace the rendering path to the map() call on the undefined value; done means the schema renders without that error, including when $ref notation is used.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.