-
Notifications
You must be signed in to change notification settings - Fork 137
error when running generator #110
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
Comments
|
also not working with oneOf |
I am also running into this issue with properties that have no "type" descriptor such as this: "properties": {
"applicationOptions": {
"nullable": true
},
"clientcode": {
"type": "string",
"nullable": true
},
}, Note that "clientcode" is of type "string" while "applicationOptions" is unspecified. Reading through the discussion here, it seems that it is up to the developer of the code generator to choose how to handle this case since it technically means that "applicationOptions" will accept any type of object. I see a few possible options:
Regardless of which option we go with, it should probably be an optional behavior as part of the build.yaml options. Restarting the discussion here so that hopefully we can arrive at a conclusion that can be used to build a pr. |
Hi @WahdanZ , @point-source , @volang Too many issues in one issue. I've generated your examples and looks like they are generated well. Support of allof will be implemented soon. Currently it's not supported. Please create separate issues if you still have ones. Thanks! |
Hi I am getting an error when running generator for this json spec:
(partial)
Error Output:
As seen in the output the generator somehow converts "RouteViewModel"=>"firstStop" to type Null. and then it throws error that it cant handle such a type.
This api spec file was generated from an AspNetCore API project via a swagger plugin package. The spec version is swagger 2.0
Things to note (Not sure whether its causing the error or not):
1- Usage of allOf
2- Usage of ref within allOf
3- StopViewModel "nextStop" property has a circular reference to itself (allOf: [ {"$ref":"#/definitions/StopViewModel"} ])
The text was updated successfully, but these errors were encountered: