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
A openapi.yaml file containing only models (schemas) and no urls, will generate a client.ts file what throws TS6133 in the context of tsconfig.json configured with
This will cause builds that are using the generated code to fail at compile time.
How to reproduce:
Create openapi.yaml file with the following contents:
openapi: 3.0.0info:
title: A test without urlsversion: 0.0.1description: Types forservers: []paths: {}components:
schemas:
User:
type: objectproperties:
id:
type: integername:
type: string
Run generate.js which contains the boilerplate code from README.md:
TS6133: types is declared but its value is never read.
TS6133: RequestContext is declared but its value is never read.
The text was updated successfully, but these errors were encountered:
serbanghita
changed the title
TS6133: types and RequestContext is declared but its value is never read.
[oats-runtime] TS6133: types and RequestContext is declared but its value is never read.
Sep 12, 2024
Problem:
A
openapi.yaml
file containing only models (schemas) and no urls, will generate aclient.ts
file what throwsTS6133
in the context oftsconfig.json
configured withThis will cause builds that are using the generated code to fail at compile time.
How to reproduce:
Create
openapi.yaml
file with the following contents:Run
generate.js
which contains the boilerplate code from README.md:The text was updated successfully, but these errors were encountered: