json-schema-to-typescript
json-schema-to-typescript copied to clipboard
Invalid output for empty json schema
Both the following schemas
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Empty",
"type": "object",
"additionalProperties": false
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Empty",
"type": "object",
"additionalProperties": false,
"properties": {
}
}
results in the following output
/* tslint:disable */
/**
* This file was automatically generated by json-schema-to-typescript.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run json-schema-to-typescript to regenerate this file.
*/
export type Empty = {
Note, the missing end-curly-parenthesis
@mrtnlrsn I ran the two provided schemas through the version 10.1.4 cli and received the following for both.
/* tslint:disable */
/**
* This file was automatically generated by json-schema-to-typescript.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run json-schema-to-typescript to regenerate this file.
*/
export interface Empty {}
Can you confirm the problem is still occurring in 10.1.4?