Skip to content

Get rid of hard-coded JSON fields #1

@bv

Description

@bv

In the code like follows

post_identifier  = post['id']
post_user_identifier = post['userId']

the 'id' string is hard-coded
for maintainability it is better to use structures with dot-notation:

post_identifier  = post[Post.fields.id]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions