Azure / Azure/azure-rest-api-specs

Request and response models should author `required` properties

Open
#15,375 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.