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
Oleg Nenashev
09/27/2023, 5:25 PM
Hi. Which IDE do you use? Do you use any WireMock static validators against the JSON
m
Masi
09/27/2023, 5:26 PM
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
Oleg Nenashev
09/27/2023, 5:39 PM
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
Masi
09/27/2023, 5:40 PM
Yes.
Will open a ticket as you suggest.
Thank you.
o
Oleg Nenashev
09/27/2023, 5:40 PM
Thank you too! We have a Hacktoberfest coming up, so I guess it would be implemented by someone quickly as a good first issue