Skip to content

Commit

Permalink
renam test and generate testdata schemas
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksandar Stojanov <[email protected]>
  • Loading branch information
losisin committed Nov 11, 2024
1 parent 457a95d commit 8a3f86b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/generator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func TestGenerateJsonSchema(t *testing.T) {
templateSchemaFile: "../testdata/full.schema.json",
},
{
name: "full json schema",
name: "noAdditionalProperties",
config: &Config{
Draft: 2020,
Indent: 4,
Expand Down
5 changes: 5 additions & 0 deletions testdata/anchors.schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"$id": "https://example.com/schema",
"$ref": "schema/product.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": true,
"description": "Schema for Helm values",
"properties": {
"app": {
"properties": {
Expand All @@ -20,5 +24,6 @@
"type": "object"
}
},
"title": "Helm Values Schema",
"type": "object"
}
5 changes: 5 additions & 0 deletions testdata/basic.schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"$id": "https://example.com/schema",
"$ref": "schema/product.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": true,
"description": "Schema for Helm values",
"properties": {
"empty": {
"type": "null"
Expand Down Expand Up @@ -57,5 +61,6 @@
"type": "array"
}
},
"title": "Helm Values Schema",
"type": "object"
}
5 changes: 5 additions & 0 deletions testdata/meta.schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"$id": "https://example.com/schema",
"$ref": "schema/product.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": true,
"description": "Schema for Helm values",
"properties": {
"fullnameOverride": {
"title": "Full name override",
Expand Down Expand Up @@ -50,5 +54,6 @@
"type": "array"
}
},
"title": "Helm Values Schema",
"type": "object"
}

0 comments on commit 8a3f86b

Please sign in to comment.