[x3d-public] These files failed my modifications of Roy's X3D JSON schema

John Carlson yottzumm at gmail.com
Thu Apr 1 15:00:04 PDT 2021


  file: 
/c/x3d-code/www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter15Metadata/MetadataNodeExamples.json

The Ajv against Roy's schema generates the log:


0 Ajv 6.0 Validation failed on 
/c/x3d-code/www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter15Metadata/MetadataNodeExamples.json
^M
  keyword: required^M
  dataPath: X3D > Scene > -children > 3 > WorldInfo > -metadata > 
MetadataSet > -metadata > MetadataSet > -value > 0 > MetadataString^M
  value: {"@USE":"MyMetadataStringNode"}^M
  message: should have required property '@name'^M
  params: {"missingProperty":"@name"}^M
  file: 
/c/x3d-code/www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter15Metadata/MetadataNodeExamples.json^M
  version: 6.0^M


Roy's schema has @name as required.  I don't know if this is true if 
@USE is specified in a MetadataString in JSON file.

Please clarify. Is @name always required for MetadataString?  Or is it 
optional with @USE specified?  Roy's file may need to be changed to 
allow optional @name.  X3DUOM does not require @name in MetadataString 
ConcreteNode.

I can take action on changing Roy's schema if granted permission.  I 
will change my local copy for now.

Another problem with the data file is @USE is specified before @DEF.   
Possibly an issue with X3dToJson.xslt? No, this is also present in X3D 
XML file.   Please fix example file.  Thanks!

I believe that this also has been discussed, so I will look in Mantis.

Here is the Mantis issue:

https://www.web3d.org/member-only/mantis/view.php?id=1220

No action has been indicated.

(Note that these Mantis issues appear in the JSON project, not the X3D 
project).

John




More information about the x3d-public mailing list