From be0e322b29d6f3872c3d37887dcb474851dabfa5 Mon Sep 17 00:00:00 2001 From: eden wang <64514273+eyw520@users.noreply.github.com> Date: Fri, 20 Dec 2024 11:43:20 -0500 Subject: [PATCH] fix(cli): correctly support AdditionalProperties during object parsing. (#5457) * correctly support AdditionalProperties; add eyw520 as api-importer codeowner. * Update snapshots --- .github/CODEOWNERS | 1 + packages/cli/cli/versions.yml | 7 + .../tests/fdr/__snapshots__/fdr.test.ts.snap | 60 +- .../__test__/__snapshots__/alias-extends.json | 10 +- .../__test__/__snapshots__/alias.json | 5 +- .../__test__/__snapshots__/any-auth.json | 10 +- .../__test__/__snapshots__/audiences.json | 30 +- .../__test__/__snapshots__/availability.json | 5 +- .../basic-auth-environment-variables.json | 5 +- .../__test__/__snapshots__/basic-auth.json | 5 +- .../circular-references-advanced.json | 25 +- .../__snapshots__/circular-references.json | 20 +- .../cross-package-type-names.json | 25 +- .../csharp-grpc-proto-exhaustive.json | 80 +- .../__snapshots__/csharp-grpc-proto.json | 10 +- .../csharp-namespace-conflict.json | 25 +- .../__test__/__snapshots__/custom-auth.json | 5 +- .../__snapshots__/error-property.json | 5 +- .../__test__/__snapshots__/examples.json | 95 +-- .../__test__/__snapshots__/exhaustive.json | 45 +- .../__test__/__snapshots__/extends.json | 20 +- .../__test__/__snapshots__/file-upload.json | 5 +- .../__snapshots__/go-content-type.json | 5 +- .../__test__/__snapshots__/imdb.json | 10 +- .../java-custom-package-prefix.json | 10 +- .../__test__/__snapshots__/license.json | 5 +- .../__test__/__snapshots__/literal.json | 30 +- .../__test__/__snapshots__/mixed-case.json | 15 +- .../__snapshots__/mixed-file-directory.json | 25 +- .../__snapshots__/multi-line-docs.json | 5 +- .../oauth-client-credentials-default.json | 5 +- ...ent-credentials-environment-variables.json | 5 +- .../oauth-client-credentials-nested-root.json | 5 +- .../oauth-client-credentials.json | 5 +- .../__test__/__snapshots__/oauth.json | 5 +- .../__test__/__snapshots__/object.json | 10 +- .../__snapshots__/objects-with-imports.json | 25 +- .../__test__/__snapshots__/package-yml.json | 5 +- .../__test__/__snapshots__/pagination.json | 75 +- .../__snapshots__/path-parameters.json | 10 +- .../__snapshots__/query-parameters.json | 10 +- .../__snapshots__/reserved-keywords.json | 10 +- .../__snapshots__/response-property.json | 25 +- .../server-sent-event-examples.json | 5 +- .../__snapshots__/server-sent-events.json | 5 +- .../__test__/__snapshots__/simple-fhir.json | 30 +- .../__snapshots__/streaming-parameter.json | 10 +- .../__test__/__snapshots__/streaming.json | 5 +- .../__test__/__snapshots__/trace.json | 785 ++++-------------- .../__snapshots__/ts-express-casing.json | 5 +- .../__snapshots__/ts-inline-types.json | 105 +-- .../__snapshots__/undiscriminated-unions.json | 5 +- .../__test__/__snapshots__/unions.json | 25 +- .../__test__/__snapshots__/unknown.json | 5 +- .../__test__/__snapshots__/validation.json | 5 +- .../__snapshots__/version-no-default.json | 5 +- .../__test__/__snapshots__/version.json | 5 +- .../ir-to-fdr-converter/convertTypeShape.ts | 4 +- 58 files changed, 368 insertions(+), 1434 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 6bd98ee8d6d..9fa5ea7864b 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -22,5 +22,6 @@ generators/openapi/* @dsinghvi # Specific rules for packages packages/cli/* @amckinney +packages/cli/api-importers/* @eyw520 packages/generators/cli/* @dsinghvi packages/generators/docker/* @dsinghvi diff --git a/packages/cli/cli/versions.yml b/packages/cli/cli/versions.yml index ad4b5c96e62..38a6a0294c7 100644 --- a/packages/cli/cli/versions.yml +++ b/packages/cli/cli/versions.yml @@ -1,3 +1,10 @@ +- changelogEntry: + - summary: | + Correctly support AdditionalProperties on object schemas. + type: fix + irVersion: 53 + version: 0.46.10 + - changelogEntry: - summary: | SDK generation no longer hard-fails on single example generation errors. diff --git a/packages/cli/ete-tests/src/tests/fdr/__snapshots__/fdr.test.ts.snap b/packages/cli/ete-tests/src/tests/fdr/__snapshots__/fdr.test.ts.snap index 23722ee3168..2bacc386946 100644 --- a/packages/cli/ete-tests/src/tests/fdr/__snapshots__/fdr.test.ts.snap +++ b/packages/cli/ete-tests/src/tests/fdr/__snapshots__/fdr.test.ts.snap @@ -74,10 +74,7 @@ exports[`fdr > {"name":"changelog"} 1`] = ` "value": "type_director:Age" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_director:Age": { @@ -172,10 +169,7 @@ exports[`fdr > {"name":"changelog"} 1`] = ` } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_imdb:CreateMovieRequest": { @@ -205,10 +199,7 @@ exports[`fdr > {"name":"changelog"} 1`] = ` } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_imdb:DirectorWrapper": { @@ -224,10 +215,7 @@ exports[`fdr > {"name":"changelog"} 1`] = ` "value": "type_director:Director" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_imdb:EmptyObject": { @@ -235,10 +223,7 @@ exports[`fdr > {"name":"changelog"} 1`] = ` "shape": { "type": "object", "extends": [], - "properties": [], - "extraProperties": { - "type": "unknown" - } + "properties": [] } }, "type_imdb:Person": { @@ -311,10 +296,7 @@ exports[`fdr > {"name":"changelog"} 1`] = ` } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, @@ -921,10 +903,7 @@ exports[`fdr > {"name":"simple"} 1`] = ` "value": "type_director:Age" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_director:Age": { @@ -1019,10 +998,7 @@ exports[`fdr > {"name":"simple"} 1`] = ` } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_imdb:CreateMovieRequest": { @@ -1052,10 +1028,7 @@ exports[`fdr > {"name":"simple"} 1`] = ` } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_imdb:DirectorWrapper": { @@ -1071,10 +1044,7 @@ exports[`fdr > {"name":"simple"} 1`] = ` "value": "type_director:Director" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_imdb:EmptyObject": { @@ -1082,10 +1052,7 @@ exports[`fdr > {"name":"simple"} 1`] = ` "shape": { "type": "object", "extends": [], - "properties": [], - "extraProperties": { - "type": "unknown" - } + "properties": [] } }, "type_imdb:Person": { @@ -1158,10 +1125,7 @@ exports[`fdr > {"name":"simple"} 1`] = ` } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/alias-extends.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/alias-extends.json index 1f6530a577d..301d5c4e4b6 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/alias-extends.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/alias-extends.json @@ -25,10 +25,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:Child": { @@ -48,10 +45,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/alias.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/alias.json index cea0560391c..cc8fcca16ca 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/alias.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/alias.json @@ -36,10 +36,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:Object": { diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/any-auth.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/any-auth.json index 6ae64ce964e..6aad7ece4fb 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/any-auth.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/any-auth.json @@ -37,10 +37,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_user:User": { @@ -67,10 +64,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/audiences.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/audiences.json index 3492e1a055f..18fac60b487 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/audiences.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/audiences.json @@ -28,10 +28,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_folder-b/common:Foo": { @@ -50,10 +47,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_folder-c/common:FolderCFoo": { @@ -71,10 +65,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_folder-d/service:Response": { @@ -92,10 +83,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_foo:ImportingType": { @@ -111,10 +99,7 @@ "value": "type_commons:Imported" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_foo:OptionalString": { @@ -159,10 +144,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/availability.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/availability.json index 1bf5310e386..77c31cdfd9b 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/availability.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/availability.json @@ -16,10 +16,7 @@ }, "availability": "Beta" } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/basic-auth-environment-variables.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/basic-auth-environment-variables.json index 5ef5910a71e..573354a29fb 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/basic-auth-environment-variables.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/basic-auth-environment-variables.json @@ -15,10 +15,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/basic-auth.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/basic-auth.json index 5ef5910a71e..573354a29fb 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/basic-auth.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/basic-auth.json @@ -15,10 +15,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/circular-references-advanced.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/circular-references-advanced.json index 61e02363f51..bbb53773e3b 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/circular-references-advanced.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/circular-references-advanced.json @@ -16,10 +16,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:RootType": { @@ -37,10 +34,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_a:A": { @@ -50,10 +44,7 @@ "extends": [ "type_:RootType" ], - "properties": [], - "extraProperties": { - "type": "unknown" - } + "properties": [] } }, "type_ast:ContainerValue": { @@ -120,10 +111,7 @@ "shape": { "type": "object", "extends": [], - "properties": [], - "extraProperties": { - "type": "unknown" - } + "properties": [] } }, "type_ast:FieldName": { @@ -207,10 +195,7 @@ "value": "type_ast:FieldValue" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/circular-references.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/circular-references.json index 9b49361cc29..e9b7c1826a1 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/circular-references.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/circular-references.json @@ -16,10 +16,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:RootType": { @@ -37,10 +34,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_a:A": { @@ -50,10 +44,7 @@ "extends": [ "type_:RootType" ], - "properties": [], - "extraProperties": { - "type": "unknown" - } + "properties": [] } }, "type_ast:FieldValue": { @@ -168,10 +159,7 @@ "shape": { "type": "object", "extends": [], - "properties": [], - "extraProperties": { - "type": "unknown" - } + "properties": [] } }, "type_ast:JsonLike": { diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/cross-package-type-names.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/cross-package-type-names.json index cb5f391bc9a..633c72bce53 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/cross-package-type-names.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/cross-package-type-names.json @@ -28,10 +28,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_folder-b/common:Foo": { @@ -50,10 +47,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_folder-c/common:Foo": { @@ -71,10 +65,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_folder-d/service:Response": { @@ -93,10 +84,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_foo:ImportingType": { @@ -112,10 +100,7 @@ "value": "type_commons:Imported" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_foo:OptionalString": { diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/csharp-grpc-proto-exhaustive.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/csharp-grpc-proto-exhaustive.json index 90d90a3d042..e0aace01ca3 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/csharp-grpc-proto-exhaustive.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/csharp-grpc-proto-exhaustive.json @@ -47,10 +47,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:DeleteResponse": { @@ -58,10 +55,7 @@ "shape": { "type": "object", "extends": [], - "properties": [], - "extraProperties": { - "type": "unknown" - } + "properties": [] } }, "type_:DescribeResponse": { @@ -125,10 +119,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:FetchResponse": { @@ -178,10 +169,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:IndexedData": { @@ -214,10 +202,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:ListElement": { @@ -238,10 +223,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:ListResponse": { @@ -295,10 +277,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:NamespaceSummary": { @@ -319,10 +298,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:Pagination": { @@ -343,10 +319,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:QueryColumn": { @@ -411,10 +384,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:QueryResponse": { @@ -471,10 +441,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:QueryResult": { @@ -508,10 +475,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:ScoredColumn": { @@ -576,10 +540,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:UpdateResponse": { @@ -587,10 +548,7 @@ "shape": { "type": "object", "extends": [], - "properties": [], - "extraProperties": { - "type": "unknown" - } + "properties": [] } }, "type_:UploadResponse": { @@ -611,10 +569,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:Usage": { @@ -635,10 +590,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:Metadata": { diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/csharp-grpc-proto.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/csharp-grpc-proto.json index fabc7176383..6a3b276052c 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/csharp-grpc-proto.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/csharp-grpc-proto.json @@ -16,10 +16,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:UserModel": { @@ -86,10 +83,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:Metadata": { diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/csharp-namespace-conflict.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/csharp-namespace-conflict.json index ef12ddc0e78..b2ea27de8f1 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/csharp-namespace-conflict.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/csharp-namespace-conflict.json @@ -5,10 +5,7 @@ "shape": { "type": "object", "extends": [], - "properties": [], - "extraProperties": { - "type": "unknown" - } + "properties": [] } }, "type_a/aa:B": { @@ -16,10 +13,7 @@ "shape": { "type": "object", "extends": [], - "properties": [], - "extraProperties": { - "type": "unknown" - } + "properties": [] } }, "type_a/aa:SubTestType": { @@ -42,10 +36,7 @@ "value": "type_a/aa:B" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_b:TestType": { @@ -68,10 +59,7 @@ "value": "type_a/aa:B" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_tasktest:Task": { @@ -89,10 +77,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/custom-auth.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/custom-auth.json index 50d0449f61f..f9be9b3873c 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/custom-auth.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/custom-auth.json @@ -15,10 +15,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/error-property.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/error-property.json index 6175e865a73..b37801e7fe2 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/error-property.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/error-property.json @@ -15,10 +15,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/examples.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/examples.json index fdafa9c337c..12c94da3139 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/examples.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/examples.json @@ -53,10 +53,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:BasicType": { @@ -150,10 +147,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_commons/types:EventInfo": { @@ -360,10 +354,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_types:CastMember": { @@ -419,10 +410,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_types:Actress": { @@ -449,10 +437,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_types:StuntDouble": { @@ -479,10 +464,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_types:ExtendedMovie": { @@ -505,10 +487,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_types:Moment": { @@ -544,10 +523,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_types:File": { @@ -574,10 +550,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_types:Directory": { @@ -621,10 +594,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_types:Node": { @@ -668,10 +638,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_types:Tree": { @@ -693,10 +660,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_types:Metadata": { @@ -860,10 +824,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_types:MigrationStatus": { @@ -907,10 +868,7 @@ "value": "type_types:MigrationStatus" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_types:Request": { @@ -925,10 +883,7 @@ "type": "unknown" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_types:Response": { @@ -953,10 +908,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_types:ResponseType": { @@ -972,10 +924,7 @@ "value": "type_:Type" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_types:Test": { @@ -1043,10 +992,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_types:BigEntity": { @@ -1185,10 +1131,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/exhaustive.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/exhaustive.json index 0a934bdba7d..c4fcc49119a 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/exhaustive.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/exhaustive.json @@ -15,10 +15,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_types/enum:WeatherReport": { @@ -219,10 +216,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_types/object:ObjectWithRequiredField": { @@ -240,10 +234,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_types/object:ObjectWithMapOfMap": { @@ -279,10 +270,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_types/object:NestedObjectWithOptionalField": { @@ -313,10 +301,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_types/object:NestedObjectWithRequiredField": { @@ -341,10 +326,7 @@ "value": "type_types/object:ObjectWithOptionalField" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_types/object:DoubleOptional": { @@ -363,10 +345,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_types/object:OptionalAlias": { @@ -435,10 +414,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_types/union:Cat": { @@ -465,10 +441,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/extends.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/extends.json index 966b3fc5109..a4b98e31e40 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/extends.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/extends.json @@ -17,10 +17,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:NestedType": { @@ -40,10 +37,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:Docs": { @@ -61,10 +55,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:JSON": { @@ -84,10 +75,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/file-upload.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/file-upload.json index 30c84afacd1..d1fb49741ea 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/file-upload.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/file-upload.json @@ -27,10 +27,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_service:ObjectType": { diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/go-content-type.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/go-content-type.json index ecf3548b0e9..514f7dc7095 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/go-content-type.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/go-content-type.json @@ -24,10 +24,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/imdb.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/imdb.json index 26a4be39886..1bc1526d106 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/imdb.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/imdb.json @@ -44,10 +44,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_imdb:CreateMovieRequest": { @@ -74,10 +71,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/java-custom-package-prefix.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/java-custom-package-prefix.json index 26a4be39886..1bc1526d106 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/java-custom-package-prefix.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/java-custom-package-prefix.json @@ -44,10 +44,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_imdb:CreateMovieRequest": { @@ -74,10 +71,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/license.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/license.json index db3be6b9492..dbb46eac051 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/license.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/license.json @@ -16,10 +16,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/literal.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/literal.json index b951a465fd0..6ad74d8007d 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/literal.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/literal.json @@ -34,10 +34,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_inlined:SomeAliasedLiteral": { @@ -66,10 +63,7 @@ "value": "type_inlined:ANestedLiteral" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_inlined:ANestedLiteral": { @@ -88,10 +82,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_reference:SendRequest": { @@ -153,10 +144,7 @@ "value": "type_reference:ContainerObject" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_reference:ContainerObject": { @@ -175,10 +163,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_reference:NestedObjectWithLiterals": { @@ -216,10 +201,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_reference:SomeLiteral": { diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/mixed-case.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/mixed-case.json index a8f44f83270..c6988a3cb53 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/mixed-case.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/mixed-case.json @@ -15,10 +15,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_service:User": { @@ -66,10 +63,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_service:NestedUser": { @@ -94,10 +88,7 @@ "value": "type_service:User" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_service:ResourceStatus": { diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/mixed-file-directory.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/mixed-file-directory.json index b3c13ea19e0..7f313ec513d 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/mixed-file-directory.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/mixed-file-directory.json @@ -44,10 +44,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_organization:CreateOrganizationRequest": { @@ -65,10 +62,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_user:User": { @@ -102,10 +96,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_user/events:Event": { @@ -130,10 +121,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_user/events/metadata:Metadata": { @@ -155,10 +143,7 @@ "type": "unknown" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/multi-line-docs.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/multi-line-docs.json index e62734da733..ee645d7b090 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/multi-line-docs.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/multi-line-docs.json @@ -58,10 +58,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/oauth-client-credentials-default.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/oauth-client-credentials-default.json index 14d8f965f26..07439b44ed2 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/oauth-client-credentials-default.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/oauth-client-credentials-default.json @@ -25,10 +25,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/oauth-client-credentials-environment-variables.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/oauth-client-credentials-environment-variables.json index fe6c3a84dce..c7be3f12684 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/oauth-client-credentials-environment-variables.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/oauth-client-credentials-environment-variables.json @@ -37,10 +37,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/oauth-client-credentials-nested-root.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/oauth-client-credentials-nested-root.json index 8fd868fb2e9..3341a464f9e 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/oauth-client-credentials-nested-root.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/oauth-client-credentials-nested-root.json @@ -37,10 +37,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/oauth-client-credentials.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/oauth-client-credentials.json index fe6c3a84dce..c7be3f12684 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/oauth-client-credentials.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/oauth-client-credentials.json @@ -37,10 +37,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/oauth.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/oauth.json index 07669ca415c..6b0283361bf 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/oauth.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/oauth.json @@ -33,10 +33,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/object.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/object.json index 9dc5e8268af..1cf9558253e 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/object.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/object.json @@ -252,10 +252,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:Name": { @@ -282,10 +279,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/objects-with-imports.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/objects-with-imports.json index fd906986985..fdc1b3b4fcf 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/objects-with-imports.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/objects-with-imports.json @@ -37,10 +37,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:Tree": { @@ -62,10 +59,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_commons/metadata:Metadata": { @@ -104,10 +98,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_file:File": { @@ -141,10 +132,7 @@ "value": "type_file:FileInfo" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_file:FileInfo": { @@ -204,10 +192,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/package-yml.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/package-yml.json index a020c8b3077..cb17892150c 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/package-yml.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/package-yml.json @@ -24,10 +24,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/pagination.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/pagination.json index 855dba516b7..2a703781121 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/pagination.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/pagination.json @@ -13,10 +13,7 @@ "value": "type_:UsernamePage" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:UsernamePage": { @@ -49,10 +46,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_users:Order": { @@ -87,10 +81,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_users:WithCursor": { @@ -111,10 +102,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_users:UserListContainer": { @@ -133,10 +121,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_users:UserPage": { @@ -164,10 +149,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_users:UserOptionalListContainer": { @@ -189,10 +171,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_users:UserOptionalListPage": { @@ -220,10 +199,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_users:UsernameContainer": { @@ -244,10 +220,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_users:ListUsersExtendedResponse": { @@ -268,10 +241,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_users:ListUsersExtendedOptionalListResponse": { @@ -292,10 +262,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_users:ListUsersPaginationResponse": { @@ -346,10 +313,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_users:Page": { @@ -396,10 +360,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_users:NextPage": { @@ -426,10 +387,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_users:User": { @@ -456,10 +414,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/path-parameters.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/path-parameters.json index cfbb010018e..13776c39935 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/path-parameters.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/path-parameters.json @@ -27,10 +27,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_user:User": { @@ -60,10 +57,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/query-parameters.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/query-parameters.json index 7eb51884568..753f320edeb 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/query-parameters.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/query-parameters.json @@ -27,10 +27,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_user:NestedUser": { @@ -55,10 +52,7 @@ "value": "type_user:User" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/reserved-keywords.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/reserved-keywords.json index 5d52d4f8acf..dd680334193 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/reserved-keywords.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/reserved-keywords.json @@ -15,10 +15,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_package:Record": { @@ -54,10 +51,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/response-property.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/response-property.json index 2c40bf9f82d..524007cd349 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/response-property.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/response-property.json @@ -15,10 +15,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:OptionalStringResponse": { @@ -58,10 +55,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_service:WithDocs": { @@ -79,10 +73,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_service:OptionalWithDocs": { @@ -122,10 +113,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_service:Response": { @@ -144,10 +132,7 @@ "value": "type_service:Movie" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/server-sent-event-examples.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/server-sent-event-examples.json index 946b0a958a9..c781292ba97 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/server-sent-event-examples.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/server-sent-event-examples.json @@ -27,10 +27,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/server-sent-events.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/server-sent-events.json index d58feb8a092..c48948e6762 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/server-sent-events.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/server-sent-events.json @@ -27,10 +27,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/simple-fhir.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/simple-fhir.json index a3d2dc424e4..f442f801e39 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/simple-fhir.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/simple-fhir.json @@ -25,10 +25,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:BaseResource": { @@ -63,10 +60,7 @@ "value": "type_:Memo" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:ResourceList": { @@ -152,10 +146,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:Patient": { @@ -195,10 +186,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:Practitioner": { @@ -228,10 +216,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:Script": { @@ -261,10 +246,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/streaming-parameter.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/streaming-parameter.json index 8033595be94..8d44679a38f 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/streaming-parameter.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/streaming-parameter.json @@ -27,10 +27,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_dummy:StreamResponse": { @@ -60,10 +57,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/streaming.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/streaming.json index 6c2bdde2051..837bc76c2d5 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/streaming.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/streaming.json @@ -27,10 +27,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/trace.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/trace.json index d640ebb93bb..e17de2b9eb7 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/trace.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/trace.json @@ -188,10 +188,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_commons:MapType": { @@ -214,10 +211,7 @@ "value": "type_commons:VariableType" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_commons:VariableValue": { @@ -573,10 +567,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_commons:MapValue": { @@ -595,10 +586,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_commons:KeyValuePair": { @@ -621,10 +609,7 @@ "value": "type_commons:VariableValue" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_commons:BinaryTreeValue": { @@ -657,10 +642,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_commons:BinaryTreeNodeValue": { @@ -705,10 +687,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_commons:BinaryTreeNodeAndTreeValue": { @@ -731,10 +710,7 @@ "value": "type_commons:BinaryTreeValue" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_commons:SinglyLinkedListValue": { @@ -767,10 +743,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_commons:SinglyLinkedListNodeValue": { @@ -805,10 +778,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_commons:SinglyLinkedListNodeAndListValue": { @@ -831,10 +801,7 @@ "value": "type_commons:SinglyLinkedListValue" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_commons:DoublyLinkedListValue": { @@ -867,10 +834,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_commons:DoublyLinkedListNodeValue": { @@ -915,10 +879,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_commons:DoublyLinkedListNodeAndListValue": { @@ -941,10 +902,7 @@ "value": "type_commons:DoublyLinkedListValue" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_commons:DebugMapValue": { @@ -963,10 +921,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_commons:DebugKeyValuePairs": { @@ -989,10 +944,7 @@ "value": "type_commons:DebugVariableValue" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_commons:TestCase": { @@ -1020,10 +972,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_commons:TestCaseWithExpectedResult": { @@ -1046,10 +995,7 @@ "value": "type_commons:VariableValue" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_commons:FileInfo": { @@ -1076,10 +1022,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_commons:Language": { @@ -1111,10 +1054,7 @@ "type": "unknown" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_lang-server:LangServerResponse": { @@ -1129,10 +1069,7 @@ "type": "unknown" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_migration:MigrationStatus": { @@ -1176,10 +1113,7 @@ "value": "type_migration:MigrationStatus" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_playlist:PlaylistId": { @@ -1216,10 +1150,7 @@ "value": "type_commons:UserId" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_playlist:PlaylistCreateRequest": { @@ -1247,10 +1178,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_playlist:UpdatePlaylistRequest": { @@ -1279,10 +1207,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_playlist:PlaylistIdNotFoundErrorBody": { @@ -1420,10 +1345,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_problem:ProblemDescription": { @@ -1442,10 +1364,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_problem:ProblemDescriptionBoard": { @@ -1529,10 +1448,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_problem:VariableTypeAndName": { @@ -1557,10 +1473,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_problem:CreateProblemRequest": { @@ -1635,10 +1548,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_problem:CreateProblemResponse": { @@ -1695,10 +1605,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_problem:CreateProblemError": { @@ -1752,10 +1659,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_problem:GetDefaultStarterFilesResponse": { @@ -1778,10 +1682,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:SubmissionId": { @@ -1885,10 +1786,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:SubmitRequestV2": { @@ -1952,10 +1850,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:WorkspaceSubmitRequest": { @@ -2000,10 +1895,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:SubmissionFileInfo": { @@ -2039,10 +1931,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:SubmissionTypeEnum": { @@ -2070,10 +1959,7 @@ "value": "type_submission:SubmissionId" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:SubmissionResponse": { @@ -2286,10 +2172,7 @@ "value": "type_submission:ExecutionSessionStatus" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:RunningResponse": { @@ -2312,10 +2195,7 @@ "value": "type_submission:RunningSubmissionState" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:RunningSubmissionState": { @@ -2361,10 +2241,7 @@ "value": "type_submission:ErrorInfo" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:ErrorInfo": { @@ -2420,10 +2297,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:RuntimeError": { @@ -2441,10 +2315,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:InternalError": { @@ -2460,10 +2331,7 @@ "value": "type_submission:ExceptionInfo" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:StoppedResponse": { @@ -2479,10 +2347,7 @@ "value": "type_submission:SubmissionId" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:WorkspaceRanResponse": { @@ -2505,10 +2370,7 @@ "value": "type_submission:WorkspaceRunDetails" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:WorkspaceRunDetails": { @@ -2546,10 +2408,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:GradedResponse": { @@ -2581,10 +2440,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:GradedResponseV2": { @@ -2614,10 +2470,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:TestCaseGrade": { @@ -2662,10 +2515,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:TestCaseNonHiddenGrade": { @@ -2712,10 +2562,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:RecordedResponseNotification": { @@ -2752,10 +2599,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:RecordingResponseNotification": { @@ -2809,10 +2653,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:LightweightStackframeInformation": { @@ -2839,10 +2680,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:TestCaseResultWithStdout": { @@ -2867,10 +2705,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:TestCaseResult": { @@ -2902,10 +2737,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:ActualResult": { @@ -3014,10 +2846,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:InvalidRequestResponse": { @@ -3040,10 +2869,7 @@ "value": "type_submission:InvalidRequestCause" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:InvalidRequestCause": { @@ -3097,10 +2923,7 @@ "value": "type_submission:SubmissionId" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:SubmissionIdNotFound": { @@ -3116,10 +2939,7 @@ "value": "type_submission:SubmissionId" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:CustomTestCasesUnsupported": { @@ -3142,10 +2962,7 @@ "value": "type_submission:SubmissionId" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:UnexpectedLanguageError": { @@ -3168,10 +2985,7 @@ "value": "type_commons:Language" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:TerminatedResponse": { @@ -3179,10 +2993,7 @@ "shape": { "type": "object", "extends": [], - "properties": [], - "extraProperties": { - "type": "unknown" - } + "properties": [] } }, "type_submission:FinishedResponse": { @@ -3198,10 +3009,7 @@ "value": "type_submission:SubmissionId" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:StdoutResponse": { @@ -3226,10 +3034,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:StderrResponse": { @@ -3254,10 +3059,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:TraceResponse": { @@ -3321,10 +3123,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:TraceResponseV2": { @@ -3395,10 +3194,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:TracedFile": { @@ -3425,10 +3221,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:ExpressionLocation": { @@ -3455,10 +3248,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:StackInformation": { @@ -3486,10 +3276,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:StackFrame": { @@ -3526,10 +3313,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:Scope": { @@ -3554,10 +3338,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:ExecutionSessionResponse": { @@ -3601,10 +3382,7 @@ "value": "type_submission:ExecutionSessionStatus" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:ExecutionSessionStatus": { @@ -3699,10 +3477,7 @@ "value": "type_v2/problem:ProblemInfoV2" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:WorkspaceSubmissionStatusV2": { @@ -3721,10 +3496,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:TestSubmissionUpdate": { @@ -3749,10 +3521,7 @@ "value": "type_submission:TestSubmissionUpdateInfo" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:TestSubmissionUpdateInfo": { @@ -3848,10 +3617,7 @@ "value": "type_submission:WorkspaceSubmissionUpdateInfo" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:WorkspaceSubmissionUpdateInfo": { @@ -3952,10 +3718,7 @@ "value": "type_submission:TestCaseGrade" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:RecordedTestCaseUpdate": { @@ -3980,10 +3743,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:WorkspaceTracedUpdate": { @@ -4001,10 +3761,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:SubmissionTypeState": { @@ -4047,10 +3804,7 @@ "value": "type_submission:WorkspaceSubmissionStatus" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:WorkspaceSubmissionStatus": { @@ -4157,10 +3911,7 @@ "value": "type_submission:TestSubmissionStatus" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:TestSubmissionStatus": { @@ -4297,10 +4048,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:TraceResponsesPage": { @@ -4332,10 +4080,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:TraceResponsesPageV2": { @@ -4367,10 +4112,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:GetTraceResponsesPageRequest": { @@ -4391,10 +4133,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:WorkspaceStarterFilesResponse": { @@ -4417,10 +4156,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:WorkspaceStarterFilesResponseV2": { @@ -4443,10 +4179,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:WorkspaceFiles": { @@ -4472,10 +4205,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:ExecutionSessionState": { @@ -4541,10 +4271,7 @@ "value": "type_submission:ExecutionSessionStatus" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:GetExecutionSessionStateResponse": { @@ -4593,10 +4320,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_submission:GetSubmissionStateResponse": { @@ -4640,10 +4364,7 @@ "value": "type_submission:SubmissionTypeState" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/problem:TestCaseTemplateId": { @@ -4773,10 +4494,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/problem:LightweightProblemInfoV2": { @@ -4820,10 +4538,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/problem:CreateProblemRequestV2": { @@ -4894,10 +4609,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/problem:TestCaseV2": { @@ -4944,10 +4656,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/problem:TestCaseExpects": { @@ -4968,10 +4677,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/problem:TestCaseImplementationReference": { @@ -5043,10 +4749,7 @@ "value": "type_v2/problem:ParameterId" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/problem:TestCaseTemplate": { @@ -5078,10 +4781,7 @@ "value": "type_v2/problem:TestCaseImplementation" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/problem:TestCaseImplementation": { @@ -5104,10 +4804,7 @@ "value": "type_v2/problem:TestCaseFunction" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/problem:TestCaseFunction": { @@ -5157,10 +4854,7 @@ "value": "type_v2/problem:AssertCorrectnessCheck" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/problem:VoidFunctionDefinition": { @@ -5186,10 +4880,7 @@ "value": "type_v2/problem:FunctionImplementationForMultipleLanguages" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/problem:Parameter": { @@ -5221,10 +4912,7 @@ "value": "type_commons:VariableType" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/problem:NonVoidFunctionDefinition": { @@ -5247,10 +4935,7 @@ "value": "type_v2/problem:FunctionImplementationForMultipleLanguages" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/problem:VoidFunctionSignature": { @@ -5269,10 +4954,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/problem:NonVoidFunctionSignature": { @@ -5298,10 +4980,7 @@ "value": "type_commons:VariableType" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/problem:VoidFunctionSignatureThatTakesActualResult": { @@ -5327,10 +5006,7 @@ "value": "type_commons:VariableType" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/problem:AssertCorrectnessCheck": { @@ -5373,10 +5049,7 @@ "value": "type_v2/problem:ParameterId" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/problem:VoidFunctionDefinitionThatTakesActualResult": { @@ -5403,10 +5076,7 @@ "value": "type_v2/problem:FunctionImplementationForMultipleLanguages" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/problem:TestCaseImplementationDescription": { @@ -5425,10 +5095,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/problem:TestCaseImplementationDescriptionBoard": { @@ -5503,10 +5170,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/problem:FunctionImplementationForMultipleLanguages": { @@ -5529,10 +5193,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/problem:FunctionImplementation": { @@ -5562,10 +5223,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/problem:GeneratedFiles": { @@ -5616,10 +5274,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/problem:CustomFiles": { @@ -5705,10 +5360,7 @@ "value": "type_v2/problem:BasicTestCaseTemplate" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/problem:Files": { @@ -5727,10 +5379,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/problem:FileInfoV2": { @@ -5775,10 +5424,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/problem:DefaultProvidedFile": { @@ -5804,10 +5450,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/problem:FunctionSignature": { @@ -5860,10 +5503,7 @@ "value": "type_v2/problem:FunctionSignature" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/problem:GetFunctionSignatureResponse": { @@ -5888,10 +5528,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/problem:GetBasicSolutionFileRequest": { @@ -5916,10 +5553,7 @@ "value": "type_v2/problem:NonVoidFunctionSignature" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/problem:GetBasicSolutionFileResponse": { @@ -5942,10 +5576,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/problem:GetGeneratedTestCaseFileRequest": { @@ -5971,10 +5602,7 @@ "value": "type_v2/problem:TestCaseV2" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/problem:GetGeneratedTestCaseTemplateFileRequest": { @@ -5990,10 +5618,7 @@ "value": "type_v2/problem:TestCaseTemplate" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/v3/problem:TestCaseTemplateId": { @@ -6123,10 +5748,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/v3/problem:LightweightProblemInfoV2": { @@ -6170,10 +5792,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/v3/problem:CreateProblemRequestV2": { @@ -6244,10 +5863,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/v3/problem:TestCaseV2": { @@ -6294,10 +5910,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/v3/problem:TestCaseExpects": { @@ -6318,10 +5931,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/v3/problem:TestCaseImplementationReference": { @@ -6393,10 +6003,7 @@ "value": "type_v2/v3/problem:ParameterId" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/v3/problem:TestCaseTemplate": { @@ -6428,10 +6035,7 @@ "value": "type_v2/v3/problem:TestCaseImplementation" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/v3/problem:TestCaseImplementation": { @@ -6454,10 +6058,7 @@ "value": "type_v2/v3/problem:TestCaseFunction" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/v3/problem:TestCaseFunction": { @@ -6507,10 +6108,7 @@ "value": "type_v2/v3/problem:AssertCorrectnessCheck" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/v3/problem:VoidFunctionDefinition": { @@ -6536,10 +6134,7 @@ "value": "type_v2/v3/problem:FunctionImplementationForMultipleLanguages" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/v3/problem:Parameter": { @@ -6571,10 +6166,7 @@ "value": "type_commons:VariableType" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/v3/problem:NonVoidFunctionDefinition": { @@ -6597,10 +6189,7 @@ "value": "type_v2/v3/problem:FunctionImplementationForMultipleLanguages" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/v3/problem:VoidFunctionSignature": { @@ -6619,10 +6208,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/v3/problem:NonVoidFunctionSignature": { @@ -6648,10 +6234,7 @@ "value": "type_commons:VariableType" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/v3/problem:VoidFunctionSignatureThatTakesActualResult": { @@ -6677,10 +6260,7 @@ "value": "type_commons:VariableType" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/v3/problem:AssertCorrectnessCheck": { @@ -6723,10 +6303,7 @@ "value": "type_v2/v3/problem:ParameterId" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/v3/problem:VoidFunctionDefinitionThatTakesActualResult": { @@ -6753,10 +6330,7 @@ "value": "type_v2/v3/problem:FunctionImplementationForMultipleLanguages" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/v3/problem:TestCaseImplementationDescription": { @@ -6775,10 +6349,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/v3/problem:TestCaseImplementationDescriptionBoard": { @@ -6853,10 +6424,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/v3/problem:FunctionImplementationForMultipleLanguages": { @@ -6879,10 +6447,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/v3/problem:FunctionImplementation": { @@ -6912,10 +6477,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/v3/problem:GeneratedFiles": { @@ -6966,10 +6528,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/v3/problem:CustomFiles": { @@ -7055,10 +6614,7 @@ "value": "type_v2/v3/problem:BasicTestCaseTemplate" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/v3/problem:Files": { @@ -7077,10 +6633,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/v3/problem:FileInfoV2": { @@ -7125,10 +6678,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/v3/problem:DefaultProvidedFile": { @@ -7154,10 +6704,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/v3/problem:FunctionSignature": { @@ -7210,10 +6757,7 @@ "value": "type_v2/v3/problem:FunctionSignature" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/v3/problem:GetFunctionSignatureResponse": { @@ -7238,10 +6782,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/v3/problem:GetBasicSolutionFileRequest": { @@ -7266,10 +6807,7 @@ "value": "type_v2/v3/problem:NonVoidFunctionSignature" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/v3/problem:GetBasicSolutionFileResponse": { @@ -7292,10 +6830,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/v3/problem:GetGeneratedTestCaseFileRequest": { @@ -7321,10 +6856,7 @@ "value": "type_v2/v3/problem:TestCaseV2" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_v2/v3/problem:GetGeneratedTestCaseTemplateFileRequest": { @@ -7340,10 +6872,7 @@ "value": "type_v2/v3/problem:TestCaseTemplate" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/ts-express-casing.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/ts-express-casing.json index 943bed1c027..327da217560 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/ts-express-casing.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/ts-express-casing.json @@ -44,10 +44,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/ts-inline-types.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/ts-inline-types.json index be312f99f23..0d3bb004612 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/ts-inline-types.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/ts-inline-types.json @@ -69,10 +69,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:RequestTypeInlineType1": { @@ -92,10 +89,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:RootType1": { @@ -170,10 +164,7 @@ "value": "type_:ReferenceType" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:RootType1FooMapValue": { @@ -201,10 +192,7 @@ "value": "type_:ReferenceType" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:RootType1FooListItem": { @@ -232,10 +220,7 @@ "value": "type_:ReferenceType" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:RootType1FooSetItem": { @@ -263,10 +248,7 @@ "value": "type_:ReferenceType" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:RootType1InlineType1": { @@ -302,10 +284,7 @@ "value": "type_:ReferenceType" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:RootType1InlineType1NestedInlineType1": { @@ -351,10 +330,7 @@ "value": "type_:ReferenceType" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:DiscriminatedUnion1": { @@ -430,10 +406,7 @@ "value": "type_:ReferenceType" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:DiscriminatedUnion1InlineType1InlineType1": { @@ -461,10 +434,7 @@ "value": "type_:ReferenceType" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:DiscriminatedUnion1InlineType2": { @@ -492,10 +462,7 @@ "value": "type_:ReferenceType" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:UndiscriminatedUnion1": { @@ -632,10 +599,7 @@ "value": "type_:ReferenceType" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:UndiscriminatedUnion1InlineType1InlineType1": { @@ -663,10 +627,7 @@ "value": "type_:ReferenceType" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:UndiscriminatedUnion1InlineType2": { @@ -694,10 +655,7 @@ "value": "type_:ReferenceType" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:InlineEnum1": { @@ -794,10 +752,7 @@ "value": "type_:ReferenceType" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:UndiscriminatedUnion1DiscriminatedUnion1InlineType1InlineType1": { @@ -825,10 +780,7 @@ "value": "type_:ReferenceType" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:UndiscriminatedUnion1DiscriminatedUnion1InlineType2": { @@ -856,10 +808,7 @@ "value": "type_:ReferenceType" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:UndiscriminatedUnion1InlineEnum1": { @@ -921,10 +870,7 @@ "value": "type_:ReferenceType" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:UndiscriminatedUnion1InlineSetItem1": { @@ -952,10 +898,7 @@ "value": "type_:ReferenceType" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:UndiscriminatedUnion1InlineMapItem1": { @@ -983,10 +926,7 @@ "value": "type_:ReferenceType" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_:ReferenceType": { @@ -1006,10 +946,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/undiscriminated-unions.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/undiscriminated-unions.json index ba0f4ef993a..6288200713d 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/undiscriminated-unions.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/undiscriminated-unions.json @@ -16,10 +16,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_union:MyUnion": { diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/unions.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/unions.json index 08d7785016a..acaa5a20ec0 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/unions.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/unions.json @@ -435,10 +435,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_types:Bar": { @@ -456,10 +453,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_union:GetShapeRequest": { @@ -477,10 +471,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_union:Shape": { @@ -545,10 +536,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } }, "type_union:Square": { @@ -566,10 +554,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/unknown.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/unknown.json index bb0fea0c9a7..276ddceb3c2 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/unknown.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/unknown.json @@ -21,10 +21,7 @@ "type": "unknown" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/validation.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/validation.json index de09c177dce..8bf9148c3e4 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/validation.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/validation.json @@ -139,10 +139,7 @@ "value": "type_:Shape" } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/version-no-default.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/version-no-default.json index cd0afb2b117..3bf5a64879e 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/version-no-default.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/version-no-default.json @@ -34,10 +34,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/version.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/version.json index cd0afb2b117..3bf5a64879e 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/version.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/version.json @@ -34,10 +34,7 @@ } } } - ], - "extraProperties": { - "type": "unknown" - } + ] } } }, diff --git a/packages/cli/register/src/ir-to-fdr-converter/convertTypeShape.ts b/packages/cli/register/src/ir-to-fdr-converter/convertTypeShape.ts index cec4d3bd395..085cbcb5f34 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/convertTypeShape.ts +++ b/packages/cli/register/src/ir-to-fdr-converter/convertTypeShape.ts @@ -311,9 +311,9 @@ function convertDouble(primitive: Ir.PrimitiveTypeV2 | undefined): FdrCjsSdk.api function convertExtraProperties( extraProperties: boolean | string | Ir.types.TypeReference -): FdrCjsSdk.api.v1.register.TypeReference { +): FdrCjsSdk.api.v1.register.TypeReference | undefined { if (typeof extraProperties === "boolean") { - return TypeReference.unknown(); + return extraProperties ? TypeReference.unknown() : undefined; } else if (typeof extraProperties === "string") { return { type: "id",