added realm to jspg processing
This commit is contained in:
@ -2,27 +2,37 @@
|
||||
{
|
||||
"description": "Strict Inheritance",
|
||||
"database": {
|
||||
"schemas": {
|
||||
"parent_type": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"a": {
|
||||
"type": "integer"
|
||||
"types": [
|
||||
{
|
||||
"name": "parent_type",
|
||||
"schemas": {
|
||||
"parent_type": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"a": {
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"a"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"a"
|
||||
]
|
||||
}
|
||||
},
|
||||
"child_type": {
|
||||
"type": "parent_type",
|
||||
"properties": {
|
||||
"b": {
|
||||
"type": "integer"
|
||||
{
|
||||
"name": "child_type",
|
||||
"schemas": {
|
||||
"child_type": {
|
||||
"type": "parent_type",
|
||||
"properties": {
|
||||
"b": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
@ -66,26 +76,36 @@
|
||||
{
|
||||
"description": "Local Shadowing (Composition & Proxies)",
|
||||
"database": {
|
||||
"schemas": {
|
||||
"budget": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"max": {
|
||||
"type": "integer",
|
||||
"maximum": 100
|
||||
"types": [
|
||||
{
|
||||
"name": "budget",
|
||||
"schemas": {
|
||||
"budget": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"max": {
|
||||
"type": "integer",
|
||||
"maximum": 100
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"custom_budget": {
|
||||
"type": "budget",
|
||||
"properties": {
|
||||
"max": {
|
||||
"type": "integer",
|
||||
"maximum": 50
|
||||
{
|
||||
"name": "custom_budget",
|
||||
"schemas": {
|
||||
"custom_budget": {
|
||||
"type": "budget",
|
||||
"properties": {
|
||||
"max": {
|
||||
"type": "integer",
|
||||
"maximum": 50
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
@ -115,30 +135,40 @@
|
||||
{
|
||||
"description": "Primitive Array Shorthand (Optionality)",
|
||||
"database": {
|
||||
"schemas": {
|
||||
"invoice": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"amount": {
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"amount"
|
||||
]
|
||||
},
|
||||
"request": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"inv": {
|
||||
"type": [
|
||||
"invoice",
|
||||
"null"
|
||||
"types": [
|
||||
{
|
||||
"name": "invoice",
|
||||
"schemas": {
|
||||
"invoice": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"amount": {
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"amount"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "request",
|
||||
"schemas": {
|
||||
"request": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"inv": {
|
||||
"type": [
|
||||
"invoice",
|
||||
"null"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user