Azure / Azure/oav

OAV should report an error if polymorphic model has no `"type": "object"`

Open
#390 1 comment 0 reactions 0 assignees View on GitHub
P2 ramp-up-task
Dominant language
TypeScript
Stars
104
Forks
62
Avg merge
2d 12h
Merged PRs (30d)
5

Description

For example, if the model has 'discriminator' and `"type": "object"` is omitted, OAV should report an error.

Contributor guide

Open the contributing guide

Research direction

No file or test is named in the issue. Start by locating the OpenAPI validation path that handles polymorphic models and discriminators, then add a regression case for a discriminator model missing "type": "object"; done means OAV reports an error for that model.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi, typescript
Domain
api, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.