Sha256: 36ea0b3c9408ce894b17364d5e708fd3026672f5c3d50aca5a061eee03122c97

Contents?: true

Size: 528 Bytes

Versions: 1

Compression:

Stored size: 528 Bytes

Contents

# frozen_string_literal: true

json.key_format! camelize: :lower
if meta.location
  json.meta do
    render meta, json: json
  end
end
json.schemas schemas.map(&:id)
json.id id if id
json.external_id external_id if external_id
schemas.each do |schema|
  if schema.core?
    schema.attributes.each do |type|
      render dynamic_attributes[type.name], json: json
    end
  else
    json.set! schema.id do
      schema.attributes.each do |type|
        render dynamic_attributes[type.name], json: json
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
scim-kit-0.2.9 lib/scim/kit/v2/templates/resource.json.jbuilder