Skip to content

Option for case-insensitiveness? #69

Description

@Torniojaws

I'm not sure if I'm doing it wrong, but I have this question:

Say, I receive a patch to my API:

PATCH /news/123
[
    {"op": "replace", "path": "/title", "value": "Example"}
]

But the target DB column is News.Title. The patch will fail because title !== Title.

Does the package have something that allows case-insensitiveness. Or alternatively, where could I place a mapping function that defines for example:

def mapping(self, path):
    select = {
        "/title": "Title,
        "/authorname": "AuthorName"
    }
    return select.get(path, None)

I guess this question would be valid for any language.

Thanks!

Activity

  1. Torniojaws commented on Sep 8, 2017

    @Torniojaws
    Author

    Well, I implemented the mapping and it works so far.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions