Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dsinghvi committed Jul 11, 2024
1 parent 0c13260 commit c2e6ef4
Show file tree
Hide file tree
Showing 18 changed files with 11 additions and 1,500 deletions.
11 changes: 7 additions & 4 deletions packages/cli/generation/ir-generator/src/filterExamples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,18 @@ function filterExampleTypeReference({
)
}),
optional: (o) => {
const innerOption =
const filteredOptionalTypReference =
o.optional != null
? filterExampleTypeReference({ filteredIr, exampleTypeReference: o.optional })
: o.optional;
return innerOption != null
: undefined;
return filteredOptionalTypReference != null
? {
...exampleTypeReference,
shape: ExampleTypeReferenceShape.container(
ExampleContainer.optional({ ...o, valueType: o.valueType })
ExampleContainer.optional({
optional: filteredOptionalTypReference,
valueType: o.valueType
})
)
}
: undefined;
Expand Down
2 changes: 1 addition & 1 deletion packages/ir-sdk/fern/apis/ir-types-latest/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
51.0.0
50.1.0
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [v51.0.0] - 2024-07-10
## [v50.1.0] - 2024-07-10 **Optionals present**

- Improvement: Add `TypeReference`s to `ExampleContainer` types, especially helpful in the case of empty container
examples. These `TypeReference`s are being added as optional but should be made required in v52.
- Improvement: Add `TypeReference`s to `ExampleContainer` types, especially helpful in the case of empty container
examples. These `TypeReference`s are being added as optional but should be made required in v51.

## [v50.0.0] - 2024-06-20

Expand Down
1 change: 0 additions & 1 deletion packages/ir-sdk/fern/apis/ir-types-v50/VERSION

This file was deleted.

86 changes: 0 additions & 86 deletions packages/ir-sdk/fern/apis/ir-types-v50/changelog/CHANGELOG.md

This file was deleted.

3 changes: 0 additions & 3 deletions packages/ir-sdk/fern/apis/ir-types-v50/definition/api.yml

This file was deleted.

98 changes: 0 additions & 98 deletions packages/ir-sdk/fern/apis/ir-types-v50/definition/auth.yml

This file was deleted.

89 changes: 0 additions & 89 deletions packages/ir-sdk/fern/apis/ir-types-v50/definition/commons.yml

This file was deleted.

This file was deleted.

39 changes: 0 additions & 39 deletions packages/ir-sdk/fern/apis/ir-types-v50/definition/environment.yml

This file was deleted.

Loading

0 comments on commit c2e6ef4

Please sign in to comment.