debian-mirror-gitlab/lib/api/entities/nuget/dependency_group.rb

17 lines
728 B
Ruby
Raw Normal View History

2020-07-28 23:09:34 +05:30
# frozen_string_literal: true
module API
module Entities
module Nuget
class DependencyGroup < Grape::Entity
2023-03-04 22:38:38 +05:30
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' }
2020-07-28 23:09:34 +05:30
end
end
end
end