glideapps / glideapps/quicktype

Generation of Folder with TypeScript as output ignores -s schema

Open
#1,825 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
13.9k
Forks
1.2k
Avg merge
8h 53m
Merged PRs (30d)
369

Description

I am currently trying to generate typescript files from a folder of json schemas. However instead of recognizing the input as a json schema (with -s set explicitly) the input is determined as json and

```sh
quicktype -s schema ./schemas -o ./types/index.ts --just-types
```

results in

```ts
export interface MyInterface {
$schema: string;
$id: string;
title: string;
description: string;
properties: Properties;
}
```

When I process each file individually I don't have this problem.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.