-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CLI] Adding nested configurations to model settings #2522
Comments
Hi @yanamg7, thank you 👍 for pointing it out and suggesting the solution. Would you like to contribute to the proposed solution?. I believe that aside from changing the suggested line, we will need an acceptance test to make sure it solves the issue. |
Hi Mario,
Yes, I’d like with my pleasure. I also put my request to be added as LoopBack.next contributor in #110 but still waiting.
From: Mario Estrada <[email protected]>
Sent: Monday, March 4, 2019 2:07 AM
To: strongloop/loopback-next <[email protected]>
Cc: Yana Agapeyev <[email protected]>; Mention <[email protected]>
Subject: Re: [strongloop/loopback-next] [CLI] Adding nested configurations to model settings (#2522)
EXTERNAL MAIL: [email protected]<mailto:[email protected]>
Hi @yanamg7<https://github.com/yanamg7>, thank you 👍 for pointing it out and suggesting the solution. Would you like to contribute to the proposed solution?. I believe that aside from changing the suggested line, we will need an acceptance test to make sure it solves the issue.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#2522 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AsaJBTaSmJUWMQ21d2FmtEMDNY6pmQx0ks5vTGO-gaJpZM4ba7ZS>.
|
@yanamg7, thanks for your interest in contributing. We'll catch up on the issue #110. :) This is mostly to add you to be in the We've just created a step-by-step guide in contributing to LB4. Please take a look as well: https://loopback.io/doc/en/lb4/submitting_a_pr.html. Looking forward to your PR! |
…template prepare the string of all model settings and use it in the template, fix one test and add the new one to test this case fix loopbackio#2522
…template prepare the string of all model settings and use it in the template, fix one test and add the new fix loopbackio#2522
Should be fixed via #2843. |
Description / Steps to reproduce / Feature proposal
We need to add some configuration to the model settings like
Current Behavior
In configuration.JSON I put:
The CLI generated model has a string instead of JSON:
Expected Behavior
The generated output should be
I think in @loopback\cli\generators\model\templates\model.ts.ejs
instead of
JSON.stringify(modelSettings)
should beJSON.stringify(modelSettings).replace(/\"([^(\")"]+)\":/g,"$1:")
The text was updated successfully, but these errors were encountered: