Comments (5)
Hi @isaacabraham this was a bit of a rollercoaster 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
from hawaii.
Hi @isaacabraham thanks for trying it out! I will try to see why the type isn't generated correctly
from hawaii.
Compiles!
from hawaii.
Hope that this is useful - happy to continue testing it out :-)
from hawaii.
I found out the problem with the error The type 'WorkbookProperties' is not defined
and it was an easy fix but another big problem came into light which is that external type definitions as references were not resolved, i.e. things like
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
Which is blocked by OpenAPI.NET/issues/609
Right now, I am trying to workaround it by preprocessing the OpenAPI schema to turn relative references into absolute ones. It is a shot in the dark but will give it a try anyways
from hawaii.
Related Issues (20)
- Some OData responses need to be wrapped in a special OData type HOT 5
- Any way to incorporate binary streams? HOT 1
- Support for TimeSpan types in responses? HOT 2
- return values not included HOT 5
- Urls containing [ and ] generates code that does not compile HOT 7
- API:s requiring credentials fail HOT 3
- Add capability to also generate Openapi spec file from F# project? HOT 2
- System.NullReferenceException on Homebridge schema HOT 3
- Paths level Parameters are ignored HOT 6
- uuid response type as string and not converted to Guid HOT 2
- Header Parameter HOT 3
- Response Header Parameter HOT 1
- Hawaii throws: Unhandled exception. Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: D. Path '', line 0, position 0. HOT 6
- Generation of nullable required property HOT 1
- Improper management of connection errors HOT 5
- Use Templatus for F# code generation HOT 4
- Throws StackOverflowException HOT 4
- Wrong version is printed when calling hawaii --version HOT 1
- Nullable types in Dictionary values don't seem to be treated as plain Nullable values HOT 4
- Make possible to pass a cancellation token HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hawaii.