Hi All, Happy new year!. I got this question about the error-info field in error response. What is the format we need to create this text?
I see https://tools.ietf.org/html/rfc6241#a...<https://tools.ietf.org/html/rfc6241#appendix-A> having xml kind of syntax, but not sure if that is what works for ODL too. Here is a sample error response for an RPC with xml format for error-info (I created string in this format). { "errors": { "error": [ { "error-type": "application", "error-tag": "data-missing", "error-message": "tp id given is not valid", "error-info": "<severity>error</severity>" } ] } } But when I add header "Accept: application/xml", the angular brackets are html encoded. Not sure if this is expected behavior. <errors xmlns="urn:ietf:params:xml:ns:yang:ietf-restconf"> <error> <error-type>application</error-type> <error-tag>data-missing</error-tag> <error-message>tp id given is not valid</error-message> <error-info><severity>error</severity></error-info> </error> </errors>
_______________________________________________ controller-dev mailing list controller-dev@lists.opendaylight.org https://lists.opendaylight.org/mailman/listinfo/controller-dev