Skip to content
This repository was archived by the owner on Jul 9, 2026. It is now read-only.
This repository was archived by the owner on Jul 9, 2026. It is now read-only.

@Representer(null) should not try to serialize data #12

Description

@driescroons

Take following controller function:
image

It generates a Maximum call stack size exceeded:
image

This is because even though we set our representer to null, the handler returns a token entity (I like to return the token for testing purposes), we still call classToPlain in the representer middleware. We should do a null check on the representationType, and if it's null, return null as well.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions