docs: def validation_schema(name):
      """Return json schema for json validation."""
      schemas = {
          'processor': 'processSchema.json',
          'descriptor': 'descriptorSchema.json',
          'field': 'fieldSchema.json',
          'type': 'typeSchema.json',
      }
  
      if name not in schemas:
          raise ValueError()
  
      field_schema_file = finders.find('flow/{}'.format(schemas['field']), all=True)[0]
      with open(field_schema_file, 'r') as fn:
          field_schema = fn.read()
  
      if name == 'field':
          return json.loads(field_schema.replace('{{PARENT}}', ''))
  
      schema_file = finders.find('flow/{}'.format(schemas[name]), all=True)[0]
      with open(schema_file, 'r') as fn:
          schema = fn.read()
  
      return json.loads(schema.replace('{{FIELD}}', field_schema).replace('{{PARENT}}', '/field'))