Git Product home page Git Product logo

xapi-validator-js's People

Contributors

dnjohnson avatar zackpierce avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

xapi-validator-js's Issues

Expose statement-component validation functions

As raised in #2 , there may be utility in exposing validation capabilities for xAPI statment component objects (e.g. verbs, actors, etc) independent of an entire statement.

My present thinking is a two-parameter function returning a report object.

  • target param that's either a JSON-string or an object

  • optional version param that is a Semantic Version 1.0 compliant string, or an object formulated like

    {
     major:1, 
     minor:0, 
     patch:0, 
     preRelease:null
    }

    Defaulting to "1.0.0"

  • returns a report object that includes:

    • validated version string
    • input target param post-deserialization as instance
    • errors array. The trace property value conventions in errors may also merit revisiting to remove prefix-cruft.

Possible targets:

  • Verb
  • Actor
  • Agent
  • Group
  • Context
  • Object
  • Activity
  • Result

ADL Fork

Hello,

A few of us at ADL were hoping to fork your validator to use with one of our other projects and we were just curious if there are any other outstanding issues that haven't been addressed with it yet? Or any other problems we should be aware of? This is a great project that will be very beneficial to everyone after we update it to validate the current version of xAPI.

Thank you!

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.