Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

property of type “float” renders as “double" #6074

Open
cwcowell opened this issue Feb 19, 2025 · 1 comment
Open

property of type “float” renders as “double" #6074

cwcowell opened this issue Feb 19, 2025 · 1 comment
Assignees

Comments

@cwcowell
Copy link
Contributor

cwcowell commented Feb 19, 2025

Which Fern component?

Fern Docs

How urgent is this?

P2 - Medium (Would be helpful)

What's the issue?

  1. 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.
  2. 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: object
      properties:
        page_number:
          oneOf:
            - type: integer
            - type: number
              format: float
          description: The number of the page referenced in the source document.

Rendered schema:

Image

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 the number type to double?

Just a thought.

Are you interested in contributing a fix?

No

@dsinghvi
Copy link
Member

@cwcowell eden is actually actively tackling this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants