2020-04-22 19:07:51 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module API
|
|
|
|
module Entities
|
|
|
|
class ProjectImportFailedRelation < Grape::Entity
|
2023-01-13 00:05:48 +05:30
|
|
|
expose :id, documentation: { type: 'string', example: 1 }
|
|
|
|
expose :created_at, documentation: { type: 'dateTime', example: '2012-05-28T04:42:42-07:00' }
|
|
|
|
expose :exception_class, documentation: { type: 'string', example: 'StandardError' }
|
|
|
|
expose :source, documentation: { type: 'string', example: 'ImportRepositoryWorker' }
|
2021-04-29 21:17:54 +05:30
|
|
|
|
2023-01-13 00:05:48 +05:30
|
|
|
expose :exception_message, documentation: { type: 'string' } do |_|
|
2021-04-29 21:17:54 +05:30
|
|
|
nil
|
|
|
|
end
|
2020-04-22 19:07:51 +05:30
|
|
|
|
2023-01-13 00:05:48 +05:30
|
|
|
expose :relation_key, as: :relation_name, documentation: { type: 'string', example: 'issues' }
|
|
|
|
expose :relation_index, as: :line_number, documentation: { type: 'integer', example: 1 }
|
2020-04-22 19:07:51 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|