~emersion/drmdb

0c49b7b2c70e03dc6d365da230d34ba745248471 — Simon Ser 6 months ago 9e10006
Check property types consistency
1 files changed, 5 insertions(+), 0 deletions(-)

M server.go
M server.go => server.go +5 -0
@@ 320,6 320,11 @@ func New() *echo.Echo {
				if obj.Type() != objectType || name != propertyName {
					return nil
				}

				if found && property.Type != p.Type {
					return fmt.Errorf("inconsistent property types: %v and %v", property.Type, p.Type)
				}

				drivers[n.Driver.Name] = true
				property = *p
				found = true