Skip to content
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

AutoRest Generation throws error #4691

Open
2 tasks
rbandi124 opened this issue May 2, 2024 · 0 comments
Open
2 tasks

AutoRest Generation throws error #4691

rbandi124 opened this issue May 2, 2024 · 0 comments
Labels
question The issue doesn't require a change to the product in order to be resolved. Most issues start as that

Comments

@rbandi124
Copy link

Before asking the question:

  • have you checked the faq, the documentation in the docs folder and couldn't find the information there
  • have you checked existing issues for a similar question?

Error :
warning | output-folder path should be an absolute path
fatal | System.InvalidOperationException: The duration property of MaintenanceConfiguration ends with "Duration" but does not use the duration format to be generated as TimeSpan type. Add "format": "duration" with directive in autorest.md for the property if it's ISO 8601 format like P1DT2H59M59S. Add "x-ms-format": "duration-constant" if it's the constant format like 1.2:59:59.5000000. If the property does not conform to a TimeSpan format, please use "x-ms-client-name" to rename the property for the client.
at AutoRest.CSharp.Mgmt.Decorator.Transformer.FrameworkTypeUpdater.ValidateAndUpdate(CodeModel codeModel) in D:\a_work\1\s\autorest.csharp\src\AutoRest.CSharp\Mgmt\Decorator\Transformer\FrameworkTypeUpdater.cs:line 27
at AutoRest.CSharp.Mgmt.Decorator.CodeModelTransformer.TransformForMgmt(CodeModel codeModel) in D:\a_work\1\s\autorest.csharp\src\AutoRest.CSharp\Mgmt\Decorator\CodeModelTransformer.cs:line 43
at AutoRest.CSharp.AutoRest.Plugins.CSharpGen.ExecuteAsync(CodeModel codeModel) in D:\a_work\1\s\autorest.csharp\src\AutoRest.CSharp\Common\AutoRest\Plugins\CSharpGen.cs:line 51
at AutoRest.CSharp.AutoRest.Plugins.CSharpGen.Execute(IPluginCommunication autoRest) in D:\a_work\1\s\autorest.csharp\src\AutoRest.CSharp\Common\AutoRest\Plugins\CSharpGen.cs:line 128
at AutoRest.CSharp.AutoRest.Plugins.PluginProcessor.Start(IPluginCommunication autoRest) in D:\a_work\1\s\autorest.csharp\src\AutoRest.CSharp\Common\AutoRest\Plugins\PluginProcessor.cs:line 39
fatal | Process() cancelled due to failure
error | Error: Plugin csharpgen reported failure.
error | Autorest completed with an error. If you think the error message is unclear, or is a bug, please declare an issues at https://github.com/Azure/autorest/issues with the error message you are seeing.

@rbandi124 rbandi124 added the question The issue doesn't require a change to the product in order to be resolved. Most issues start as that label May 2, 2024
@timotheeguerin timotheeguerin transferred this issue from Azure/autorest May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

1 participant