Skip to content

Commit

Permalink
fix: Capabilities for property setters to be manages instead of uses (#…
Browse files Browse the repository at this point in the history
…77)

(cherry picked from commit a2fa157)
  • Loading branch information
kpears201 authored and cletustboone committed Nov 30, 2022
1 parent 4c688c7 commit 04ae37d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion util/shared/modules.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,14 @@ const createSetterFromProperty = property => {
old_tags.forEach(t => {
if (t.name !== 'property' && !t.name.startsWith('property:'))
{
setter.tags.push(t)
if (t.name === 'capabilities') {
setter.tags.push({
name: 'capabilities',
'x-manages': t['x-uses']
})
} else {
setter.tags.push(t)
}
}
})

Expand Down

0 comments on commit 04ae37d

Please sign in to comment.