loopback-connector-rest icon indicating copy to clipboard operation
loopback-connector-rest copied to clipboard

Allow hyphen seperated template variables

Open YoannMourot opened this issue 4 years ago • 1 comments

Allowing template variables like ^foo-bar=barbar:string. This was causing an error Cannot initialize connector "rest": Cannot read property 'type' of undefined' at boot. https://regex101.com/r/HoCufm/1

Checklist

  • [ ] DCO (Developer Certificate of Origin) signed in all commits
  • [x] npm test passes on your machine
  • [ ] New tests added or existing tests modified to cover all changes
  • [ ] Code conforms with the style guide
  • [ ] Commit messages are following our guidelines

YoannMourot avatar Nov 05 '21 16:11 YoannMourot

@raymondfeng, do we intend to support - in the template variables?

dhmlau avatar Nov 06 '21 01:11 dhmlau