Skip to content

Hard-coded convention #787

Closed
Closed
@mkoppanen

Description

@mkoppanen

Description

The API has hardcoded convention at places and it would be nice to change this by simply providing a ConventionProvider or similar. An example is:

https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/master/src/JsonApiDotNetCore/Serialization/Server/Builders/MetaBuilder.cs#L46

Where "total-records" is hardcoded. One could provide different implementation of IMetaBuilder but it seems like an overkill when doing such simple changes.

...

Environment

  • JsonApiDotNetCore Version: all
  • Other Relevant Package Versions: none

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