Skip to content

Commit

Permalink
Merge pull request #43 from grafana/42-compliance-checks
Browse files Browse the repository at this point in the history
Compliance checks
  • Loading branch information
szkiba authored Aug 30, 2024
2 parents 0816d69 + 3109800 commit 1405091
Show file tree
Hide file tree
Showing 58 changed files with 5,080 additions and 771 deletions.
5 changes: 3 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ The JSON schema of the registry can be found in the [registry.schema.yaml] file,

```bash
yq -o=json -P docs/registry.schema.yaml > docs/registry.schema.json
go-jsonschema --capitalization URL -p k6registry --only-models -o registry_gen.go docs/registry.schema.yaml
go-jsonschema --capitalization URL --capitalization OSS -p k6registry --only-models -o registry_gen.go docs/registry.schema.yaml
```

[registry.schema.json]: docs/registry.schema.json
Expand All @@ -53,7 +53,8 @@ go-jsonschema --capitalization URL -p k6registry --only-models -o registry_gen.g
The example registry can be found in [example.yaml] file, the documentation ([registry.md], [README.md]) must be updated after modification.

```bash
go run ./cmd/k6registry --lint docs/example.yaml > docs/example.json
go run ./cmd/k6registry --lint -o docs/example.json --api docs/example-api docs/example.yaml
tree -n --noreport --filesfirst -o docs/example-api.txt docs/example-api
mdcode update docs/registry.md
mdcode update README.md
```
Expand Down
Loading

0 comments on commit 1405091

Please sign in to comment.