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
openapi: 3.0.0info:
version: 1.0.0title: Simple APIcomponents:
schemas:
default:
type: objectproperties:
name:
type: stringpaths:
/artists:
get:
description: Returns a list of artists responses:
'200':
description: Successfully returned a list of artistscontent:
application/json:
schema:
$ref: '#/components/schemas/default'
generates:
exporttypedefault={name?: string;};
which fails tsc with:
Identifier expected. 'default' is a reserved word that cannot be used here
Would that be easy to fix? In what file? Thanks!
The text was updated successfully, but these errors were encountered:
Sample schema which validates:
generates:
which fails
tsc
with:Would that be easy to fix? In what file? Thanks!
The text was updated successfully, but these errors were encountered: