fern
fern copied to clipboard
[Bug] `fern check` reports false warnings on parameters of type `array`
Describe the bug
fern check reports false warnings when openapi.yaml defines a parameter of array type
To reproduce
- Run
fern checkon a project with theopenapi.yamlfile below - 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