halidator icon indicating copy to clipboard operation
halidator copied to clipboard

Does not check for valid _embedded type

Open hjr3 opened this issue 12 years ago • 3 comments

Per http://tools.ietf.org/html/draft-kelly-json-hal-05:

"values are either a Resource Object or an array of Resource Objects."

The following just snuck through validation:

"_embedded": {
    "hd:foo": "some random string"
}

hjr3 avatar Aug 05 '13 15:08 hjr3

Thanks for the report!

Will get a fix out shortly.

deathbob avatar Aug 06 '13 19:08 deathbob

hey @hjr3 finally fixed this, can you see if the latest version of halidator https://rubygems.org/gems/halidator 0.5.1 meets your expectations?

Sorry for the delay :)

deathbob avatar Nov 18 '13 19:11 deathbob

I will definitely check it out. Thanks!

hjr3 avatar Nov 18 '13 20:11 hjr3