mikekelly / hal-browser

An API browser for the hal+json media type
MIT License
835 stars 157 forks source link

Add support for multiple levels of embedded Resource Objects #74

Open kranjcec opened 8 years ago

kranjcec commented 8 years ago

HAL browser ignores second level _embedded properties in this example:

{  
   "abc":0,
   "_links":{  
      "self":{  
         "href":"/link/1"
      }
   },
   "_embedded":{  
      "level1":{  
         "def":1,
         "_links":{  
            "self":{  
               "href":"/link/2"
            }
         },
         "_embedded":{  
            "level2":{  
               "xyz":2,
               "_links":{  
                  "self":{  
                     "href":"/link/3"
                  }
               }
            }
         }
      }
   }
}
kranjcec commented 8 years ago

Is this JSON valid HAL? See https://twitter.com/_danmessenger/status/488979314508308480.

Is this request valid?

kranjcec commented 8 years ago

There is a PR #73 which will solve this issue.