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,9 +740,8 @@ func TestSliceOfPrimitivesSchema(t *testing.T) {
expected :=
`{
"additionalProperties": {
"items": {
"type": "string"
"type": "number"
},
"anyOf": [
{
@ -753,16 +752,6 @@ func TestSliceOfPrimitivesSchema(t *testing.T) {
"pattern": "\\$\\{([a-zA-Z]+([-_]?[a-zA-Z0-9]+)*(\\.[a-zA-Z]+([-_]?[a-zA-Z0-9]+)*(\\[[0-9]+\\])*)*(\\[[0-9]+\\])*)\\}"
}
]
},
"anyOf": [
{
"type": "object"
},
{
"type": "string",
"pattern": "\\$\\{([a-zA-Z]+([-_]?[a-zA-Z0-9]+)*(\\.[a-zA-Z]+([-_]?[a-zA-Z0-9]+)*(\\[[0-9]+\\])*)*(\\[[0-9]+\\])*)\\}"
}
]
}`
t.Log("[DEBUG] actual: ", string(jsonSchema))