Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deeper reference does not work #82

Open
piotrjozwiak opened this issue Jul 6, 2017 · 0 comments
Open

Deeper reference does not work #82

piotrjozwiak opened this issue Jul 6, 2017 · 0 comments

Comments

@piotrjozwiak
Copy link

piotrjozwiak commented Jul 6, 2017

Hi guys
I have litte problem with references, which are working fine on swaggerhub editor.

When I do reference somenthing like this:

definitions:

  my_response:
    description: Successful response schema
    properties:
      result:
        type: string
        example: 1
      err_code:
        $ref: "#/definitions/my_error_codes"

it works but when I try to reference to exact property of other definiton like this:

my_response:
   description: Successful response schema
   properties:
     result:
       type: string
       example: 1
     err_code:
       $ref: "#/definitions/my_error_codes/properties/err_code"

I have got error in google chrome browser:

Uncaught TypeError: Cannot read property 'definition' of undefined
    at addReference (operation.js:314)
    at primitiveToHTML (operation.js:334)
    at operation.js:550
    at createHybridWrapper.js:71
    at initCloneByTag.js:18
    at baseForOwn (composeArgs.js:19)
    at initCloneArray.js:12
    at baseMap (createHybridWrapper.js:70)
    at Object.map (baseIndexOf.js:26)
    at processModel (operation.js:527)

Can you fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant