Skip to content

[Bug]: http-client-java, either not allow clientRequired set false to the property, or require property also have a clientDefaultValue #10363

@weidongxu-microsoft

Description

@weidongxu-microsoft

Describe the bug

clientRequired client option may set a "required" property to "optional".

If this is not service's error on the TypeSpec, this would cause error if user does skip the property.

Emitter better report an error.

Reproduction

#10337 (comment)

Checklist

Metadata

Metadata

Labels

bugSomething isn't workingemitter:client:javaIssue for the Java client emitter: @typespec/http-client-java

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions