Closed abelgibayev closed 1 month ago
What does your config file look like?
I am getting the same issue for nested on 2nd page. It works in all other cases
Happens with
discriminator:
propertyName: kind
mapping:
something: '#/components/schemas/something'
I'm having the same issue. seems to come from oazapfts
Where I'm at at the moment is this: when you have several files to define your open API doc, you can use this sort of reference
$ref: 'common-swagger-v1.yaml#/components/schemas/common.Quantity'
It seems that when the main file uses such an import, the first time it is encountered, it is imported (as in "copy/paste") in the object structure
But then further similar references in the same main file will point to the resolved first occurence inside the main document, wherever this might be
It seems that sometimes however, this (weird) link fails.
I'm going to try to track it further
This is probably a problem with the underlying https://github.com/oazapfts/oazapfts library - could you file an issue over there with a repro? Thanks!
We have OpenAPI specs with multiple files and some models contain multiple refs.
E.g: spec.yaml
entity.yaml
The problem is next: running
npx @rtk-query/codegen-openapi openapi-config.ts
throws such errorCan't find paths,/some/endpoint,post,requestBody,content,application/json,schema,properties,custom_field
.The configuration is correct, openapi-fetch correctly generates classes and models from it.