parameters defined by reference not showing after import on smartdocs

Hi

I am using smart docs to import a swagger definition into developer portal/smartdocs. The api has parameters that are passed in the query and these are defined in the swagger file that I upload by reference. However, the parameters do not appear in the rendered page. They are also not there if I try and edit the node in the developer portal. The parameters are mentoned if I export the model from developer portal but only as references

A snippet of my swagger file is

paths:
  /search:
    # binds a127 app logic to a route
    x-swagger-router-controller: search
    get:
      description: Returns data from search
      # used as the method name of the controller
      operationId: search
      parameters:
        - $ref: '#/parameters/image'
        - $ref: '#/parameters/latitude'
.....

parameters:
  image:
    name: image
    in: query
    type: "string"
    required: true
  latitude:
    name: latitude
    type: "string"
    in: query
    required: false

This works if the paramatars are not defined as a reference

0 3 297
3 REPLIES 3

Hi @anthony.brown@johnlewis.co.uk,

I'm unable to recreate this problem. I used your parameters to create an example spec (note: I added descriptions to parameters): http://playground.apistudio.io/55f5e14b-24ac-4c61-8826-79b2406706d6/spec

And this is what it renders (note the two referenced parameters appear):

2233-new-apigee-site-hello.png

I hope that helps or at least encourages you,

Marsh

Hi @marshg@google.com,

I have tried this. But it does not work. Could you please help me out. I still see only one field which is Content type. Please have a look at following screenshot.

ref-parameter-issue.png

I'm experiencing the same issue with SmartDocs on my portal. Parameters just don't seem to show up half the time. Is there some script I have to run or caches to clear in order to see it?