WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Cache model based on schema title is flawed #10847

@chidam333

Description

@chidam333

Describe the bug

I had a user model as a schema inside my reqbody but i need to extend the schema so i extended it using runtime creating model methods. For my surprise it was not having any effect. Only then did i figure out that you guys are caching models based on schema title. This is not intuitive. I am happy to hear what was the logic behind it ?

Logs

Additional information

No response

Reproduction

https://codesandbox.io/p/sandbox/github/loopbackio/starter/tree/codesandbox

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions