skip adding patterns for string schemas

This commit is contained in:
Shreyas Goenka 2024-08-27 17:36:12 +02:00
parent acc43092ad
commit f194a5b86a
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
2 changed files with 138 additions and 898 deletions

View File

@ -31,7 +31,7 @@ func addInterpolationPatterns(typ reflect.Type, s jsonschema.Schema) jsonschema.
Pattern: interpolationPattern("var"),
}},
}
case jsonschema.StringType, jsonschema.IntegerType, jsonschema.NumberType, jsonschema.BooleanType:
case jsonschema.IntegerType, jsonschema.NumberType, jsonschema.BooleanType:
// primitives can have variable values, or references like ${bundle.xyz}
// or ${workspace.xyz}
// TODO: Followup, do not allow references like ${} in the schema unless

File diff suppressed because it is too large Load Diff