Skip to content

Split API listings by target framework and namespace#1237

Draft
joseharriaga with Copilot wants to merge 1 commit into
mainfrom
copilot/modify-export-api-script
Draft

Split API listings by target framework and namespace#1237
joseharriaga with Copilot wants to merge 1 commit into
mainfrom
copilot/modify-export-api-script

Conversation

Copilot AI commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

The generated API listings had grown into large monolithic files per target framework. This changes the export flow to keep framework separation while splitting each listing into namespace-scoped files.

  • API export flow

    • GenAPI now writes temporary monolithic outputs to artifacts/api/.
    • scripts/Export-Api.ps1 owns the final api/ layout.
  • Namespace split

    • The export script cleans and normalizes GenAPI output as before.
    • It dynamically discovers OpenAI namespaces and writes one file per namespace under the target framework folder.
  • Generated layout

    api/net10.0/OpenAI.net10.0.cs
    api/net10.0/OpenAI.Assistants.net10.0.cs
    api/net10.0/OpenAI.Audio.net10.0.cs
    api/net10.0/OpenAI.Chat.net10.0.cs
    
  • Docs

    • Updated api/README.md to describe the target-framework and namespace-based layout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants