Skip to content

Document the service.yaml manifest - #5338

Open
Timothee Guerin (timotheeguerin) wants to merge 1 commit into
Azure:mainfrom
timotheeguerin:docs/service-yaml
Open

Document the service.yaml manifest#5338
Timothee Guerin (timotheeguerin) wants to merge 1 commit into
Azure:mainfrom
timotheeguerin:docs/service-yaml

Conversation

@timotheeguerin

Copy link
Copy Markdown
Member

@azure-tools/typespec-autorest has been emitting service.yaml since #4846, but the only documentation is the generated service-yaml emitter option entry. Nothing explains what the file is or why a spec author should care about it — which is the part that actually matters during the rollout.

Adds a short page under Howtos & Examples → Publish REST API Spec that leads with the why: version metadata used to live in readme.md tags, folder names and conventions, hand-maintained and easy to drift from the spec; service.yaml gives it one schema-validated home generated from the spec itself.

The rest is deliberately minimal — an annotated example, and just enough mechanics to act on it: how the emitter fills in source: typespec entries, that hand-authored source: swagger entries are left alone, and the multi-service caveat.

Preview: /docs/howtos/rest-api-publish/service-yaml/ (no sidebar change needed, the howtos directory is autogenerated).

Part of #4829.

@microsoft-github-policy-service microsoft-github-policy-service Bot added the meta:website TypeSpec.io updates label Aug 28, 2026
@github-actions

Copy link
Copy Markdown
Contributor

No changes needing a change description found.

@azure-sdk-automation

Copy link
Copy Markdown
Contributor

You can try these changes here

🛝 Playground 🌐 Website

managed by the emitter.

:::caution
A project defining multiple services can't be described by a single manifest. The emitter warns and

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should include some additional documentation on how to handle this scenario, with examples

@timotheeguerin Timothee Guerin (timotheeguerin) Aug 31, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we have any services like that? with actually multiple @service in the same spec?

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

Labels

meta:website TypeSpec.io updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants