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

Internal swagger structures doesn't support recursive schema definitions #223

Closed
sashaozz opened this issue Mar 20, 2016 · 1 comment
Closed
Assignees
Labels
bug A bug to fix
Milestone

Comments

@sashaozz
Copy link

Generating RestApi documentation in docfx 1.6.1 results in
Error:System.AggregateException: One or more errors occurred. ---> Newtonsoft.Json.JsonSerializationException: Self referencing loop detected with type 'Microsoft.DocAsCode.EntityModel.Swagger.Internal.SwaggerObject'. Path ''.
for the following type in definitions because of self-referencing field InnerException

"ApiExceptionError": {
            "description": "Ошибка времени выполнения (run-time exception)",
            "type": "object",
            "properties": {
                "ExceptionMessage": {
                    "description": "Сообщение",
                    "type": "string"
                },
                "StackTrace": {
                    "description": "StackTrace",
                    "type": "string"
                },
                "ExceptionType": {
                    "description": "Тип исключения",
                    "type": "string"
                },
                "InnerException": {
                    "$ref": "#/definitions/ApiExceptionError",
                    "description": "InnerException"
                },
                "Message": {
                    "description": "Сообщение",
                    "type": "string"
                },
                "ReasonCode": {
                    "description": "Код ошибки",
                    "type": "string"
                },
                "UserMessage": {
                    "description": "Пользовательское сообщение",
                    "type": "string"
                }
            }
        }
@vicancy vicancy added the bug A bug to fix label Apr 11, 2016
@hellosnow hellosnow self-assigned this Jun 13, 2016
@chenkennt chenkennt added this to the v2.2 milestone Jun 30, 2016
@hellosnow
Copy link
Contributor

@sashaozz we fixed via #453 #464 , DocFX supports swagger recursive reference now.

The code is already in dev branch, will release at July 18th.

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

No branches or pull requests

4 participants