Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
None
Description
enum:
The value of this keyword MUST be an array. This array SHOULD have at least one element. Elements in the array SHOULD be unique.
https://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.6.1.2
So it is expected that JSON_SCHEMA_VALID for this schema returns warning:
SET @schema = '{ |
"type":"array",
|
"enum": []
|
}'; |
But actual result is:
SELECT JSON_SCHEMA_VALID(@schema, '2'); |
JSON_SCHEMA_VALID(@schema, '2') |
0
|
SELECT JSON_SCHEMA_VALID(@schema, '[]'); |
JSON_SCHEMA_VALID(@schema, '[]') |
0
|
SELECT JSON_SCHEMA_VALID(@schema, null); |
JSON_SCHEMA_VALID(@schema, null) |
1
|
Attachments
Issue Links
- is caused by
-
MDEV-27128 Implement JSON Schema Validation FUNCTION
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Link |
This issue is caused by |
Description |
??* enum*
The value of this keyword MUST be an array. This array SHOULD have at least one element. Elements in the array SHOULD be unique. ?? https://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.4.1 So it is expected that JSON_SCHEMA_VALID for this schema returns warning: {code:sql} SET @schema = '{ "type":"array", "enum": [] }'; {code} But actual result is: {code:sql} SELECT JSON_SCHEMA_VALID(@schema, '2'); JSON_SCHEMA_VALID(@schema, '2') 0 SELECT JSON_SCHEMA_VALID(@schema, '[]'); JSON_SCHEMA_VALID(@schema, '[]') 0 SELECT JSON_SCHEMA_VALID(@schema, null); JSON_SCHEMA_VALID(@schema, null) 1 {code} |
* enum*:
?? The value of this keyword MUST be an array. This array SHOULD have at least one element. Elements in the array SHOULD be unique. ?? https://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.4.1 So it is expected that JSON_SCHEMA_VALID for this schema returns warning: {code:sql} SET @schema = '{ "type":"array", "enum": [] }'; {code} But actual result is: {code:sql} SELECT JSON_SCHEMA_VALID(@schema, '2'); JSON_SCHEMA_VALID(@schema, '2') 0 SELECT JSON_SCHEMA_VALID(@schema, '[]'); JSON_SCHEMA_VALID(@schema, '[]') 0 SELECT JSON_SCHEMA_VALID(@schema, null); JSON_SCHEMA_VALID(@schema, null) 1 {code} |
Description |
* enum*:
?? The value of this keyword MUST be an array. This array SHOULD have at least one element. Elements in the array SHOULD be unique. ?? https://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.4.1 So it is expected that JSON_SCHEMA_VALID for this schema returns warning: {code:sql} SET @schema = '{ "type":"array", "enum": [] }'; {code} But actual result is: {code:sql} SELECT JSON_SCHEMA_VALID(@schema, '2'); JSON_SCHEMA_VALID(@schema, '2') 0 SELECT JSON_SCHEMA_VALID(@schema, '[]'); JSON_SCHEMA_VALID(@schema, '[]') 0 SELECT JSON_SCHEMA_VALID(@schema, null); JSON_SCHEMA_VALID(@schema, null) 1 {code} |
* enum: *
??The value of this keyword MUST be an array. This array SHOULD have at least one element. Elements in the array SHOULD be unique. ?? https://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.4.1 So it is expected that JSON_SCHEMA_VALID for this schema returns warning: {code:sql} SET @schema = '{ "type":"array", "enum": [] }'; {code} But actual result is: {code:sql} SELECT JSON_SCHEMA_VALID(@schema, '2'); JSON_SCHEMA_VALID(@schema, '2') 0 SELECT JSON_SCHEMA_VALID(@schema, '[]'); JSON_SCHEMA_VALID(@schema, '[]') 0 SELECT JSON_SCHEMA_VALID(@schema, null); JSON_SCHEMA_VALID(@schema, null) 1 {code} |
Description |
* enum: *
??The value of this keyword MUST be an array. This array SHOULD have at least one element. Elements in the array SHOULD be unique. ?? https://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.4.1 So it is expected that JSON_SCHEMA_VALID for this schema returns warning: {code:sql} SET @schema = '{ "type":"array", "enum": [] }'; {code} But actual result is: {code:sql} SELECT JSON_SCHEMA_VALID(@schema, '2'); JSON_SCHEMA_VALID(@schema, '2') 0 SELECT JSON_SCHEMA_VALID(@schema, '[]'); JSON_SCHEMA_VALID(@schema, '[]') 0 SELECT JSON_SCHEMA_VALID(@schema, null); JSON_SCHEMA_VALID(@schema, null) 1 {code} |
*enum:*
??The value of this keyword MUST be an array. This array SHOULD have at least one element. Elements in the array SHOULD be unique. ?? https://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.4.1 So it is expected that JSON_SCHEMA_VALID for this schema returns warning: {code:sql} SET @schema = '{ "type":"array", "enum": [] }'; {code} But actual result is: {code:sql} SELECT JSON_SCHEMA_VALID(@schema, '2'); JSON_SCHEMA_VALID(@schema, '2') 0 SELECT JSON_SCHEMA_VALID(@schema, '[]'); JSON_SCHEMA_VALID(@schema, '[]') 0 SELECT JSON_SCHEMA_VALID(@schema, null); JSON_SCHEMA_VALID(@schema, null) 1 {code} |
Description |
*enum:*
??The value of this keyword MUST be an array. This array SHOULD have at least one element. Elements in the array SHOULD be unique. ?? https://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.4.1 So it is expected that JSON_SCHEMA_VALID for this schema returns warning: {code:sql} SET @schema = '{ "type":"array", "enum": [] }'; {code} But actual result is: {code:sql} SELECT JSON_SCHEMA_VALID(@schema, '2'); JSON_SCHEMA_VALID(@schema, '2') 0 SELECT JSON_SCHEMA_VALID(@schema, '[]'); JSON_SCHEMA_VALID(@schema, '[]') 0 SELECT JSON_SCHEMA_VALID(@schema, null); JSON_SCHEMA_VALID(@schema, null) 1 {code} |
*enum:*
??The value of this keyword MUST be an array. This array SHOULD have at least one element. Elements in the array SHOULD be unique. ?? https://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.4.1 So it is expected that JSON_SCHEMA_VALID for this schema returns warning: {code:sql} SET @schema = '{ "type":"array", "enum": [] }'; {code} But actual result is: {code:sql} SELECT JSON_SCHEMA_VALID(@schema, '2'); JSON_SCHEMA_VALID(@schema, '2') 0 SELECT JSON_SCHEMA_VALID(@schema, '[]'); JSON_SCHEMA_VALID(@schema, '[]') 0 SELECT JSON_SCHEMA_VALID(@schema, null); JSON_SCHEMA_VALID(@schema, null) 1 {code} |
Description |
*enum:*
??The value of this keyword MUST be an array. This array SHOULD have at least one element. Elements in the array SHOULD be unique. ?? https://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.4.1 So it is expected that JSON_SCHEMA_VALID for this schema returns warning: {code:sql} SET @schema = '{ "type":"array", "enum": [] }'; {code} But actual result is: {code:sql} SELECT JSON_SCHEMA_VALID(@schema, '2'); JSON_SCHEMA_VALID(@schema, '2') 0 SELECT JSON_SCHEMA_VALID(@schema, '[]'); JSON_SCHEMA_VALID(@schema, '[]') 0 SELECT JSON_SCHEMA_VALID(@schema, null); JSON_SCHEMA_VALID(@schema, null) 1 {code} |
*enum:*
?? The value of this keyword MUST be an array. This array SHOULD have at least one element. Elements in the array SHOULD be unique. ?? https://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.4.1 So it is expected that JSON_SCHEMA_VALID for this schema returns warning: {code:sql} SET @schema = '{ "type":"array", "enum": [] }'; {code} But actual result is: {code:sql} SELECT JSON_SCHEMA_VALID(@schema, '2'); JSON_SCHEMA_VALID(@schema, '2') 0 SELECT JSON_SCHEMA_VALID(@schema, '[]'); JSON_SCHEMA_VALID(@schema, '[]') 0 SELECT JSON_SCHEMA_VALID(@schema, null); JSON_SCHEMA_VALID(@schema, null) 1 {code} |
Description |
*enum:*
?? The value of this keyword MUST be an array. This array SHOULD have at least one element. Elements in the array SHOULD be unique. ?? https://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.4.1 So it is expected that JSON_SCHEMA_VALID for this schema returns warning: {code:sql} SET @schema = '{ "type":"array", "enum": [] }'; {code} But actual result is: {code:sql} SELECT JSON_SCHEMA_VALID(@schema, '2'); JSON_SCHEMA_VALID(@schema, '2') 0 SELECT JSON_SCHEMA_VALID(@schema, '[]'); JSON_SCHEMA_VALID(@schema, '[]') 0 SELECT JSON_SCHEMA_VALID(@schema, null); JSON_SCHEMA_VALID(@schema, null) 1 {code} |
*enum:*
?? The value of this keyword MUST be an array. This array SHOULD have at least one element. Elements in the array SHOULD be unique. ?? https://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.4.1 So it is expected that JSON_SCHEMA_VALID for this schema returns warning: {code:sql} SET @schema = '{ "type":"array", "enum": [] }'; {code} But actual result is: {code:sql} SELECT JSON_SCHEMA_VALID(@schema, '2'); JSON_SCHEMA_VALID(@schema, '2') 0 SELECT JSON_SCHEMA_VALID(@schema, '[]'); JSON_SCHEMA_VALID(@schema, '[]') 0 SELECT JSON_SCHEMA_VALID(@schema, null); JSON_SCHEMA_VALID(@schema, null) 1 {code} |
Description |
*enum:*
?? The value of this keyword MUST be an array. This array SHOULD have at least one element. Elements in the array SHOULD be unique. ?? https://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.4.1 So it is expected that JSON_SCHEMA_VALID for this schema returns warning: {code:sql} SET @schema = '{ "type":"array", "enum": [] }'; {code} But actual result is: {code:sql} SELECT JSON_SCHEMA_VALID(@schema, '2'); JSON_SCHEMA_VALID(@schema, '2') 0 SELECT JSON_SCHEMA_VALID(@schema, '[]'); JSON_SCHEMA_VALID(@schema, '[]') 0 SELECT JSON_SCHEMA_VALID(@schema, null); JSON_SCHEMA_VALID(@schema, null) 1 {code} |
*enum:*
??The value of this keyword MUST be an array. This array SHOULD have at least one element. Elements in the array SHOULD be unique.?? https://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.4.1 So it is expected that JSON_SCHEMA_VALID for this schema returns warning: {code:sql} SET @schema = '{ "type":"array", "enum": [] }'; {code} But actual result is: {code:sql} SELECT JSON_SCHEMA_VALID(@schema, '2'); JSON_SCHEMA_VALID(@schema, '2') 0 SELECT JSON_SCHEMA_VALID(@schema, '[]'); JSON_SCHEMA_VALID(@schema, '[]') 0 SELECT JSON_SCHEMA_VALID(@schema, null); JSON_SCHEMA_VALID(@schema, null) 1 {code} |
Assignee | Rucha Deodhar [ rucha174 ] |
Description |
*enum:*
??The value of this keyword MUST be an array. This array SHOULD have at least one element. Elements in the array SHOULD be unique.?? https://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.4.1 So it is expected that JSON_SCHEMA_VALID for this schema returns warning: {code:sql} SET @schema = '{ "type":"array", "enum": [] }'; {code} But actual result is: {code:sql} SELECT JSON_SCHEMA_VALID(@schema, '2'); JSON_SCHEMA_VALID(@schema, '2') 0 SELECT JSON_SCHEMA_VALID(@schema, '[]'); JSON_SCHEMA_VALID(@schema, '[]') 0 SELECT JSON_SCHEMA_VALID(@schema, null); JSON_SCHEMA_VALID(@schema, null) 1 {code} |
*enum:*
??The value of this keyword MUST be an array. This array SHOULD have at least one element. Elements in the array SHOULD be unique.?? https://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.6.1.2 So it is expected that JSON_SCHEMA_VALID for this schema returns warning: {code:sql} SET @schema = '{ "type":"array", "enum": [] }'; {code} But actual result is: {code:sql} SELECT JSON_SCHEMA_VALID(@schema, '2'); JSON_SCHEMA_VALID(@schema, '2') 0 SELECT JSON_SCHEMA_VALID(@schema, '[]'); JSON_SCHEMA_VALID(@schema, '[]') 0 SELECT JSON_SCHEMA_VALID(@schema, null); JSON_SCHEMA_VALID(@schema, null) 1 {code} |
Status | Open [ 1 ] | In Progress [ 3 ] |
Assignee | Rucha Deodhar [ rucha174 ] | Alexey Botchkov [ holyfoot ] |
Status | In Progress [ 3 ] | In Review [ 10002 ] |
Assignee | Alexey Botchkov [ holyfoot ] | Rucha Deodhar [ rucha174 ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Fix Version/s | 11.1.1 [ 28704 ] | |
Fix Version/s | 11.1 [ 28549 ] | |
Resolution | Fixed [ 1 ] | |
Status | Stalled [ 10000 ] | Closed [ 6 ] |