-
-
Notifications
You must be signed in to change notification settings - Fork 278
Array index in $ref #450
Copy link
Copy link
Closed
Labels
✨ enhancementNew feature or improvementNew feature or improvement🍭 OpenAPI ComplianceSupporting a new bit of the OpenAPI specSupporting a new bit of the OpenAPI spec
Metadata
Metadata
Assignees
Labels
✨ enhancementNew feature or improvementNew feature or improvement🍭 OpenAPI ComplianceSupporting a new bit of the OpenAPI specSupporting a new bit of the OpenAPI spec
Type
Fields
Give feedbackNo fields configured for issues without a type.
Describe the bug
The generator doesn't seem to support array indices in
$ref.To Reproduce
Expected behavior
The following
$refshould resolve to the parameter's schema.OpenAPI Spec File
{ "openapi": "3.0.1", "info": { "title": "Bug", "version": "1.0" }, "paths": { "/alarms": { "post": { "parameters": [ { "name": "X-ID", "in": "header", "schema": { "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "$ref": "#/paths/~1alarms/post/parameters/0/schema" } } } } } }, "responses": { } } } } }Desktop (please complete the following information):