This commit is contained in:
Shreyas Goenka 2024-08-27 17:49:09 +02:00
parent aac6687900
commit 4141f4ea34
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
1 changed files with 1 additions and 3 deletions

View File

@ -26,7 +26,7 @@ func addInterpolationPatterns(typ reflect.Type, s jsonschema.Schema) jsonschema.
// arrays and objects can have complex variable values specified.
return jsonschema.Schema{
AnyOf: []jsonschema.Schema{s, {
Type: jsonschema.StringType,
Type: jsonschema.StringType,
Pattern: interpolationPattern("var"),
}},
}
@ -46,8 +46,6 @@ func addInterpolationPatterns(typ reflect.Type, s jsonschema.Schema) jsonschema.
}
}
// TODO: Add enum overrides for DABs enum values. Maybe use reflection?
func main() {
if len(os.Args) != 2 {
fmt.Println("Usage: go run main.go <output-file>")