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

Comments

Projects
None yet
4 participants
@sashaozz

sashaozz commented Mar 20, 2016

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 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

This comment has been minimized.

Show comment
Hide comment
@hellosnow

hellosnow Jul 6, 2016

Collaborator

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

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

Collaborator

hellosnow commented Jul 6, 2016

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

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

@hellosnow hellosnow closed this Jul 6, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment