Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Bug in method 'convertModel', for detecting circular reference #25

Closed
nevill opened this issue Dec 9, 2013 · 2 comments
Closed

Bug in method 'convertModel', for detecting circular reference #25

nevill opened this issue Dec 9, 2013 · 2 comments

Comments

@nevill
Copy link

nevill commented Dec 9, 2013

The way to reproduce the bug:

  • Change the file test/fixtures/complexApi.yml to add following attributes to model User

    familyAdress:
      type: Address
    officeAdresses:
      type: array
      items:
        $ref: Address
  • Run npm test or cake test, will output

 1) API generation tests given a configured server with complex models "before all" hook:
Error: Failed to analyze descriptor: Error: Circular reference detected: User > Address > Address
Error: Circular reference detected: User > Address > Address
@nevill
Copy link
Author

nevill commented Jun 24, 2014

It works! Thank you @simonlopez 👍

@simonlopez
Copy link
Contributor

@nevill you're welcome! :)

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

No branches or pull requests

2 participants