swagger-codegen-generators
swagger-codegen-generators copied to clipboard
FixNPEOnBadRef - Fix NPE on invalid ref and give useful error
This is to address an issue reported against swagger-codegen: https://github.com/swagger-api/swagger-codegen/issues/12190
I'm not familiar enough with the project to add proper testing to expose the issue, but in the referenced issue I have used an example yaml to manually verify.
Assistance in automating the testing or improving the solution very welcome.