Fix type references

The PR fixes JSON schema type references as now the root property is `definitions`.