Sha256: ae8e7786dd297bae031b69be596a85e6a4a49409405058d220d213be76950ff7

Contents?: true

Size: 923 Bytes

Versions: 28

Compression:

Stored size: 923 Bytes

Contents

# frozen_string_literal: true

module Ghub
  module Responses
    # Defines a user.
    User = Dry::Schema.Params do
      required(:avatar_url).filled(:string)
      required(:events_url).filled(:string)
      required(:followers_url).filled(:string)
      required(:following_url).filled(:string)
      required(:gists_url).filled(:string)
      required(:gravatar_id).maybe(:string)
      required(:html_url).filled(:string)
      required(:id).filled(:integer)
      required(:login).filled(:string)
      required(:node_id).filled(:string)
      required(:organizations_url).filled(:string)
      required(:received_events_url).filled(:string)
      required(:repos_url).filled(:string)
      required(:site_admin).filled(:bool)
      required(:starred_url).filled(:string)
      required(:subscriptions_url).filled(:string)
      required(:type).filled(:string)
      required(:url).filled(:string)
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
ghub-0.23.0 lib/ghub/responses/user.rb
ghub-0.22.0 lib/ghub/responses/user.rb
ghub-0.21.0 lib/ghub/responses/user.rb
ghub-0.20.0 lib/ghub/responses/user.rb
ghub-0.19.0 lib/ghub/responses/user.rb
ghub-0.18.0 lib/ghub/responses/user.rb
ghub-0.17.0 lib/ghub/responses/user.rb
ghub-0.16.0 lib/ghub/responses/user.rb
ghub-0.15.0 lib/ghub/responses/user.rb
ghub-0.14.0 lib/ghub/responses/user.rb
ghub-0.12.0 lib/ghub/responses/user.rb
ghub-0.11.0 lib/ghub/responses/user.rb
ghub-0.10.0 lib/ghub/responses/user.rb
ghub-0.9.0 lib/ghub/responses/user.rb
ghub-0.8.1 lib/ghub/responses/user.rb
ghub-0.8.0 lib/ghub/responses/user.rb
ghub-0.7.0 lib/ghub/responses/user.rb
ghub-0.6.0 lib/ghub/responses/user.rb
ghub-0.5.1 lib/ghub/responses/user.rb
ghub-0.5.0 lib/ghub/responses/user.rb