question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error converting value False to type 'AutoRest.Modeler.Model.Schema'

See original GitHub issue

Since Autorest Core 3.0.6282 was released today, my build is failing to generate c# clients. It was working fine with AutoRest 3.0.6187 and Autorest Core 3.0.6274 just a day ago.

AutoRest code generation utility [cli version: 3.0.6187; node: v12.16.1, max-memory: 8192 gb]
(C) 2018 Microsoft Corporation.
https://aka.ms/autorest
Network Enabled: true
Starting @autorest/core from /home/vsts/.autorest/@autorest_core@3.0.6274
   Loading AutoRest core      '/home/vsts/.autorest/@autorest_core@3.0.6274/node_modules/@autorest/core/dist' (3.0.6274)
   Installing AutoRest extension '@microsoft.azure/autorest.csharp' (2.3.82)
   Installed AutoRest extension '@microsoft.azure/autorest.csharp' (2.3.82->2.3.82)
   Installing AutoRest extension '@microsoft.azure/autorest.modeler' (2.3.55)
   Installed AutoRest extension '@microsoft.azure/autorest.modeler' (2.3.55->2.3.55)

The error I’m receiving is:

AutoRest code generation utility [cli version: 3.0.6187; node: v12.16.1, max-memory: 8192 gb]
(C) 2018 Microsoft Corporation.
https://aka.ms/autorest
Network Enabled: true
Starting @autorest/core from /home/vsts/.autorest/@autorest_core@3.0.6282
   Loading AutoRest core      '/home/vsts/.autorest/@autorest_core@3.0.6282/node_modules/@autorest/core/dist' (3.0.6282)
   Installing AutoRest extension '@microsoft.azure/autorest.csharp' (2.3.82)
   Installed AutoRest extension '@microsoft.azure/autorest.csharp' (2.3.82->2.3.82)
   Installing AutoRest extension '@microsoft.azure/autorest.modeler' (2.3.55)
   Installed AutoRest extension '@microsoft.azure/autorest.modeler' (2.3.55->2.3.55)
...
DEBUG [11.34 s]: openapi-document/compose - END [0.27 s]
DEBUG [11.35 s]: openapi-document/identity - START inputs = 1
DEBUG [11.35 s]: openapi-document/identity - END [0 s]
DEBUG [11.35 s]: csharp/imodeler1 - START inputs = 1
FATAL: Error parsing swagger file. Error converting value False to type 'AutoRest.Modeler.Model.Schema'. Path 'components.schemas.AdditionalGroupRoleAssignment.additionalProperties', line 1, position 211194.
FATAL: AutoRest.Core.Logging.CodeGenerationException: Error parsing swagger file. Error converting value False to type 'AutoRest.Modeler.Model.Schema'. Path 'components.schemas.AdditionalGroupRoleAssignment.additionalProperties', line 1, position 211194.
   at AutoRest.Modeler.SwaggerParser.Parse(String swaggerDocument) in /opt/vsts/work/1/s/src/SwaggerParser.cs:line 52
   at AutoRest.Modeler.Program.<ProcessInternal>d__2.MoveNext() in /opt/vsts/work/1/s/src/Program.cs:line 58
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at NewPlugin.<Process>d__15.MoveNext()
C:\Users\Bernarden\.autorest\@autorest_core@3.0.6282\node_modules\@autorest\core\dist\lib\pipeline\pipeline.js - FAILURE {}
Process() cancelled due to exception : Plugin imodeler1 reported failure. / Error: Plugin imodeler1 reported failure.
    at C:\Users\Bernarden\.autorest\@autorest_core@3.0.6282\node_modules\@autorest\core\dist\lib\pipeline\plugins\external.js:26:19
    at async ScheduleNode (C:\Users\Bernarden\.autorest\@autorest_core@3.0.6282\node_modules\@autorest\core\dist\lib\pipeline\pipeline.js:294:33)
  Error: Plugin imodeler1 reported failure.
[13.39 s] Shutting Down.
[13.39 s] Exiting.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:20
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
bernardencommented, May 11, 2020

Yeah. There are additionalProperties: false in my swagger definition but as I mentioned above this became an issue only after @autorest/core 3.0.6282 was released. I fixed my immediate issue by adding --version=3.0.6274 to the list of autorest arguments.

2reactions
thisisthekapcommented, Jun 22, 2020

Also experiencing this issue with 3.0.6282.

3.0.6274 is working just fine.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix Autorest Problems when Generating Client ... - Angela Evans
Problem 1 – FATAL: Error parsing swagger file. Error converting value False to type 'AutoRest.Modeler.Model.Schema'.
Read more >
Autorest - Error generating client class for Squidex Api - Support
Output: Error parsing swagger file. Error converting value False to type 'AutoRest.Modeler.Model.Schema'. Path 'components.schemas.UsersDto.
Read more >
AutoRest from Swagger Documentation - IEnumerable<long ...
The important thing is to set "x-nullable": false , which overrides the default behavior of going nullable (expecting the worst from server ...
Read more >
Evolve- Error0 ModelError "Error converting Value \"\" to type ...
Description -Save and route doesn't work on saved draft-How to reproduce error message1.Open form and fill it2.Save as draft3.Open...
Read more >
IBM Cognos Analytics Version 11.1: Managing User Guide
Set the paUseFillerMember enabled attribute value to false to turn the Filler Member ... The AUTOREST schema appears in the list, confirming that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found