This commit is contained in:
Shreyas Goenka 2024-06-28 00:34:14 +02:00
parent 59b731998c
commit a2aeacc589
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
1 changed files with 3 additions and 14 deletions

View File

@ -740,23 +740,12 @@ func TestSliceOfPrimitivesSchema(t *testing.T) {
expected := expected :=
`{ `{
"additionalProperties": { "items": {
"items": { "type": "number"
"type": "string"
},
"anyOf": [
{
"type": "array"
},
{
"type": "string",
"pattern": "\\$\\{([a-zA-Z]+([-_]?[a-zA-Z0-9]+)*(\\.[a-zA-Z]+([-_]?[a-zA-Z0-9]+)*(\\[[0-9]+\\])*)*(\\[[0-9]+\\])*)\\}"
}
]
}, },
"anyOf": [ "anyOf": [
{ {
"type": "object" "type": "array"
}, },
{ {
"type": "string", "type": "string",