You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the option showObjectSchemaExamples set to true, I only see Example: [object Object] in the description for objects. Other examples, like strings, render fine.
I expected the provided examples for properties of type object to be rendered out.
Example OpenAPI schema
openapi: 3.1.0info:
title: Minimal POST APIversion: 1.0.0paths:
/example:
post:
summary: Example requestrequestBody:
required: truecontent:
application/json:
schema:
type: objectdescription: Request bodyproperties:
config:
type: objectdescription: Config objectexample:
language: Germanmode: slowproperties:
language:
type: stringdescription: Language settingmode:
type: stringenum:
- fast
- normal
- slowresponses:
"200":
description: Success
Screenshots
Additional context
While for objects with defined properties, I can just provide the examples with the properties,
but for objects that accept additionalProperties, it'll be difficult.
The text was updated successfully, but these errors were encountered:
Describe the bug
With the option
showObjectSchemaExamples
set to true, I only seeExample: [object Object]
in the description for objects. Other examples, like strings, render fine.Used [email protected].
Expected behavior
I expected the provided examples for properties of type object to be rendered out.
Example OpenAPI schema
Screenshots
Additional context
While for objects with defined properties, I can just provide the examples with the properties,
but for objects that accept
additionalProperties
, it'll be difficult.The text was updated successfully, but these errors were encountered: