Azure / Azure/api-management-developer-portal
AnyOf/OneOf complex object cannot be rendered
- 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!

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