I have a project which is validating both JSON and YAML documents so I included justify, joy-classic and joy-yaml as dependencies.
I can successfully validate my JSON documents but validating the YAML document fails right away:
[line=1,column=1,offset=0] Unexpected char 'd' was found.
The document starts with:
developers:
- foo
I copied the code from here which is identical to the JSON validation code.
How does Justify determine to use JSON or YAML as I have the feeling it's not treating my YAML document as YAML.
Is it maybe because I have both joy-classic and joy-yaml on the classpath?
I have a project which is validating both JSON and YAML documents so I included
justify
,joy-classic
andjoy-yaml
as dependencies.I can successfully validate my JSON documents but validating the YAML document fails right away:
[line=1,column=1,offset=0] Unexpected char 'd' was found.
The document starts with:
I copied the code from here which is identical to the JSON validation code. How does Justify determine to use JSON or YAML as I have the feeling it's not treating my YAML document as YAML.
Is it maybe because I have both
joy-classic
andjoy-yaml
on the classpath?