Skip to content

Commit

Permalink
BUGFIX: Update current expeditionJsonSchema
Browse files Browse the repository at this point in the history
  • Loading branch information
on3iro committed Apr 10, 2020
1 parent b1f206a commit 53c9ade
Showing 1 changed file with 72 additions and 85 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export const schema = {
type: 'number',
},
random: {
enum: [true],
type: 'boolean',
},
},
Expand All @@ -36,6 +37,7 @@ export const schema = {
{
properties: {
random: {
enum: [true],
type: 'boolean',
},
},
Expand Down Expand Up @@ -162,6 +164,15 @@ export const schema = {
required: ['operation', 'type'],
type: 'object',
},
MageRewardConfig: {
properties: {
ids: {
$ref: '#/definitions/Array_1',
},
},
required: ['ids'],
type: 'object',
},
MarketType: {
enum: ['custom', 'official'],
type: 'string',
Expand All @@ -185,34 +196,13 @@ export const schema = {
{
properties: {
mage: {
properties: {
ids: {
$ref: '#/definitions/Array_1',
},
},
required: ['ids'],
type: 'object',
$ref: '#/definitions/MageRewardConfig',
},
supply: {
properties: {
bigPocket: {
type: 'boolean',
},
ids: {
$ref: '#/definitions/Array_2',
},
},
required: ['ids'],
type: 'object',
$ref: '#/definitions/SupplyRewardConfig',
},
treasure: {
properties: {
ids: {
$ref: '#/definitions/Array',
},
},
required: ['ids'],
type: 'object',
$ref: '#/definitions/TreasureRewardConfig',
},
type: {
enum: ['custom'],
Expand All @@ -239,34 +229,13 @@ export const schema = {
{
properties: {
mage: {
properties: {
ids: {
$ref: '#/definitions/Array_1',
},
},
required: ['ids'],
type: 'object',
$ref: '#/definitions/MageRewardConfig',
},
supply: {
properties: {
bigPocket: {
type: 'boolean',
},
ids: {
$ref: '#/definitions/Array_2',
},
},
required: ['ids'],
type: 'object',
$ref: '#/definitions/SupplyRewardConfig',
},
treasure: {
properties: {
ids: {
$ref: '#/definitions/Array',
},
},
required: ['ids'],
type: 'object',
$ref: '#/definitions/TreasureRewardConfig',
},
type: {
enum: ['custom'],
Expand Down Expand Up @@ -294,10 +263,31 @@ export const schema = {
SettingsSnapshotConfig: {
$ref: '#/definitions/__type_5',
},
SupplyRewardConfig: {
properties: {
bigPocket: {
type: 'boolean',
},
ids: {
$ref: '#/definitions/Array_2',
},
},
required: ['ids'],
type: 'object',
},
TreasureLevel: {
enum: [1, 2, 3],
type: 'number',
},
TreasureRewardConfig: {
properties: {
ids: {
$ref: '#/definitions/Array',
},
},
required: ['ids'],
type: 'object',
},
__type: {
properties: {
branches: {
Expand Down Expand Up @@ -361,7 +351,7 @@ export const schema = {
type: 'string',
},
},
required: ['config', 'type'],
required: ['config', 'nextBranchId', 'type'],
type: 'object',
},
],
Expand All @@ -376,34 +366,13 @@ export const schema = {
{
properties: {
mage: {
properties: {
ids: {
$ref: '#/definitions/Array_1',
},
},
required: ['ids'],
type: 'object',
$ref: '#/definitions/MageRewardConfig',
},
supply: {
properties: {
bigPocket: {
type: 'boolean',
},
ids: {
$ref: '#/definitions/Array_2',
},
},
required: ['ids'],
type: 'object',
$ref: '#/definitions/SupplyRewardConfig',
},
treasure: {
properties: {
ids: {
$ref: '#/definitions/Array',
},
},
required: ['ids'],
type: 'object',
$ref: '#/definitions/TreasureRewardConfig',
},
type: {
enum: ['custom'],
Expand Down Expand Up @@ -431,19 +400,37 @@ export const schema = {
type: 'string',
},
newUBNCards: {
properties: {
addRandom: {
type: 'boolean',
anyOf: [
{
properties: {
ids: {
items: {
type: 'string',
},
type: 'array',
},
type: {
enum: ['custom'],
type: 'string',
},
},
required: ['ids', 'type'],
type: 'object',
},
ids: {
items: {
type: 'string',
{
properties: {
addRandom: {
type: 'boolean',
},
type: {
enum: ['regular'],
type: 'string',
},
},
type: 'array',
required: ['addRandom', 'type'],
type: 'object',
},
},
required: ['addRandom', 'ids'],
type: 'object',
],
},
onLoss: {
$ref: '#/definitions/OnLoss',
Expand Down Expand Up @@ -478,7 +465,7 @@ export const schema = {
},
__type_4: {
properties: {
descisions: {
decisions: {
anyOf: [
{
items: {
Expand All @@ -496,7 +483,7 @@ export const schema = {
type: 'string',
},
},
required: ['descisions', 'text'],
required: ['decisions', 'text'],
type: 'object',
},
__type_5: {
Expand Down

0 comments on commit 53c9ade

Please sign in to comment.