Skip to content

ons-eq-team/eq-questionnaire-schemas

 
 

Repository files navigation

eq-questionnaire-schemas

A repo for building questionnaire schemas for eq-questionnaire-runner.

A number of make targets exist in order to create/test schemas locally:

Build Command
build Build schemas using jsonnet and translate them
build-schemas Build schemas in english using jsonnet
validate-schemas Validate schemas using eq-questionnaire-validator docker image

Build commands are only executed for english versions of schemas, due to changes neccessary to validator in order to accomodate characters from other languages.

Translation Command
translate-schemas Translate english schemas
translation-templates Extracts empty templates for translation (.pot)
test-translation-templates Tests that current translation templates are up to date

Testing built schemas with eq-questionnaire-runner

In order to test the schemas built in this repo you will need to create a symbolic link between a /schemas directory in runner and the schemas directory that is generated here.

In eq-questionnaire-schemas:

Use make build to generate the schemas and populate the /schema directory.

In your local eq-questionnaire-runner repository:

Remove the /schemas directory if it already exists

Create a symbolic link pointing at your generated schema files by running the following command:

ln -s <PATH_TO_REPO>/eq-questionnaire-schemas/schemas <PATH_TO_REPO>/eq-questionnaire-runner/schemas

You should now be able launch a questionnaire using one of the schemas.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Jsonnet 98.2%
  • Other 1.8%