Wiremock accepts JSON5 as input files for mappings...
# help
m
Wiremock accepts JSON5 as input files for mappings which I highly appreciate. Is there a way to allow .json5 as file extensions? When I use .json Wiremock is happy, but my IDEs start to show me all in red when I use JSON5 features.
o
Hi. Which IDE do you use? Do you use any WireMock static validators against the JSON
m
PhpStorm
I didn't validate statically as WireMock works as expected.
Only PhpStorm treats the files as JSON because of the file extension instead of the real JSON5 contents.
Not a show stopper, but a bit of a nuisance.
o
So basically you need WireMock to recognize files with the *.json5 extension when loading from the disc, right? No API or other changes? I think it would be quite straightforward, and I would appreciate it if you could create a ticket on GitHub issues against the WireMock core
m
Yes. Will open a ticket as you suggest. Thank you.
o
Thank you too! We have a Hacktoberfest coming up, so I guess it would be implemented by someone quickly as a good first issue