File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -249,6 +249,8 @@ The `config.json` file should have the following checks:
249
249
- The ` "forked_from" ` values must not have duplicates
250
250
- The ` "language_versions" ` key is optional
251
251
- The ` "language_versions" ` value must be a string
252
+ - The ` "representer.version" ` key is optional
253
+ - The ` "representer.version" ` value must be an integer >= 1
252
254
- The ` "icon" ` key is optional
253
255
- The ` "icon" ` value must be a kebab-case string²
254
256
@@ -321,6 +323,8 @@ The `config.json` file should have the following checks:
321
323
- The ` "language_versions" ` value must be a string
322
324
- The ` "test_runner" ` key is optional
323
325
- The ` "test_runner" ` value must be a boolean
326
+ - The ` "representer.version" ` key is optional
327
+ - The ` "representer.version" ` value must be an integer >= 1
324
328
325
329
### Rule: exercises/{concept|practice}/< ; slug> ; /.approaches/config.json is valid
326
330
Original file line number Diff line number Diff line change @@ -325,6 +325,8 @@ This file contains meta information on the exercise:
325
325
- ` blurb ` : A short description of this exercise. Its length must be <= 350. Markdown is _ not_ supported (required)
326
326
- ` source ` : The source this exercise is based on (optional)
327
327
- ` source_url ` : The URL of the source this exercise is based on (optional)
328
+ - ` representer ` : Meta information related to how the representer processes this file (optional)
329
+ - ` version ` : An integer for the version of the representer to use for the exercise (required if parent key is present)
328
330
- ` icon ` : The slug of the icon (see [ the full list of icons] [ exercise-icons ] ). If not specified, the exercise's slug will be used (optional)
329
331
330
332
If someone is both an author _ and_ a contributor, only list that person as an author.
@@ -362,6 +364,9 @@ Assume that the user `FSharpForever` has written an exercise called `log-levels`
362
364
"blurb" : " Learn how to work with strings by processing log lines." ,
363
365
"source" : " Wikipedia" ,
364
366
"source_url" : " https://en.wikipedia.org/wiki/Log_file" ,
367
+ "representer" : {
368
+ "version" : 2
369
+ },
365
370
"icon" : " logs"
366
371
}
367
372
```
Original file line number Diff line number Diff line change @@ -287,6 +287,8 @@ This file contains meta information on the exercise:
287
287
- ` source ` : The source this exercise is based on (optional)
288
288
- ` source_url ` : The URL of the source this exercise is based on (optional)
289
289
- ` test_runner ` : Indicates if solutions of this exercise should be tested in the test runner. Defaults to ` true ` if not specified. (optional)
290
+ - ` representer ` : Meta information related to how the representer processes this file (optional)
291
+ - ` version ` : An integer for the version of the representer to use for the exercise (required if parent key is present)
290
292
- ` icon ` : The slug of the icon (see [ the full list of icons] [ exercise-icons ] ). If not specified, the exercise's slug will be used (optional)
291
293
292
294
If someone is both an author _ and_ a contributor, only list that person as an author.
You can’t perform that action at this time.
0 commit comments