Skip to content

[http-client-csharp] WriteAdditionalFiles is not providing something downstream generators could filter #10279

@ArcturusZhang

Description

@ArcturusZhang

We introduced a WriteAdditionalFiles API, and it is implemented to write ConfigurationSchema.json:

but this extension point is an action instead of providing data - therefore for downstream generators, there are only two options: take all or reject all.
There is no such an option that a downstream generator could accept a subset in it.

Can we change this API to something like BuildAdditionalFiles which returns FileInfo[] where FileInfo is something like { filename: "", content: "" } so that downstream generators could filter them by filenames, even modify their content.

Metadata

Metadata

Assignees

No one assigned

    Labels

    emitter:client:csharpIssue for the C# client emitter: @typespec/http-client-csharp

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions