dtsgenerator icon indicating copy to clipboard operation
dtsgenerator copied to clipboard

TypeScript d.ts file generate from JSON Schema file

Results 24 dtsgenerator issues
Sort by recently updated
recently updated
newest added

There's one big problem. - We need to remove `namespace` from the generated results. In that case, how do we guarantee the uniqueness of the output type names? via. https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c#how-can-i-make-my-typescript-project-output-esm

Is it possible to export the namespace? Example: ``` export declare namespace Foo { export interface Bar { ... } } ```

question

ref #511 ## `JSON Schema 2019-09` https://json-schema.org/draft/2019-09/release-notes.html `"$schema": "https://json-schema.org/draft/2019-09/schema"` New Features - `$anchor`: Replaces the `#plain-name` form of `$id`, with a different syntax and approach - `$id`: Only URI-references without...

enhancement

Prerequisites for support OpenAPI 3.1 https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md - Support `JSON Schema 2020-12` https://json-schema.org/draft/2020-12/release-notes.html https://json-schema.org/draft/2019-09/release-notes.html - Support some new properties - Support `$dynamicRef and $dynamicAnchor`

enhancement

going from version `3.13.2` to `3.14.0` (and beyond) I am seeing a difference in the generated d.ts file for nullable complex type. In earlier version, the dtsgen command will produce...

bug

Good day @horiuchi at the moment im stuck when the dtsgenerator resolves common path parameters using v3.13.2 and also v3.15.0 (latest). So when in open-api spec the endpoint says: ```...

Hi! First of all, great library! Have been using it for a long time and saves so much time aligning contracts between frontend and backends. Great work! Today I stumbled...

dtsgenerator creates some really great definitions. I'm having some issues with the `$ref` implementation requiring a top-level `id`. OpenAPI [defines](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#relativeReferences) the `$ref`: `using the URL of the current document as...

enhancement

example yaml: ``` openapi: "3.0.0" info: version: 1.0.0 title: Swagger Petstore description: A sample API that uses a petstore as an example to demonstrate features in the OpenAPI 3.0 specification...

bug

![image](https://user-images.githubusercontent.com/7146036/131084265-ba328644-efa5-47d0-9467-7f3b806dceaa.png) When the swagger Schema definition is not standardized, it is hoped that it will be compatible without affecting file generation. For example: when definitions are not defined, use any...