Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Strict Mode logs invalid warning

$
0
0
Hi Isomorphic,

I have a DataSource (script.ds.xml) defined with ID="script".

I am seeing the following warning logged:

Code:

2015-07-23-16:28:16:486 -0400  WARN [http-nio-8180-exec-2] attribute 'type' is not declared in Component Schema '{script.ds.xml}' and strict mode is enabled.  See 'Strict Mode' overview in the documentation for details.Object.fields.script /Object[@ID=Method]/fields/script
2015-07-23-16:28:16:489 -0400  WARN [http-nio-8180-exec-2] Validation errors validating a 'Object':
{
    "/Object[@ID=Method]/fields/script":{
        recordPath:"/Object[@ID=Method]/fields/script",
        scriptName:{
            errorMessage:"Field is required"
        }
    }
}

Here is the field tag for scriptName:

Code:

<field name="scriptName" type="text" length="100" required="true"></field>
I'm not sure why Strict Mode is using Component Schema 'script.ds.xml' instead of 'DataSourceField.ds.xml' in this case. The warning goes away if I use a different DataSource ID.

I'm using SmartClient Version: SNAPSHOT_v10.1d_2015-07-23/Pro Deployment (built 2015-07-23).

Thanks.

Viewing all articles
Browse latest Browse all 4756

Trending Articles