Is the schema correct for the KalturaPartner class?

2 replies [Last post]
Joined: 08/21/2009
Points: 23

I'm porting the dot net generator and related classes to Java. Everything's looking pretty good so far but I have a problem with the KalturaPartner type I'm generating. According to (http://www.kaltura.com/api_v3/api_schema.php) the schema looks like this:

<class name="KalturaPartner">
<property name="id" type="int" readOnly="1" insertOnly="0" description=""/>
...SNIP...
<property name="commercialUse" type="KalturaCommercialUseType" readOnly="0" insertOnly="0" description=""/>
...SNIP...
</class>

It looks like the commercialUse is trying to point to an enum but KalturaCommercialUseType is listed as a class, not an enum:

<class name="KalturaCommercialUseType"/>

And if it were an enum, the property should look like this:

<property name="commercialUse" type="int" enumType="KalturaCommercialUseType" readOnly="0" insertOnly="0" description=""/>

Does anyone know what's up?

Jeff

PS. The reason for the port is I'm working on an integration with Alfresco. I've got a very basic integration working with the old API. Please let me know in a separate thread or via email if you have any interest (requirements or dev help) in this integration.

Joined: 04/05/2009
Points: 354

Not sure if this helps, but the PHP library defines it as a class:

class KalturaCommercialUseType
{
        const COMMERCIAL_USE = "commercial_use";
        const NON_COMMERCIAL_USE = "non-commercial_use";
}
Joined: 08/21/2009
Points: 23

In API v3, which is what I'm working with, I see no classes that only contain constants. They've all been converted to enums. So I think this is definitely a problem with the schema. The KalturaCommercialUseType isn't referenced anywhere by any of the other types or services, so it isn't being used which is maybe why it is hanging around and hasn't been cleaned up.

I'm going to ignore it and hope it goes away. :)

Jeff