I have…
- [ ] Checked the logs and have provided the logs if I found something suspicious there
I’m submitting a…
- [ ] Regression (a behavior that stopped working in a new release)
- [ ] Bug report
- [ ] Performance issue
- [ ] Documentation issue or request
- [ X ] Community Support Request
Current behavior
Expected behavior
Minimal reproduction of the problem
Go to https://domainname/api/content/app/swagger/v1/swagger.json
Download
Use swagger with Autorest :
autorest --v3 --csharp --namespace=Fileshare.API --add-credentials --input-file=“swagger.json” --output-folder=“temp” --debug --verbose
AutoRest code generation utility [cli version: 3.0.6163; node: v12.14.1, max-memory: 8192 gb]
© 2018 Microsoft Corporation.
Output:
Error parsing swagger file. Error converting value False to type ‘AutoRest.Modeler.Model.Schema’. Path ‘components.schemas.UsersDto.additionalProperties’, line 1, position 352280.
FATAL: AutoRest.Core.Logging.CodeGenerationException: Error parsing swagger file. Error converting value False to type ‘AutoRest.Modeler.Model.Schema’. Path ‘components.schemas.UsersDto.additionalProperties’, line 1, position 352280.
Environment
- [ ] Self hosted with docker
- [ X ] Self hosted with IIS
- [ ] Self hosted with other version
- [ ] Cloud version
Version: [4.1.0.0]
Browser:
- [ X ] Chrome (desktop)
- [ ] Chrome (Android)
- [ ] Chrome (iOS)
- [ ] Firefox
- [ ] Safari (desktop)
- [ ] Safari (iOS)
- [ ] IE
- [ ] Edge
Others:
Does anyone have any experience while using Autorest and the Squidex API swagger ?
I can’t manage to generate the client classes by any form… Used Nswag also without success, the generation finalizes but the output .cs file has alot of compile errors (base classes defined has abstract for example) and personally I prefer the AutoRest implementation of the clients.