redoc icon indicating copy to clipboard operation
redoc copied to clipboard

No "type" specified at "/paths/~1test/post/parameters/0". Automatically detected: "object"

Open fish-train opened this issue 3 years ago • 2 comments

Hi!

I used OpenAPI 3.0.1,

I have a warning for parametres with type "integer", "string" and etc:

No "type" specified at "/paths/~1test/post/parameters/0". Automatically detected: "object"

For examle:

- name: projectId in: query required: true schema: type: integer format: int64

fish-train avatar Jul 21 '21 11:07 fish-train

Hello !

This comes from the default used version of redoc being rather old. As suggested by https://github.com/sphinx-contrib/redoc/issues/39 it is possible to manually override it by adding this in your configuration file :

redoc_uri = 'https://unpkg.com/[email protected]/bundles/redoc.standalone.js'

This fixed the issue for me :partying_face:

remi-dupre avatar Dec 20 '23 08:12 remi-dupre

Hi!

I am using this:

redoc_uri = 'https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js'

fish-train avatar Dec 20 '23 10:12 fish-train