Skip to content

Add @docs_group decorator to generated models #642

Closed

Description

@vdusek

Context

In PR #638, we added @docs_group decorators to all public classes for improved API reference documentation grouping. However, src/apify_client/_models.py is a generated file, so the decorators were reverted.

Task

Add @docs_group('Models') decorators to all model classes in _models.py. Since this file is generated, this needs to be done via post-processing (e.g. a script that adds the decorators after code generation) rather than editing the file directly.

This includes:

  • Adding the from apify_client._docs import docs_group import
  • Adding @docs_group('Models') to all model classes (BaseModel subclasses, StrEnum subclasses, etc.)
  • Integrating the post-processing step into the code generation pipeline

Activity

  1. added
    t-toolingIssues with this label are in the ownership of the tooling team.
    on Feb 24, 2026
  2. self-assigned this
    on Feb 24, 2026
  3. added this to the 3.0 milestone on Feb 24, 2026
  4. added a commit that references this issue on Apr 9, 2026
    8f140ef
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

t-toolingIssues with this label are in the ownership of the tooling team.

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions