187.4. 예제
다음과 같은 JSON 스키마가 있다고 가정합니다.
myschema.json
다음 Camel 경로를 사용하여 들어오는 JSON을 검증할 수 있습니다. 여기서 myschema.json
이 classpath에서 로드됩니다.
from("direct:start") .to("json-validator:myschema.json") .to("mock:end")
from("direct:start")
.to("json-validator:myschema.json")
.to("mock:end")