Skip to content

This repository contains and serves JSON schemas that validate abstracted data of 3D content for compatibility with Ready Player Me integrations.

Notifications You must be signed in to change notification settings

readyplayerme/content-validation-schemas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Content Validation Schemas

This repository contains and serves JSON schemas that validate abstracted data of 3D content for compatibility with Ready Player Me integrations.

Serving Schemas

The schemas are served using the gh-pages feature. THIS MAY QUITE PROBABLY CHANGE IN THE FUTURE.

By serving the schemas publicly, they can be utilized as a single source of truth across different validation tools for compatibility of content with Ready Player Me integrations.

The advantage of this compared to reading it directly from the raw content URLs:
Caching: When using the raw content URL to access a JSON schema file, the file is served directly from GitHub's servers each time it is requested. This can result in slower performance and increased bandwidth usage, especially if your schema files are large or heavily accessed. In contrast, when using the "gh-pages" approach, the schema files can be cached by users' web browsers or by caching servers, resulting in faster performance and lower bandwidth usage over time.

Access controls: When serving JSON schemas using the raw content URL, they are publicly accessible to anyone who has the URL. In contrast, when using the "gh-pages" approach, access controls can be implemented using GitHub Pages settings or custom code to restrict who can access the schema files.

URL structure: The raw content URL for a JSON schema file can be quite long and difficult to remember or share, especially if there are many schema files in the repository. In contrast, when using the "gh-pages" approach, a custom URL structure can be created that is easier to remember and share with others.

JSON Instances

The JSON instances that are to be tested against the schemas are generated using a custom solution to gather and abstract data from the 3D files.

Validation

The JSON schemas are primarily meant to be used with the ajv validator, since they use custom errors supported by the package.

About

This repository contains and serves JSON schemas that validate abstracted data of 3D content for compatibility with Ready Player Me integrations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published