Closed csmorley closed 1 year ago
As an update, also using autorest https://github.com/Azure/autorest and get the following:
C:\Users\chris\etc\src>autorest --input-file=swagger.json --csharp --out-folder=client --namespace PolygonIo.WebApi
WARNING: AutoRest has not been tested with Node versions greater than v13.
AutoRest code generation utility [cli version: 3.0.6187; node: v14.4.0, max-memory: 8192 gb]
(C) 2018 Microsoft Corporation.
https://aka.ms/autorest
NOTE: AutoRest core version selected from configuration: ~2.0.4413.
Loading AutoRest core 'C:\Users\chris\.autorest\@microsoft.azure_autorest-core@2.0.4417\node_modules\@microsoft.azure\autorest-core\dist' (2.0.4417)
Loading AutoRest extension '@microsoft.azure/autorest.csharp' (~2.3.79->2.3.84)
Loading AutoRest extension '@microsoft.azure/autorest.modeler' (2.3.55->2.3.55)
ERROR: Schema violation: Data does not match any schemas from 'oneOf'
- file:///C:/Users/chris/etc/src/swagger.json:1:74681 ($.paths["/v1/open-close/crypto/{from}/{to}/{date}"].get.responses["200"])
ERROR: Schema violation: Data does not match any schemas from 'oneOf'
- file:///C:/Users/chris/etc/src/swagger.json:1:73360 ($.paths["/v1/last/crypto/{from}/{to}"].get.responses["200"])
ERROR: Schema violation: Data does not match any schemas from 'oneOf'
- file:///C:/Users/chris/etc/src/swagger.json:1:54524 ($.paths["/v2/aggs/ticker/{ticker}/range/{multiplier}/{timespan}/{from}/{to}"].get.parameters)
ERROR: Schema violation: Additional properties not allowed: schema
- file:///C:/Users/chris/etc/src/swagger.json:1:18197 ($.definitions.AnalystRatings.properties.strongSell)
ERROR: Schema violation: Additional properties not allowed: schema
- file:///C:/Users/chris/etc/src/swagger.json:1:18102 ($.definitions.AnalystRatings.properties.sell)
ERROR: Schema violation: Additional properties not allowed: schema
- file:///C:/Users/chris/etc/src/swagger.json:1:18016 ($.definitions.AnalystRatings.properties.hold)
ERROR: Schema violation: Additional properties not allowed: schema
- file:///C:/Users/chris/etc/src/swagger.json:1:17923 ($.definitions.AnalystRatings.properties.buy)
ERROR: Schema violation: Additional properties not allowed: schema
- file:///C:/Users/chris/etc/src/swagger.json:1:17826 ($.definitions.AnalystRatings.properties.strongBuy)
FATAL: swagger-document/individual/schema-validator - FAILED
FATAL: Error: [OperationAbortedException] Error occurred. Exiting.
Process() cancelled due to exception : [OperationAbortedException] Error occurred. Exiting.
I am trying to generate TypeScript and C# clients with: https://polygon.io/docs/swagger.json
Per https://editor.swagger.io/ I get a stack of errors: