Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
documentation
examples
queries
src/main
.gitignore
README.md
package-lock.json
package.json
pom.xml

README.md

AMF Validation Example

This repository includes examples to test AMF "validation" feature.

Install

Node JS:

$ npm install

Java:

$ mvn install

Run the examples

Node JS:

$ node src/main/js/DataExample.js
(...)

Java:

$ java -cp ./target/amf-validation-example-1.0-SNAPSHOT-jar-with-dependencies.jar com.mulesoft.amf.examples.ValidationExample
(...)
  • Validation Example (JavaScript/Java): Shows how validation and custom validation can be executed programmatically
  • Data Example (JavaScript/Java): Shows how AMF can be used to create a data model graph with the information from the API and the validation profile

The examples folder contains a sample RAML API as well as a sample custom Validation Profile that can be used to test the library and as a starting point to test more complex validations. Also, sample (SPARQL) queries over the data model graph can be found in the queries directory.

Documentation

  • a short introduction to AMF
  • the validation mechanism: how to use it from both the command line and programmatically, as well as how to create custom validations
You can’t perform that action at this time.