Array index in $ref #835
                  
                    
                      Yamakaky
                    
                  
                
                  started this conversation in
                Feature request
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
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):
Beta Was this translation helpful? Give feedback.
All reactions