Override a schema provided by a behavior

Some remarks:

  • breaking a behavior with a compound of multiple fields into a different behavior with less fields (e.g. when you want to get rid of a field) is not easy.. I tend to create a a new behavior (with code duplication)

  • it is possible to monkey patch the definition of a field e.g. I injected a validator for the description field using

    IBasic['description'].__dict__['constraint'] = my_validator_function