Skip to content

Commit

Permalink
correcting discovery & schema
Browse files Browse the repository at this point in the history
-   re: #2
  • Loading branch information
SignpostMarv committed Sep 23, 2024
1 parent 202d017 commit 6daf230
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
30 changes: 30 additions & 0 deletions lib/TypeDefinitionDiscovery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,36 @@ export class TypeDefinitionDiscovery
},
},
},
{
type: 'object',
required: [
'type',
'prefixItems',
'minItems',
],
additionalProperties: false,
properties: {
type: {
type: 'string',
const: 'array',
},
minItems: {
type: 'number',
minimum: 1,
},
maxItems: {
type: 'number',
minimum: 1,
},
prefixItems: {
type: 'array',
minItems: 1,
items: {
$ref: '#/$defs/$ref',
},
},
},
},
]}},
},
},
Expand Down
6 changes: 4 additions & 2 deletions schema/1.0.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -11157,7 +11157,7 @@
},
"FGPowerShardDescriptor": {
"type": "object",
"$ref": "#/$defs/FGItemDescriptor--FGBuildingDescriptor--FGResourceDescriptor",
"$ref": "#/$defs/FGItemDescriptor--FGResourceDescriptor",
"required": [
"mPowerShardType",
"mExtraPotential",
Expand Down Expand Up @@ -12131,7 +12131,9 @@
"minItems": 2,
"maxItems": 2,
"items": {
"$ref": "#/$defs/FGPowerShardDescriptor"
"type": "object",
"$ref": "#/$defs/FGPowerShardDescriptor",
"unevaluatedProperties": false
}
}
}
Expand Down

0 comments on commit 6daf230

Please sign in to comment.