Code Monkey home page Code Monkey logo

skin-config's Introduction

Skin Config

A series of JSON files that can be used to configure Ooyala's new cross-platform Skin UI.. These files define:

  1. skin.json: A configuration that is applied to the OoyalaSkinSDK, which outlines the desired look and feel of the user interface. You can modify this file to suit the needs of your application
  2. skin-schema.json: A JSON schema that defines all of the possible options for the skin.json
  3. [language].json: A series of files that represent the localization of all strings used in our Skin UI (i.e. en.json, zh.json)

See http://apidocs.ooyala.com/player_v4_skin_config/index.html for user-friendly skin-schema documentation.

Installing and Running the node Validator

You can use the JSON Schema to validate the correctness of your skin.json configuration. To validate your configuration against the JSON schema:

npm install
node ./validate.js <schema> <data>

To add the git hook in order to automatically verify the skin when committing, run

./add-githook-validate

You can use the following command to validate all json files in the folder against the schema

find . -type f -name "*skin.json" | xargs -I REPL node validate.js skin-schema.json REPL

Online validator

This on-line Java based version gives more-better debug information when the data fails to pass validation: http://json-schema-validator.herokuapp.com/

Schema notes

We support comments in our schema and skin files using // or /* */. These are technically not legal and will cause some validators to report invalid data. Our local vlidator strips out comments. If you need to strip them out e.g. so you can send the file over to the on-line Java validator mentioned above, then you have to "npm install -g strip-json-comments" and use it on the command line. On Mac OS X you can pipe the results to pbcopy and then paste the results into the on-line validator.

skin-config's People

Contributors

ksunika avatar lental avatar matthew-c avatar jonslenkooyala avatar rchalooyala avatar mistermendez avatar yvinokurov avatar tchangg avatar kseniiasokolovaepam avatar paulcern avatar aeng7 avatar jpfranco81 avatar ivansakharovskii avatar pilievooyala avatar pcaseooyala avatar brol1dev avatar dkaoster avatar jgkelle26 avatar chibzu avatar shruthi17 avatar dallen42 avatar soapyigu avatar akshaydch11 avatar brianfwong avatar mityaha avatar jpfranco avatar markepam avatar stephanieblotner avatar dchauooyala avatar fisher-woon avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.