Skip to content

Conversation

@devin-ai-integration
Copy link
Contributor

Clarify generators.yml dual purpose: API declaration and code generation

Summary

Addresses user feedback that documentation made it seem like generators.yml is only used for SDK generation, when in fact it also declares which APIs your project contains and those APIs can be rendered in documentation via docs.yml.

Changes made:

  • Updated OpenAPI and gRPC generators.yml reference pages to mention "SDKs and documentation" instead of just "SDKs"
  • Added consistent Note callouts on reference pages explaining the dual purpose of generators.yml
  • Updated the shared snippet generators-yml-project-structure.mdx to clarify both roles
  • Added a Note on the docs product's "Generate your API Reference" page explaining that APIs must be declared in generators.yml first
  • Updated inline comment in API definitions project-structure page for consistency
  • Fixed Vale style issues (capitalized "API Reference", used contractions per style guide)

Review & Testing Checklist for Human

  • Verify cross-links work correctly: Check that the links between API definition pages and docs product pages work in the preview (especially the bidirectional links between generators.yml reference pages and the "Generate your API Reference" page)
  • Review Note callout clarity: Confirm the new Note callouts clearly explain generators.yml's dual purpose without being confusing or overly verbose
  • Check snippet in context: Verify that the updated generators-yml-project-structure.mdx snippet reads well when included in the API definitions project-structure page (line 35)
  • Verify consistency: Confirm the messaging is consistent across all updated pages and doesn't contradict existing documentation

Notes

  • This PR updates 5 files with small clarifying changes as requested
  • Vale style checks pass (0 errors, 0 warnings)
  • Did not update AsyncAPI/OpenRPC overview pages as they don't have dedicated generators-reference pages, but they could be updated in a follow-up if needed
  • All changes follow existing link patterns and documentation conventions in the repo

Session: https://app.devin.ai/sessions/90f2c2014224469ab6c9166fc254b21e
Requested by: Devin Logan ([email protected]) / @devalog

- Update OpenAPI and gRPC generators.yml reference pages to mention both SDKs and documentation
- Add clarifying notes explaining generators.yml serves two roles: declaring APIs and configuring code generation
- Update generators-yml-project-structure.mdx snippet to clarify dual purpose
- Add note to docs product generate-api-ref.mdx explaining APIs must be declared in generators.yml
- Update API definitions project-structure.mdx comment for consistency
- Fix Vale style issues (capitalize API Reference, use contractions)

Addresses user feedback that generators.yml appeared to be only for SDK generation,
when it also declares APIs that can be rendered in documentation via docs.yml.

Co-Authored-By: Devin Logan <[email protected]>
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@github-actions
Copy link
Contributor

@devalog devalog marked this pull request as draft November 10, 2025 23:55
</Tab>
<Tab title="OpenAPI (API Reference + SDKs)">
To generate SDKs in addition to API Reference docs, add a `groups` section below your `api.specs`:
Copy link
Contributor

Choose a reason for hiding this comment

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

📝 [vale] reported by reviewdog 🐶
[Microsoft.Wordiness] Consider using 'also' instead of 'in addition'.

@github-actions
Copy link
Contributor

@github-actions
Copy link
Contributor

</Tab>
<Tab title="Fern Definition">
For Fern Definition, the `api` section is not needed. Fern auto-detects your API from the `definition/` directory.
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 [vale] reported by reviewdog 🐶
[Microsoft.Contractions] Use 'isn't' instead of 'is not'.

@devalog devalog marked this pull request as ready for review November 12, 2025 15:03
@github-actions
Copy link
Contributor

@github-actions
Copy link
Contributor

@devalog devalog merged commit acdb6ae into main Nov 12, 2025
2 checks passed
@devalog devalog deleted the devin/1762816502-clarify-generators-yml-dual-purpose branch November 12, 2025 15:14
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