Add docs for `required` option on model generator.

Related to this PR #16062

[ci skip]