Autoform Example for Setting options or a schema based in dropdown


I’m looking for an example of how to set a schema based on a dropdown a selection

So if I should cars.

Id like to render a form that only has car properties. .
And if I select houses…