deathbob / halidator

Small library for validating hal+json
18 stars 3 forks source link

Does not check for valid _embedded type #1

Open hjr3 opened 11 years ago

hjr3 commented 11 years ago

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"
}
deathbob commented 11 years ago

Thanks for the report!

Will get a fix out shortly.

deathbob commented 10 years ago

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 :)

hjr3 commented 10 years ago

I will definitely check it out. Thanks!