public function buildFields(JsonDefinition $jsonDefinition)
    {
        $fields = [];
        foreach ($jsonDefinition->getFields() as $field) {
            if ($field->getName() != 'id') {
                $fields[] = [
                    'fieldName' => $field->getName(),
                    'type' => $field->getTypeDoctrine()
                ];
            }
        }

        return $fields;
    }