Commit c2692e2

mo khan <mo@mokhan.ca>
2022-12-09 17:35:39
fix: search for fully qualified attribute name
1 parent 78a9afe
Changed files (1)
lib
scim
kit
lib/scim/kit/v2/templates/resource.json.jbuilder
@@ -18,7 +18,8 @@ schemas.each do |schema|
   else
     json.set! schema.id do
       schema.attributes.each do |type|
-        attribute = dynamic_attributes[type.name]
+        attribute = dynamic_attributes["#{type.schema.id}##{type.name}"] ||
+          dynamic_attributes[type.name]
         render attribute, json: json
       end
     end