Skip to content

Commit

Permalink
fix(cli): remove default float min max (#5258)
Browse files Browse the repository at this point in the history
* use convertDouble for float conversion

* update snapshot tests

* update cli version

* chore: update changelog

---------

Co-authored-by: fern-bot <[email protected]>
  • Loading branch information
RohinBhargava and fern-bot authored Nov 22, 2024
1 parent df3f3fb commit a3a4c2f
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 50 deletions.
4 changes: 4 additions & 0 deletions fern/pages/changelogs/cli/2024-11-22.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## 0.45.0-rc54
**`(internal):`** Removes errant minimum and maximums for 'float' types for docs.


7 changes: 7 additions & 0 deletions packages/cli/cli/versions.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
- changelogEntry:
- summary: |
Removes errant minimum and maximums for 'float' types for docs.
type: internal
irVersion: 53
version: 0.45.0-rc54

- changelogEntry:
- summary: |
Add support for the `smart-casing` flags in the IR commands.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@
"itemType": {
"type": "primitive",
"value": {
"type": "double",
"minimum": 2.2250738585072014e-308,
"maximum": 1.7976931348623157e+308,
"default": 0
"type": "double"
}
}
}
Expand Down Expand Up @@ -111,10 +108,7 @@
"itemType": {
"type": "primitive",
"value": {
"type": "double",
"minimum": 2.2250738585072014e-308,
"maximum": 1.7976931348623157e+308,
"default": 0
"type": "double"
}
}
}
Expand Down Expand Up @@ -215,10 +209,7 @@
"itemType": {
"type": "primitive",
"value": {
"type": "double",
"minimum": 2.2250738585072014e-308,
"maximum": 1.7976931348623157e+308,
"default": 0
"type": "double"
}
}
}
Expand Down Expand Up @@ -371,10 +362,7 @@
"itemType": {
"type": "primitive",
"value": {
"type": "double",
"minimum": 2.2250738585072014e-308,
"maximum": 1.7976931348623157e+308,
"default": 0
"type": "double"
}
}
}
Expand Down Expand Up @@ -548,10 +536,7 @@
"itemType": {
"type": "primitive",
"value": {
"type": "double",
"minimum": 2.2250738585072014e-308,
"maximum": 1.7976931348623157e+308,
"default": 0
"type": "double"
}
}
}
Expand All @@ -565,10 +550,7 @@
"itemType": {
"type": "primitive",
"value": {
"type": "double",
"minimum": 2.2250738585072014e-308,
"maximum": 1.7976931348623157e+308,
"default": 0
"type": "double"
}
}
}
Expand Down Expand Up @@ -1507,10 +1489,7 @@
"itemType": {
"type": "primitive",
"value": {
"type": "double",
"minimum": 2.2250738585072014e-308,
"maximum": 1.7976931348623157e+308,
"default": 0
"type": "double"
}
}
}
Expand Down Expand Up @@ -1701,10 +1680,7 @@
"itemType": {
"type": "primitive",
"value": {
"type": "double",
"minimum": 2.2250738585072014e-308,
"maximum": 1.7976931348623157e+308,
"default": 0
"type": "double"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,7 @@
"itemType": {
"type": "primitive",
"value": {
"type": "double",
"minimum": 2.2250738585072014e-308,
"maximum": 1.7976931348623157e+308,
"default": 0
"type": "double"
}
}
}
Expand Down Expand Up @@ -244,10 +241,7 @@
"itemType": {
"type": "primitive",
"value": {
"type": "double",
"minimum": 2.2250738585072014e-308,
"maximum": 1.7976931348623157e+308,
"default": 0
"type": "double"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,7 @@
"valueType": {
"type": "primitive",
"value": {
"type": "double",
"minimum": 2.2250738585072014e-308,
"maximum": 1.7976931348623157e+308,
"default": 0
"type": "double"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,12 +196,7 @@ export function convertTypeReference(irTypeReference: Ir.types.TypeReference): F
float: () => {
// TODO: Add support for float types in FDR. We render them as double for now
// (they have the same JSON representation).
return {
type: "double",
minimum: 2.2250738585072014e-308,
maximum: 1.7976931348623157e308,
default: 0.0
};
return convertDouble(primitive.v2);
},
double: () => {
return convertDouble(primitive.v2);
Expand Down

0 comments on commit a3a4c2f

Please sign in to comment.