parse will throw stack overflow
for example, i am trying to parse https://github.com/Microsoft/OpenAPI.NET.OData/blob/master/docs/oas3_0_0/graph.beta.json, and it will throw stack overflow.
Thanks for the report. We will investigate.
I give a detail here , if we have circular reference in the definition, it can be easy reproduced. So hope you can resolve this issues.
microsoft.graph.schemaExtension:
allOf:
-
title: "schemaExtension"
type: "object"
properties:
description:
type: "string"
nullable: true
targetTypes:
type: "array"
items:
type: "string"
status:
type: "string"
owner:
type: "string"
child:
$ref: "#/components/schemas/microsoft.graph.schemaExtension"
@PerthCharern @darrelmiller Would you please take a look?
@xuzhg Working on a fix now.
More samples with Stack Overflow:
- https://api.apis.guru/v2/specs/amazonaws.com/ce/2017-10-25/swagger.json
- https://api.apis.guru/v2/specs/amazonaws.com/elasticmapreduce/2009-03-31/swagger.json
- https://api.apis.guru/v2/specs/amazonaws.com/ssm/2014-11-06/swagger.json
- https://api.apis.guru/v2/specs/amazonaws.com/streams.dynamodb/2012-08-10/swagger.json
- https://api.apis.guru/v2/specs/azure.com/batch-BatchManagement/2017-09-01/swagger.json
- https://api.apis.guru/v2/specs/azure.com/devtestlabs-DTL/2015-05-21-preview/swagger.json
- https://api.apis.guru/v2/specs/azure.com/dns/2016-04-01/swagger.json
- https://api.apis.guru/v2/specs/azure.com/machinelearning-webservices/2016-05-01-preview/swagger.json
- https://api.apis.guru/v2/specs/azure.com/machinelearningcompute-machineLearningCompute/2017-06-01-preview/swagger.json
- https://api.apis.guru/v2/specs/azure.com/msi-ManagedIdentity/2015-08-31-preview/swagger.json
- https://api.apis.guru/v2/specs/azure.com/recoveryservicessiterecovery-service/2016-08-10/swagger.json
- https://api.apis.guru/v2/specs/azure.com/resources/2016-02-01/swagger.json
- https://api.apis.guru/v2/specs/azure.com/resources/2016-09-01/swagger.json
- https://api.apis.guru/v2/specs/azure.com/resources/2017-05-10/swagger.json
- https://api.apis.guru/v2/specs/azure.com/search/2015-08-19/swagger.json
- https://api.apis.guru/v2/specs/azure.com/timeseriesinsights/2017-11-15/swagger.json
- https://api.apis.guru/v2/specs/azure.com/trafficmanager-trafficmanageranalytics/2017-09-01-preview/swagger.json
- https://api.apis.guru/v2/specs/azure.com/trafficmanager/2017-03-01/swagger.json
- https://api.apis.guru/v2/specs/azure.com/trafficmanager/2017-05-01/swagger.json
- https://api.apis.guru/v2/specs/cybertaxonomy.eu/1.0/swagger.json
- https://api.apis.guru/v2/specs/ebay.com/commerce-taxonomy/v1_beta.1.0/swagger.jsons
- https://api.apis.guru/v2/specs/getsandbox.com/v1/swagger.json
- https://api.apis.guru/v2/specs/googleapis.com/adsense/v1.3/swagger.json
- https://api.apis.guru/v2/specs/googleapis.com/androidmanagement/v1/swagger.json
- https://api.apis.guru/v2/specs/googleapis.com/bigquery/v2/swagger.json
- https://api.apis.guru/v2/specs/googleapis.com/civicinfo/v2/swagger.json
- https://api.apis.guru/v2/specs/googleapis.com/serviceconsumermanagement/v1/swagger.json
- https://api.apis.guru/v2/specs/googleapis.com/servicemanagement/v1/swagger.json
- https://api.apis.guru/v2/specs/googleapis.com/serviceuser/v1/swagger.json
- https://api.apis.guru/v2/specs/googleapis.com/slides/v1/swagger.json
- https://api.apis.guru/v2/specs/googleapis.com/spanner/v1/swagger.json
- https://api.apis.guru/v2/specs/googleapis.com/surveys/v2/swagger.json
- https://api.apis.guru/v2/specs/microsoft.com/cognitiveservices-EntitySearch/1.0/swagger.json
- https://api.apis.guru/v2/specs/microsoft.com/cognitiveservices-ImageSearch/1.0/swagger.json
- https://api.apis.guru/v2/specs/microsoft.com/cognitiveservices-NewsSearch/1.0/swagger.json
- https://api.apis.guru/v2/specs/microsoft.com/cognitiveservices-WebSearch/1.0/swagger.json
- https://api.apis.guru/v2/specs/tfl.gov.uk/v1/swagger.json
- https://eaccountingapi-sandbox.test.vismaonline.com/swagger/docs/v2
@darrelmiller Cloud you please give us a ETA to fix this issues? we are blocking with this issue, thanks.
@partychen Hopefully by Friday.
@darrelmiller will you release a beta version for this fix? If released please @me, thanks.
@partychen Yes we will. I'm not going to make it today, but progress is good. I'll ping you on Monday.
@darrelmiller looking forwards to the updates. We're testing against graph team's OpenAPI before a up-coming deadline but are blocked by this issue. Therefore we need to remove the recursive reference manually every time we tested. Please let us know once it's fixed, or how we can help on that. Thanks! 😄
@darrelmiller Any progress update/ETA on this issue? Thanks
@jjohs Yes the fix was merged in yesterday and the latest beta nuget has the fix.