-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
New Oracle FeatureA new Oracle Feature to be addedA new Oracle Feature to be added
Description
CREATE TABLE jdocs (
doc JSON VALIDATE
'{
"type": "object",
"properties": {
"id":
{"type": "number"}
}
}'
);
SELECT * FROM staging
WHERE doc IS JSON VALIDATE
'{
"type": "object",
"properties": {
"id":
{"type": "number"}
}
}';
SELECT
DBMS_JSON_SCHEMA
.VALIDATE_REPORT(doc, schema)
FROM jdocs;
REPORT
-----------------------------
{
"valid" : false,
"errors" :
[
{
"schemaPath" : "$.id",
"instancePath" : "$",
"code" : "JZN-00503",
"error" : "invalid type found, actual: string, expected: number"
}
]
}
Metadata
Metadata
Assignees
Labels
New Oracle FeatureA new Oracle Feature to be addedA new Oracle Feature to be added