mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-12-14 00:57:09 +00:00
This commit is contained in:
parent
16d8ba548d
commit
a094f1d5f8
@ -123,4 +123,4 @@
|
|||||||
* [BulkSink](open-source-community/developer/build-a-connector/bulksink.md)
|
* [BulkSink](open-source-community/developer/build-a-connector/bulksink.md)
|
||||||
* [Run Integration Tests](open-source-community/developer/run-integration-tests.md)
|
* [Run Integration Tests](open-source-community/developer/run-integration-tests.md)
|
||||||
* [UX Style Guide](open-source-community/developer/ux-style-guide.md)
|
* [UX Style Guide](open-source-community/developer/ux-style-guide.md)
|
||||||
* [Generate typescript types from JSON schema](open-source-community/developer/generate-typescript-types-from-json-schema.md)
|
* [Generate Typescript Types From JSON Schema](open-source-community/developer/generate-typescript-types-from-json-schema.md)
|
||||||
|
|||||||
@ -4,17 +4,17 @@ description: >-
|
|||||||
schema.
|
schema.
|
||||||
---
|
---
|
||||||
|
|
||||||
# Generate typescript types from JSON schema
|
# Generate Typescript Types From JSON Schema
|
||||||
|
|
||||||
We are using [quicktype](https://quicktype.io) to generate types from JSON Schema.
|
We are using [quicktype](https://quicktype.io) to generate types from JSON Schema.
|
||||||
|
|
||||||
Install quicktype dependency globally using npm
|
Make sure you have `quicktype` installed if not then install it using command given below from `openmetadata` root folder.
|
||||||
|
|
||||||
```
|
```
|
||||||
npm install -g quicktype
|
npm install
|
||||||
```
|
```
|
||||||
|
|
||||||
Now go to the UI folder `src/main/resources/ui` and from there run the command given below.
|
Now go to the UI folder `openmetadata-ui/src/main/resources/ui` and from there run the command given below.
|
||||||
|
|
||||||
```
|
```
|
||||||
npm run json2ts
|
npm run json2ts
|
||||||
@ -22,4 +22,4 @@ npm run json2ts
|
|||||||
|
|
||||||
The above command will take some time to execute and generate types.
|
The above command will take some time to execute and generate types.
|
||||||
|
|
||||||
After that, you can go to the generated `src/main/resources/ui/src/generated/*` folder and see the all generated types.
|
After that, you can go to the generated `openmetadata-ui/src/main/resources/ui/src/generated/*` folder and see the all generated types.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user