Skip to content

[http-client-csharp] SystemObjectTypeProvider looks unnecessary #11261

Description

@ArcturusZhang

We introduced SystemObjectTypeProvider to represent any type written in custom code.
But NamedSymbolTypeProvider is doing the same thing, do we really need both?

Also in the BaseType resolution logic in ModelProvider, we have 3 different methods:
BuildBaseType (BaseType), BuildBaseTypeProvider (BaseTypeProvider) and BuildBaseModelProvider (BaseModelProvider)
they do not really agree with each other.
BuildBaseTypeProvider builds another instance (instantiating SystemObjectTypeProvider) instead of just returning whatever returned by BaseModelProvider.

I think we should figure out and make them consistent.

Metadata

Metadata

Assignees

Labels

emitter:client:csharpIssue for the C# client emitter: @typespec/http-client-csharpfeatureNew feature or request

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions