Azure / Azure/azure-rest-api-specs
Request and response models should author `required` properties
Open
Cognitive - QnA Maker
Service Attention
- Dominant language
- TypeSpec
- Stars
- 3.1k
- Forks
- 5.9k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 424
Description
Based on feedback about `AnswerSpan.confidenceScore` being optional in code gen (it should be `double` not a `double?`), both request and response models should author `required` properties like this.
/cc @annatisch
Contributor guide
Research direction
Start by locating the TypeSpec definitions for AnswerSpan.confidenceScore and the request and response model authoring logic. Compare generated nullability and required-property output; done means confidenceScore and other required properties are emitted as non-optional in generated code for both model types.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, openapi
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100