Skip to content

Encoder needs to support nullable return types for relationship self/related links #111

Closed
@lindyhopchris

Description

@lindyhopchris

The underlying neomerx encoder doesn't at the moment support nullable return types for the relationship self/related links. This results in errors (reported on multiple issues) when encoding a relationship response if the developer has disabled relationship links on their resource's relationship.

This really is a bug in the encoder: the spec doesn't say the relationship must have links, so the encoder should support nullable return types.

As we're now using a fork of the neomerx encoder, we should be able to fix this bug on our fork. It's looking like neomerx has disappeared - but if they ever return, we can submit a PR on the upstream repo to fix it there too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions