moved here from cebe#4
The generated code does not respect the "readOnly" property.
This is because of the generated model rules. and the requestbody is loaded against the DatabaseModel.
It could be a good idea to create a validator for each endpoint to be able to mix the same property on different endpoints.