ugol/jr

Incorrect valueTemplate names in shoestore example in jrconfig.json

Closed this issue · 0 comments

I'm trying out jr for the first time. I'm on a Mac, and have installed jr from Brew:

JR Version: 0.3.6
Built by brew
Build time: Thu Feb 15 16:34:03 UTC 2024

I'm trying out:

jr emitter run

it fails like this:

2024/05/28 16:08:56 JR configuration: /usr/local/etc/jr/jrconfig.json
2024/05/28 16:08:56 Template 'shoe' not found in /usr/local/etc/jr/templates
2024/05/28 16:08:56 Failed to unmarshal data: unexpected end of JSON input

The issue appears to be that the valueTemplate refs are stale in the file installed in Brew at /usr/local/etc/jr/jrconfig.json. I believe the source for this file is:

"valueTemplate": "shoe",