Open kubernegit opened 2 years ago
Seeing the same issue here. No resource schemas are included in the generated OpenAPI specs (example HealthcareService).
Encountered this issue today w/ latest version of the hapi openapi document and versions 6.0.1
, 7.0.1
of the openapi-generator
I've been trying w/ other openapi defs
I think I'd previously learned (I forget where from) that @DefinitelyTyped/fhir
ultimately comes from the microsoft/fhir-codegen project. I can get the codegenerator to work w/ that json file, but it's dated (in terms of OpenAPI spec version and its content)
Problem Some paths in the openAPI definition miss the schema for the data type, which leads to errors in the openapi-generator and in swagger.
I tried to generate a NestJS API client, based on the current openAPI definition using the openapi-generator-cli. The tool refused to generate code and printed out that the content of some GET paths are missing. Here are some examples:
I asked for help in this stackoverflow question, and it was pointed out that some paths seem to miss the schema for the data type. This also leads to errors when pasting the definition into https://editor.swagger.io
Expected behavior The schemata are given in the GET routes which should make code generation possible.
Environment
If I am wrong and the error is on my side, I am thankful for any hint.