You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
631 B
15 lines
631 B
|
1 year ago
|
# Generate the new schema:
|
||
|
|
using [datamodel-code-generator](https://github.com/koxudaxi/datamodel-code-generator)
|
||
|
|
```bash
|
||
|
|
pip install datamodel-code-generator
|
||
|
|
```
|
||
|
|
ß
|
||
|
|
```bash
|
||
|
|
rm libs/DAP/debug_adapter_protocol.py
|
||
|
|
datamodel-codegen --input libs/DAP/debugAdapterProtocol.json --input-file-type jsonschema --output libs/DAP/debug_adapter_protocol.py --output-model-type pydantic_v2.BaseModel
|
||
|
|
```
|
||
|
|
or
|
||
|
|
```bash
|
||
|
|
rm libs/DAP/debug_adapter_protocol.py
|
||
|
|
datamodel-codegen --url https://microsoft.github.io/debug-adapter-protocol/debugAdapterProtocol.json --output libs/DAP/debug_adapter_protocol.py --output-model-type pydantic_v2.BaseModel
|
||
|
|
```
|