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
The parameters that go in the body of endpoints should not be present if they are read-only.
Currently, this is not true when the parameter is defined as type: array and readOnly: true.
Expected behavior
When the parameter is defined with type: array and readOnly: true should not be in the body.
Current behavior
The parameters defined as type: array and readOnly: true are in the body.
For example:
The result is:
Possible solution
In the endpoints, if a parameter is defined as an type: array and readOnly: true, they should not be in the body.
Steps to reproduce
Define and endpoint with a parameter that goes in the body and is defined as type: array and readOnly: true
Render the documentation with the plugin
The parameter appears in the body.
Your Environment
Version used: Plugin version is 2.1.3
Environment name and version: Chrome 123.0.6312.124, node.js 20.12.2
Operating System and version: Mac
The text was updated successfully, but these errors were encountered:
JaimeOVasconcelos
changed the title
Properties that are defined as an array and read-only shouldn't be displayed in the body
Parameters that are defined as an array and read-only shouldn't be displayed in the body
Apr 20, 2024
Describe the bug
The parameters that go in the body of endpoints should not be present if they are read-only.
Currently, this is not true when the parameter is defined as
type: array
andreadOnly: true
.Expected behavior
When the parameter is defined with
type: array
andreadOnly: true
should not be in the body.Current behavior
The parameters defined as
type: array
andreadOnly: true
are in the body.For example:
The result is:
Possible solution
In the endpoints, if a parameter is defined as an
type: array
andreadOnly: true
, they should not be in the body.Steps to reproduce
type: array
andreadOnly: true
Your Environment
Version used: Plugin version is 2.1.3
Environment name and version: Chrome 123.0.6312.124, node.js 20.12.2
Operating System and version: Mac
The text was updated successfully, but these errors were encountered: