You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Very old question, but I discovered the answer to this myself today by looking through the source code and thought I'd share. To remove the 'optional' annotation which is automatically added to resource fields, you need to specify a required property in your class definition, which should contain a list of field names.
For example, to make the "username" field mandatory, you'd do the following:
I have the following model:
In the generated spec, the model will have both the resource fields as optional. How do I make them mandatory?
The text was updated successfully, but these errors were encountered: