A remarkable feature of this nonlinear equation is that its general solution has a very simple form.
This is an example of a Clairaut equation. The warning message from Solve can be ignored. It is given because DSolve first tries to find an expression for y[x] from the given ODE.