Skip to content

Admin help

Maximilian Haack edited this page Apr 28, 2017 · 4 revisions

While the JSON Schemas are still in development we need to update them upon every change.

  1. To update the JSON Schemas in the database run the bin/update_json_schemas helper script:
    bin/update_json_schemas /Users/max/.ssh/id_rsa config/authorized_keys/ce_registry/max.pem http://lr-staging.learningtapestry.com
    for this your public key has to be part of the config/authorized_keys/
  2. To update the JSON Schema files run:
    curl -s 'http://credreg.net/ctdl/schema/validation/Credential/json?asGroup=true' | jq '.' > fixtures/schemas/ce_registry/credential.json
    curl -s 'http://credreg.net/ctdl/schema/validation/AssessmentProfile/json?asGroup=true' | jq '.' > fixtures/schemas/ce_registry/assessment_profile.json
    curl -s 'http://credreg.net/ctdl/schema/validation/LearningOpportunityProfile/json?asGroup=true' | jq '.' > fixtures/schemas/ce_registry/learning_opportunity_profile.json
    curl -s 'http://credreg.net/ctdl/schema/validation/Agent/json?asGroup=true' | jq '.' > fixtures/schemas/ce_registry/organization.json
    Note that we use jq to format the JSON in this example.

Clone this wiki locally