Skip to content

Idempotency tests fail for NOTION.COM (multiple descriptions for same model class) #7927

Description

@WolfgangHG

Found as part of #7774: the idempotency tests fail occasionally, mostly for the recent NOTION.COM api.

One failing test is https://github.com/microsoft/kiota/actions/runs/28884299669/job/85681452557:
==>In this case, a difference in file "models\partial_user_object_response.py" occured:
First one:

@dataclass
class PartialUserObjectResponse(Parsable):
    """
    The user who created the data source.
    """

Second one:

@dataclass
class PartialUserObjectResponse(Parsable):
    """
    User who created the page.
    """

Interesting here: the "partialUserObjectResponse" is referenced from two properties, and they have differing descriptions:

      "pageObjectResponse": {
        "properties": {
          ...
          "created_by": {
            "$ref": "#/components/schemas/partialUserObjectResponse",
            "description": "User who created the page."
          },


      "dataSourceObjectResponse": {
        "type": "object",
        "properties": {
          ...
          "created_by": {
            "$ref": "#/components/schemas/partialUserObjectResponse",
            "description": "The user who created the data source."
          },

Note: in #7774, I added code to "compare-generation.ps1" to report the files containing a difference - it is easier to track down those problems with the modified script from the pull request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Needs Triage 🔍

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions