-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Media] XML sync with spec #33524
base: master
Are you sure you want to change the base?
[Media] XML sync with spec #33524
Conversation
[Media] ZAP template XML sync with spec
@@ -23,6 +23,7 @@ limitations under the License. | |||
<define>APPLICATION_BASIC_CLUSTER</define> | |||
<client init="false" tick="false">true</client> | |||
<server init="false" tick="false">true</server> | |||
<globalAttribute code="0xFFFD" side="either" value="1"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the purpose of this global attribute?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's the cluster revision.
<arg id="1" name="EndTime" type="epoch_s"/> | ||
<arg id="2" name="ChannelList" type="ChannelInfoStruct" array="true" optional="true" length="255"/> | ||
<arg id="3" name="PageToken" type="PageTokenStruct" optional="true" isNullable="true"/> | ||
<arg id="5" name="RecordingFlag" type="RecordingFlagBitmap" optional="true" isNullable="true" min="0x00" max="0x07"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is min, max, isNullable supported?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IsNullable is definitely supported. I don't think the min/max does anything, but isn't hurting.
@@ -45,14 +45,15 @@ limitations under the License. | |||
<arg name="Node" type="node_id" optional="true"/> | |||
</command> | |||
|
|||
<command source="server" code="0x01" name="GetSetupPINResponse" optional="false" disableDefaultResponse="true"> | |||
<command source="server" code="0x01" name="GetSetupPINResponse" optional="false" disableDefaultResponse="true" isFabricScoped="true"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isFabricScoped supproted now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many other clusters are using it.
<item name="DisplayName" type="CHAR_STRING" isNullable="true" optional="true"/> | ||
<item fieldId="0" name="LanguageCode" type="char_string" length="32"/> | ||
<item fieldId="1" name="Characteristics" type="CharacteristicEnum" isNullable="true" optional="true" array="true"/> | ||
<item fieldId="2" name="DisplayName" type="long_char_string" isNullable="true" optional="true" length="256"/> | ||
<!-- <item name="Characteristics" type="CharacteristicEnum" optional="true" array="true"/> --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be removed now? I think it wasn't able to compile before
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it's not compiling and you don't want it, we should remove it from the spec.
This PR fixes many areas in which the media cluster ZAP template XML files are out of sync with the spec; it fixes many of the problems in #32669 but ignores min/max errors, as they are not enforced anyway.
These are the changes in commit debbc2e (especially concerning errors in bold):
Account Login:
Channel:
Content App Observer:
Content Control:
Content Launch:
Application Basic, Application Launcher, Content App Observer, Keypad Input, Low Power, and Media Input were all missing the revision number attribute, and Content Launch had the wrong revision number.
For some of these errors, it might be worth considering changing the spec instead; e.g. there are many string attributes and fields with a max length of 256, which requires them to be long_char_strings in the spec; were their max lengths 255, they could remain char_strings.