You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
at e (C:\Users\jonjoh\AppData\Roaming\npm-cache_npx\3844\node_modules@rtk-incubator\rtk-query-codegen-openapi\node_modules\prettier\parser-typescript.js:1:322)
at C:\Users\jonjoh\AppData\Roaming\npm-cache_npx\3844\node_modules@rtk-incubator\rtk-query-codegen-openapi\node_modules\prettier\parser-typescript.js:22:3244464
at Object.parse (C:\Users\jonjoh\AppData\Roaming\npm-cache_npx\3844\node_modules@rtk-incubator\rtk-query-codegen-openapi\node_modules\prettier\parser-typescript.js:22:3244497)
at Object.parse$a [as parse] (C:\Users\jonjoh\AppData\Roaming\npm-cache_npx\3844\node_modules@rtk-incubator\rtk-query-codegen-openapi\node_modules\prettier\index.js:13652:19)
at coreFormat (C:\Users\jonjoh\AppData\Roaming\npm-cache_npx\3844\node_modules@rtk-incubator\rtk-query-codegen-openapi\node_modules\prettier\index.js:15183:16)
at formatWithCursor$1 (C:\Users\jonjoh\AppData\Roaming\npm-cache_npx\3844\node_modules@rtk-incubator\rtk-query-codegen-openapi\node_modules\prettier\index.js:15423:14)
at C:\Users\jonjoh\AppData\Roaming\npm-cache_npx\3844\node_modules@rtk-incubator\rtk-query-codegen-openapi\node_modules\prettier\index.js:60171:12
at Object.format (C:\Users\jonjoh\AppData\Roaming\npm-cache_npx\3844\node_modules@rtk-incubator\rtk-query-codegen-openapi\node_modules\prettier\index.js:60191:12)
at Object.prettify (C:\Users\jonjoh\AppData\Roaming\npm-cache_npx\3844\node_modules@rtk-incubator\rtk-query-codegen-openapi\lib\utils\prettier.js:53:21)
at C:\Users\jonjoh\AppData\Roaming\npm-cache_npx\3844\node_modules@rtk-incubator\rtk-query-codegen-openapi\lib\bin\cli.js:90:39 {
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: