---
Add 'rename' property to field types. This causes the field to be renamed when within an Object signature. For example, the following signature expects to get {'foo': '...'} out of GET and LIST requests and to take in {'foo': '...'} on PUT and POST
SIGNATURE = sepiida.fields.Object(s={
'foo' : sepiida.fields.String(),
})
but we can change that to expecting {'bar': '...'} out of GET and LIST and taking in {'bar': '...'} from POST and PUT without changing the signature as it is viewed from the outside world
SIGNATURE = sepiida.fields.Object(s={
'foo' : sepiida.fields.String(rename='bar'),
})
This can be very useful for creating complex field types which I'll do more of in future releases