make interpolation pattern better

This commit is contained in:
Shreyas Goenka 2024-09-10 15:27:39 +02:00
parent d9432e5e8e
commit 65ed301b06
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ import (
) )
func interpolationPattern(s string) string { func interpolationPattern(s string) string {
return fmt.Sprintf(`\$\{(%s(\.[a-zA-Z]+([-_]?[a-zA-Z0-9]+)*(\[[0-9]+\])*)*(\[[0-9]+\])*)\}`, s) return fmt.Sprintf(`\$\{(%s(\.[a-zA-Z]+([-_]?[a-zA-Z0-9]+)*(\[[0-9]+\])*)+)\}`, s)
} }
func addInterpolationPatterns(typ reflect.Type, s jsonschema.Schema) jsonschema.Schema { func addInterpolationPatterns(typ reflect.Type, s jsonschema.Schema) jsonschema.Schema {