SAP

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Add Validation to a Tutorial (v2 parser)

Add validation to your tutorial so developers can show that they've completed it successfully.

Overview

🎓 beginner ⏱ 10 min. TutorialBeginner

You will learn

  • ✔How to create a rules files with validation steps
  • ✔How to add a validation step to the end of a tutorial step
  • ✔How to turn on validation for a tutorial
Joshua Margo J Joshua Margo October 18, 2026
Created on October 18, 2026
Contributors

More from Joshua Margo

See all 9 tutorials by Joshua Margo →

Steps

Intro

Validation allows developers to show that they finished a tutorial successfully, for example, by answering questions or copy-and-pasting the correct code into validation text areas. After passing the validation for all steps, the developer is listed as completing the tutorial.

Validation example
Validation example

For examples of validation, see the tutorials in the missions in the AppSpace.

To complete validation, the developer must be logged in.

IMPORTANT: Please use at least one fill-in-the-blank type question, and one multiple-answer question for each mission you create.

The rules are created in a file called rules.vr, which you add to your tutorial folder (just like images). The file always is called rules.vr, so be careful that you don’t confuse rules files for different tutorials.

IMPORTANT: Never commit the rules.vr file to the production repository. When checking a user’s answer, the 1DX system references the rules.vr file in the QA repository. We have added the rules.vr file to the .gitignore file, Git will ignore it.

Developers can check all the tutorials they’ve completed by going to the Developer Center home page.

Step 1 Add validation tag
—

Validation metadata should be added to the tutorial metadata, so when using a tutorial template, there is nothing to do here. If you are writing the tutorial from an empty markdown file, be sure to insert the value in the tutorial metadata.

Tag
Tag

This metadata indicates that you have added validation to your tutorial. If temporarily you need to publish your tutorial to QA without validation – and without errors being thrown – you can remove the tag … temporarily.

IMPORTANT: The value should always be true.

Step 2 Create the rules file
+
Step 3 Add validation to tutorial steps
+
Step 4 Test tutorial
+
Step 5 RULE Question, single answer
+
Step 6 RULE Question, multiple answer
+
Step 7 RULE Text matches
+
Step 8 RULE Text exactly matches
+
Step 9 RULE Text starts with
+
Step 10 RULE Text contains
+
Step 11 RULE Text exactly matches with ID
+
Step 12 RULE HTTP status code
+
Step 13 RULE Custom Regex
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 13
1. Add validation tag 2. Create the rules file 3. Add validation to tutorial steps 4. Test tutorial 5. RULE Question, single answer 6. RULE Question, multiple answer 7. RULE Text matches 8. RULE Text exactly matches 9. RULE Text starts with 10. RULE Text contains 11. RULE Text exactly matches with ID 12. RULE HTTP status code 13. RULE Custom Regex
Next