blob: 8d943050cd8dbe40ca2d1624177da6923e82b861 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# frozen_string_literal: true
module API
module Entities
module Nuget
class DependencyGroup < Grape::Entity
expose :id, as: :@id, documentation: { type: 'string', example: 'http://gitlab.com/Sandbox.App/1.0.0.json#dependencygroup' }
expose :type, as: :@type, documentation: { type: 'string', example: 'PackageDependencyGroup' }
expose :target_framework, as: :targetFramework, expose_nil: false,
documentation: { type: 'string', example: 'fwk test' }
expose :dependencies, using: ::API::Entities::Nuget::Dependency,
documentation: { is_array: true, type: 'API::Entities::Nuget::Dependency' }
end
end
end
end
|