<config-description> inside <channel-type>

Hi all

I am rewriting modbus binding, have the following (rather ugly) xml file

    <?xml version="1.0" encoding="UTF-8"?>
<thing:thing-descriptions bindingId="modbus"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:thing="http://eclipse.org/smarthome/schemas/thing-description/v1.0.0"
        xsi:schemaLocation="http://eclipse.org/smarthome/schemas/thing-description/v1.0.0 http://eclipse.org/smarthome/schemas/thing-description-1.0.0.xsd">
    <thing-type id="slave">
            <supported-bridge-type-refs>
            <bridge-type-ref id="tcp" />
        </supported-bridge-type-refs>
    
        <label>Modbus Tcp Slave Thing</label>
        <description>Tcp connected Modbus slave</description>
        <channels>
            <channel id="switch" typeId="switch-type" />
            <channel id="contact" typeId="contact-type" />
        </channels>
        <config-description>
            <parameter name="slave-param" type="integer">
            <label>slave-param</label>
            <description>slave-param</description>
            </parameter>
        </config-description>

    </thing-type>
    <channel-type id="switch-type">
        <item-type>Switch</item-type>
        <label>Modbus Switch</label>
        <description>switch item channel for Modbus Binding</description>
        <config-description>
            <parameter name="switch-param" type="integer">
            <label>switch-param</label>
            <description>switch-param</description>
            </parameter>
        </config-description>
    </channel-type>
    <channel-type id="contact-type">
        <item-type>Contact</item-type>
        <label>Modbus Contact</label>
        <description>contact item channel for Modbus Binding</description>
    </channel-type>

</thing:thing-descriptions>

When adding the slave thing to the paper UI I cannot see “switch-param” parameter input field. Is there something wrong with my xml?

Thanks in advance

The Paper UI currently does not support config parameters on channels, only on things.
Feel free to ask for adding this at https://github.com/openhab/smarthome.paperui/issues.

I have over 200 channels of modbus, so I am interested, what’s the rewrite about?