rtk-incubator / rtk-query-codegen

93 stars 13 forks source link

Code generator doesn't support format of schema generated by Swashbuckle #61

Closed kosky37 closed 2 years ago

kosky37 commented 3 years ago

For inherited types Swashbuckle generates separately "allOf": [] and "properties": {}:

"type":"object",
"allOf":[],
"properties":{}

, but the generator can only handle a format in which properties are inside allOf array:

"allOf":[
   {
      "type":"object",
      "properties":{}
   }
]

Issue created on oazapfts library

phryneas commented 2 years ago

The codegen is now published as @rtk-query/codegen-openapi and the code has moved over to the Redux Toolkit monorepo.

As usage has changed as well, please read the new documentation.

As this repository is getting archived, I am going to close this issue. The new release has bumped the oazapfts version - so if this is resolved over there, it should already contain that fix.