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

[Bug] fern check reports false warnings on parameters of type array #4769

Open
cwcowell opened this issue Sep 27, 2024 · 1 comment
Open
Assignees

Comments

@cwcowell
Copy link
Contributor

Describe the bug

fern check reports false warnings when openapi.yaml defines a parameter of array type

To reproduce

  1. Run fern check on a project with the openapi.yaml file below
  2. See the same warning twice in output. One is for docs, one is for api, but both concern the array parameter: Expected a primitive example but got array for query parameter ids for DELETE /v2/conversations
openapi: 3.0.0
info:
  title: Dummy API
  version: 1.0.0
paths:
  /v2/conversations:
    delete:
      operationId: deleteConversations
      parameters:
        - name: ids
          in: query
          required: true
          style: form
          explode: false
          schema:
            type: array
            items:
              type: integer
      responses:
        '204':
          description: Conversations deleted successfully.

Expected behavior

No warnings emitted by fern check

CLI Version

0.43.5

@cwcowell
Copy link
Contributor Author

cwcowell commented Oct 8, 2024

@dsinghvi Is there a way to suppress warnings until this is fixed, so we can declutter output from fern docs dev?

image

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

2 participants