Fix infinite loop error in resolveRef().
Fix infinite loop error in resolveRef().

Signed-off-by: Peng Jingwen <a6a6de77f0e9a12d58e822b07b7a99e1ec290756@icloud.com>

go-openapi/spec,kubernetes/kube-openapi