-
Bug
-
-
Major
-
Resolution:
Fixed
-
None
-
-
-
multipleOf
The value of "multipleOf" MUST be a number, strictly greater than 0.
https://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.6.2.1
Case:
SET @schema = '{
|
"multipleOf": 0
|
}';
|
SELECT JSON_SCHEMA_VALID(@schema, '2');
|
Expected that there will be a warning, but actual result is:
JSON_SCHEMA_VALID(@schema, '2')
|
0
|
Also maybe a value like 0.1("multipleOf": 0.1) needs to be checked but I'm not sure
- is caused by
-
MDEV-27128
Implement JSON Schema Validation FUNCTION
-
-
Closed
Lena Startseva
made changes -
Description
|
*multipleOf*
??The value of "multipleOf" MUST be a number, strictly greater than 0. ??
https://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.6.2.1
Case:
{code:sql}
SET @schema = '{
"multipleOf": 0
}';
SELECT JSON_SCHEMA_VALID(@schema, '2');
{code}
Expected that there will be a warning, but actual result is:
{code:sql}
JSON_SCHEMA_VALID(@schema, '2')
0
{code}
Also maybe a value like 0.1("multipleOf": 0.1) needs to be checked but I'm not sure
|
*multipleOf*
??The value of "multipleOf" MUST be a number, strictly greater than 0.??
https://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.6.2.1
Case:
{code:sql}
SET @schema = '{
"multipleOf": 0
}';
SELECT JSON_SCHEMA_VALID(@schema, '2');
{code}
Expected that there will be a warning, but actual result is:
{code:sql}
JSON_SCHEMA_VALID(@schema, '2')
0
{code}
Also maybe a value like 0.1("multipleOf": 0.1) needs to be checked but I'm not sure
|
Lena Startseva
made changes -
Assignee
|
|
Rucha Deodhar
[ rucha174
]
|
Rucha Deodhar
made changes -
Status
|
Open
[ 1
]
|
In Progress
[ 3
]
|
Rucha Deodhar
made changes -
Assignee
|
Rucha Deodhar
[ rucha174
]
|
Alexey Botchkov
[ holyfoot
]
|
Status
|
In Progress
[ 3
]
|
In Review
[ 10002
]
|
Alexey Botchkov
made changes -
Assignee
|
Alexey Botchkov
[ holyfoot
]
|
Rucha Deodhar
[ rucha174
]
|
Status
|
In Review
[ 10002
]
|
Stalled
[ 10000
]
|
Rucha Deodhar
made changes -
Fix Version/s
|
|
11.1.1
[ 28704
]
|
Fix Version/s
|
11.1
[ 28549
]
|
|
Resolution
|
|
Fixed
[ 1
]
|
Status
|
Stalled
[ 10000
]
|
Closed
[ 6
]
|
{"report":{"fcp":981.9000005722046,"ttfb":375.1000003814697,"pageVisibility":"visible","entityId":119592,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"231da120-ac0c-4bc4-b84a-43d9de4392e9","navigationType":0,"readyForUser":1052,"redirectCount":0,"resourceLoadedEnd":843.9000005722046,"resourceLoadedStart":389.20000076293945,"resourceTiming":[{"duration":99.29999923706055,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":389.20000076293945,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":389.20000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":488.5,"responseStart":0,"secureConnectionStart":0},{"duration":99.69999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":389.6000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":389.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":489.30000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":146.4000005722046,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":389.80000019073486,"connectEnd":389.80000019073486,"connectStart":389.80000019073486,"domainLookupEnd":389.80000019073486,"domainLookupStart":389.80000019073486,"fetchStart":389.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":492.30000019073486,"responseEnd":536.2000007629395,"responseStart":504.80000019073486,"secureConnectionStart":389.80000019073486},{"duration":179.39999961853027,"initiatorType":"script","name":"https://jira.mariadb.org/s/c32eb0da7ad9831253f8397e6cc26afd-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":390.70000076293945,"connectEnd":390.70000076293945,"connectStart":390.70000076293945,"domainLookupEnd":390.70000076293945,"domainLookupStart":390.70000076293945,"fetchStart":390.70000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":493,"responseEnd":570.1000003814697,"responseStart":519.7000007629395,"secureConnectionStart":390.70000076293945},{"duration":127.40000057220459,"initiatorType":"script","name":"https://jira.mariadb.org/s/bc0bcb146314416123c992714ee00ff7-CDN/lu2bv2/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":391,"connectEnd":391,"connectStart":391,"domainLookupEnd":391,"domainLookupStart":391,"fetchStart":391,"redirectEnd":0,"redirectStart":0,"requestStart":494.30000019073486,"responseEnd":518.4000005722046,"responseStart":517.9000005722046,"secureConnectionStart":391},{"duration":126.59999942779541,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":391.20000076293945,"connectEnd":391.20000076293945,"connectStart":391.20000076293945,"domainLookupEnd":391.20000076293945,"domainLookupStart":391.20000076293945,"fetchStart":391.20000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":495.70000076293945,"responseEnd":517.8000001907349,"responseStart":517.1000003814697,"secureConnectionStart":391.20000076293945},{"duration":137.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":391.4000005722046,"connectEnd":391.4000005722046,"connectStart":391.4000005722046,"domainLookupEnd":391.4000005722046,"domainLookupStart":391.4000005722046,"fetchStart":391.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":499.4000005722046,"responseEnd":528.6000003814697,"responseStart":528,"secureConnectionStart":391.4000005722046},{"duration":107.19999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bv2/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":391.6000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":391.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":498.80000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":136,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":391.80000019073486,"connectEnd":391.80000019073486,"connectStart":391.80000019073486,"domainLookupEnd":391.80000019073486,"domainLookupStart":391.80000019073486,"fetchStart":391.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":500,"responseEnd":527.8000001907349,"responseStart":527,"secureConnectionStart":391.80000019073486},{"duration":107.30000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bv2/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":392,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":392,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":499.30000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":132.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/719848dd97ebe0663199f49a3936487a-CDN/lu2bv2/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":392.1000003814697,"connectEnd":502.30000019073486,"connectStart":502.30000019073486,"domainLookupEnd":502.30000019073486,"domainLookupStart":502.30000019073486,"fetchStart":392.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":502.70000076293945,"responseEnd":524.4000005722046,"responseStart":521.1000003814697,"secureConnectionStart":502.30000019073486},{"duration":446.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":393.9000005722046,"connectEnd":393.9000005722046,"connectStart":393.9000005722046,"domainLookupEnd":393.9000005722046,"domainLookupStart":393.9000005722046,"fetchStart":393.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":609.9000005722046,"responseEnd":840.4000005722046,"responseStart":832.1000003814697,"secureConnectionStart":393.9000005722046},{"duration":447.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":396.70000076293945,"connectEnd":396.70000076293945,"connectStart":396.70000076293945,"domainLookupEnd":396.70000076293945,"domainLookupStart":396.70000076293945,"fetchStart":396.70000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":769.6000003814697,"responseEnd":843.9000005722046,"responseStart":841.8000001907349,"secureConnectionStart":396.70000076293945},{"duration":218.69999980926514,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":732.8000001907349,"connectEnd":732.8000001907349,"connectStart":732.8000001907349,"domainLookupEnd":732.8000001907349,"domainLookupStart":732.8000001907349,"fetchStart":732.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":905,"responseEnd":951.5,"responseStart":950.6000003814697,"secureConnectionStart":732.8000001907349}],"fetchStart":0,"domainLookupStart":117,"domainLookupEnd":134,"connectStart":134,"connectEnd":154,"secureConnectionStart":143,"requestStart":155,"responseStart":375,"responseEnd":397,"domLoading":379,"domInteractive":1116,"domContentLoadedEventStart":1116,"domContentLoadedEventEnd":1163,"domComplete":1893,"loadEventStart":1893,"loadEventEnd":1894,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1085.6000003814697},{"name":"bigPipe.sidebar-id.end","time":1086.3000001907349},{"name":"bigPipe.activity-panel-pipe-id.start","time":1086.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":1089.5},{"name":"activityTabFullyLoaded","time":1180.4000005722046}],"measures":[],"correlationId":"86905e2dc9afd3","effectiveType":"4g","downlink":9.6,"rtt":0,"serverDuration":122,"dbReadsTimeInMs":20,"dbConnsTimeInMs":28,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
patch: https://github.com/MariaDB/server/tree/bb-MDEV-30704-json_shema