You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write an openapi.yaml that defines components / schemas / sourcePage. Within that schema, define a property called page_number that specifies multiple types, one of which is type: number and format: float.
On the rendered page, that schema definition says the property has type “double” and not “float”.
Sample snippet from openapi.yaml that includes the schema described above:
sourcePage:
type: objectproperties:
page_number:
oneOf:
- type: integer
- type: numberformat: floatdescription: The number of the page referenced in the source document.
Which Fern component?
Fern Docs
How urgent is this?
P2 - Medium (Would be helpful)
What's the issue?
openapi.yaml
that definescomponents
/schemas
/sourcePage
. Within that schema, define a property calledpage_number
that specifies multiple types, one of which istype: number
andformat: float
.Sample snippet from
openapi.yaml
that includes the schema described above:Rendered schema:
Workaround
none found
Logs & Additional Context
I wonder if this is related to #5160 ?
Maybe it’s rendering “double” because it’s ignoring the
format: float
in the spec (as described in #5160), and converting thenumber
type todouble
?Just a thought.
Are you interested in contributing a fix?
No
The text was updated successfully, but these errors were encountered: