Skip to content

Commit c9a1b7b

Browse files
committed
tweaking to be more update 5-friendly
1 parent e90a9fa commit c9a1b7b

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

generated-types/0.3.7.7/classes/Base.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,13 @@ type FGBuildable_with_length = FGBuildable & {
159159
mMeshLength: docs_json_ts_common_types_decimal_string,
160160
};
161161

162-
type FGBuildable_with_size_and_elevation = FGBuildable & {
162+
type FGBuildable_with_size = FGBuildable_with_size_base & FGBuildable;
163+
164+
type FGBuildable_with_size_base = FGBuildable_base & {
165+
mSize: docs_json_ts_common_types_decimal_string,
166+
};
167+
168+
type FGBuildable_with_size_and_elevation = FGBuildable_with_size & {
163169
mSize: docs_json_ts_common_types_decimal_string,
164170
mElevation: docs_json_ts_common_types_decimal_string,
165171
mDisableSnapOn: docs_json_ts_common_types_empty_object | {
@@ -989,6 +995,8 @@ export type {
989995
FGBuildable_with_height_and_width,
990996
FGBuildable_with_height_and_width_base,
991997
FGBuildable_with_length,
998+
FGBuildable_with_size,
999+
FGBuildable_with_size_base,
9921000
FGBuildable_with_size_and_elevation,
9931001
FGBuildable_with_width,
9941002
FGBuildable_with_width_base,

schema/0.3.7.7/base-classes.json

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,9 +443,25 @@
443443
}
444444
}
445445
},
446+
"FGBuildable--with-size": {
447+
"allOf": [
448+
{"$ref": "#/$defs/FGBuildable--with-size--base"},
449+
{"$ref": "#/$defs/FGBuildable"}
450+
]
451+
},
452+
"FGBuildable--with-size--base": {
453+
"type": "object",
454+
"$ref": "#/$defs/FGBuildable--base",
455+
"required": ["mSize"],
456+
"properties": {
457+
"mSize": {
458+
"$ref": "docs.json.ts--common--types#/$defs/decimal_string"
459+
}
460+
}
461+
},
446462
"FGBuildable--with-size-and-elevation": {
447463
"type": "object",
448-
"$ref": "#/$defs/FGBuildable",
464+
"$ref": "#/$defs/FGBuildable--with-size",
449465
"required": ["mSize", "mElevation", "mDisableSnapOn"],
450466
"properties": {
451467
"mSize": {

0 commit comments

Comments
 (0)