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.

Fails on Application Insights Open API spec

See original GitHub issue

Tested this URI out.

Hawaii correctly generates a project with some types; however, the project does not build with several errors e.g.

The type 'WorkbookProperties' is not defined

WorkbookProperties does not appear to be a oneOf case from what I can see.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
Zaid-Ajajcommented, Jun 27, 2021

Hi @isaacabraham this was a bit of a rollercoaster 😅 I think I got it correctly now. As of Hawaii v0.2.0 I’ve implemented a resolution mechanism for external references using relative paths (option resolveReferences: true). Also added some improvements regarding parameter naming and default responses which AppInsights seems to be using a lot.

Can you please update Hawaii to 0.2.0 like this

dotnet tool update -g hawaii

then you should be able to generate a project using the following configuration

{
    "schema": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2021-03-08/workbooks_API.json",
    "project": "AppInsights",
    "output": "./output",
    "resolveReferences": true
}

Give it a try and let me know how it goes 😄

1reaction
isaacabrahamcommented, Jun 28, 2021

Compiles!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to create application insights analytics item when ...
After tested, api failed to create application insights analytics item and threw below error message when type is folder.
Read more >
Diagnose exceptions in web apps with Application Insights
To start, in the Application Insights resource menu on the left, under Investigate, select the Failures option.
Read more >
Troubleshoot Application Insights Profiler - Azure
This article presents troubleshooting steps and information to help developers enable and use Application Insights Profiler.
Read more >
Application Insights - Failures in Azure API Management
In this article, we're going to talk about an Application Insights feature that would help you to spot any failures in your Azure...
Read more >
Log ModelState Errors to app insights for each Bad Http ...
I know I can create an ActionFilter where I get the ModelState from the current actionContext. I could use the TelemetryClient or ILogger...
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