fern-api / fern

Input OpenAPI. Output SDKs and Docs.
https://buildwithfern.com
Apache License 2.0
2.65k stars 144 forks source link

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

Open cwcowell opened 3 weeks ago

cwcowell commented 3 weeks ago

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 commented 1 week ago

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

image