You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+18-67Lines changed: 18 additions & 67 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,16 +9,20 @@ Before you begin, make sure to familiarize yourself with the [Code of Conduct](C
9
9
## Contributing to the registry
10
10
11
11
> [!IMPORTANT]
12
-
> Before registering a new extension, please read the [Registry Requirements](https://grafana.com/docs/k6/latest/extensions/create/extensions-registry/).
12
+
> Before registering a new extension, please read the [Registry Requirements](https://grafana.com/docs/k6/latest/extensions/explanations/extensions-registry/#registry-requirements).
13
13
14
14
The source of the registry can be found in the [registry.yaml] file. To register an extension, simply add a new entry to the end of the file. The data of the already registered extension can be modified accordingly.
15
15
16
16
After modifying the [registry.yaml], it is advisable to [run the linter](#lint---run-the-linter).
17
17
18
-
The schema for the registry [registry.schema.json] file.
18
+
[registry.yaml]: registry.yaml
19
19
20
-
> [!IMPORTANT]
21
-
> The schema is maintained in [k6registry](https://github.com/grafana/k6registry) it is copied here for convenience but any change in the schema must be done in k6registry's repository.
20
+
## Contribute to the JSON schema
21
+
22
+
The source of the JSON schema can be found in the [registry.schema.yaml] file. After the modification, the [schema should be converted](#schema---convert-the-schema-to-json) to JSON format and saved in the [registry.schema.json] file.
23
+
24
+
[registry.schema.yaml]: registry.schema.yaml
25
+
[registry.schema.json]: registry.schema.json
22
26
23
27
## Tasks
24
28
@@ -29,6 +33,7 @@ The following sections describe the typical tasks of contributing. As long as th
29
33
Contributing will require the use of some tools, which can be installed most easily with a well-configured [eget] tool.
The source of the JSON schema is [registry.schema.yaml], after its modification, the schema should be converted into JSON format and saved in [registry.schema.json].
The registry is exposed using and API defined in [openapi.yaml]. This API is served using static files generated from the registry using the [generate-api-files.sh] script. The script takes the registry.json generated from [registry.yaml] using `k6registry` as input to generate the json file to be returned by each endpoint. It also generates a metrics.txt file with metrics for the extensions by tier, grade, and issues found.
0 commit comments