Skip to content

Commit 79cf664

Browse files
authored
Update update_models.yml
1 parent 95eda3e commit 79cf664

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/update_models.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@ jobs:
1414
- name: Install dependencies
1515
run: |-
1616
python -m pip install --upgrade pip
17-
pip install datamodel-code-generator[http]==0.31.2
17+
pip install datamodel-code-generator==0.31.2
1818
1919
- name: Free space
2020
run: df -h && rm -rf /opt/hostedtoolcache* && df -h
2121

2222
- name: Update models
2323
run: |-
24-
datamodel-codegen --url https://raw.githubusercontent.com/QuantConnect/Documentation/refs/heads/MCP-test/QuantConnect-Platform-2.0.0.yaml --input-file-type openapi --output src/models.py --remove-special-field-name-prefix --use-annotated --collapse-root-models --use-default-kwarg
24+
curl -O https://raw.githubusercontent.com/QuantConnect/Documentation/refs/heads/MCP-test/QuantConnect-Platform-2.0.0.yaml
25+
datamodel-codegen --url QuantConnect-Platform-2.0.0.yaml --input-file-type openapi --output src/models.py --remove-special-field-name-prefix --use-annotated --collapse-root-models --use-default-kwarg
2526
python post_processing.py
2627
2728
- name: Push to Branch

0 commit comments

Comments
 (0)