Closed JonJohann closed 3 years ago
The issue lies with the -
characters in X-Client-Product-Version
and it should be fixed by https://github.com/rtk-incubator/rtk-query-codegen/pull/52. Maybe you can try this one out?
This should be resolved with 0.4.0
When I try the following command:
I get the following syntax error, it expects a comma on line 8 around "X-Client-Product-Version":
I downloaded the file from https://raw.githubusercontent.com/kartverket/SFKB-API/master/spec/openapi.yaml as both a .yaml file and a converted json file. They both gave the same error. When comparing with the pet API used in the docs, it lacks header fields, so I suspect the problem lies with either the generation of the header fields inside the endpoints or in the openAPI spec? The spec works perfectly fine in e.g Postman.