Skip to content

Commit cb77c00

Browse files
committed
Sample updated
1 parent b414eeb commit cb77c00

File tree

14 files changed

+2074
-3
lines changed

14 files changed

+2074
-3
lines changed

.VSCodeCounter/2023-04-25_18-40-28/details.md

Lines changed: 422 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Diff Details
2+
3+
Date : 2023-04-25 18:40:28
4+
5+
Directory /Users/justinblack/programming/openapi-python-client-comparison/petstore/openapi_json_schema_generator_python
6+
7+
Total : 0 files, 0 codes, 0 comments, 0 blanks, all 0 lines
8+
9+
[Summary](results.md) / [Details](details.md) / [Diff Summary](diff.md) / Diff Details
10+
11+
## Files
12+
| filename | language | code | comment | blank | total |
13+
| :--- | :--- | ---: | ---: | ---: | ---: |
14+
15+
[Summary](results.md) / [Details](details.md) / [Diff Summary](diff.md) / Diff Details
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
"filename", "language", "", "comment", "blank", "total"
2+
"Total", "-", , 0, 0, 0
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Diff Summary
2+
3+
Date : 2023-04-25 18:40:28
4+
5+
Directory /Users/justinblack/programming/openapi-python-client-comparison/petstore/openapi_json_schema_generator_python
6+
7+
Total : 0 files, 0 codes, 0 comments, 0 blanks, all 0 lines
8+
9+
[Summary](results.md) / [Details](details.md) / Diff Summary / [Diff Details](diff-details.md)
10+
11+
## Languages
12+
| language | files | code | comment | blank | total |
13+
| :--- | ---: | ---: | ---: | ---: | ---: |
14+
15+
## Directories
16+
| path | files | code | comment | blank | total |
17+
| :--- | ---: | ---: | ---: | ---: | ---: |
18+
19+
[Summary](results.md) / [Details](details.md) / Diff Summary / [Diff Details](diff-details.md)
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Date : 2023-04-25 18:40:28
2+
Directory : /Users/justinblack/programming/openapi-python-client-comparison/petstore/openapi_json_schema_generator_python
3+
Total : 0 files, 0 codes, 0 comments, 0 blanks, all 0 lines
4+
5+
Languages
6+
+----------+------------+------------+------------+------------+------------+
7+
| language | files | code | comment | blank | total |
8+
+----------+------------+------------+------------+------------+------------+
9+
+----------+------------+------------+------------+------------+------------+
10+
11+
Directories
12+
+------+------------+------------+------------+------------+------------+
13+
| path | files | code | comment | blank | total |
14+
+------+------------+------------+------------+------------+------------+
15+
+------+------------+------------+------------+------------+------------+
16+
17+
Files
18+
+----------+----------+------------+------------+------------+------------+
19+
| filename | language | code | comment | blank | total |
20+
+----------+----------+------------+------------+------------+------------+
21+
| Total | | 0 | 0 | 0 | 0 |
22+
+----------+----------+------------+------------+------------+------------+

.VSCodeCounter/2023-04-25_18-40-28/results.csv

Lines changed: 409 additions & 0 deletions
Large diffs are not rendered by default.

.VSCodeCounter/2023-04-25_18-40-28/results.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

.VSCodeCounter/2023-04-25_18-40-28/results.md

Lines changed: 385 additions & 0 deletions
Large diffs are not rendered by default.

.VSCodeCounter/2023-04-25_18-40-28/results.txt

Lines changed: 795 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ via vscode code counter tool
3030
Reasons for the openapi json scheme generator difference
3131
- has overload type hints on all endpoints, allows input content type selection
3232
- json paths used to create files so many files made
33-
- object models have getters written for optional properties
33+
- object models have `__getitem__` methods for properties
34+
- most of the code comes from paths, can itbe reduced?
3435

3536
## Generate
3637

@@ -49,7 +50,7 @@ docker run --rm -v "${PWD}:/local" openapitools/openapi-generator-cli:v6.5.0 gen
4950
-g python-nextgen \
5051
-o /local/openapi_generator_python_nextgen
5152

52-
docker run --rm -v "${PWD}:/local" openapjsonschematools/openapi-json-schema-generator-cli:2.0.0 generate \
53+
docker run --rm -v "${PWD}:/local" openapijsonschematools/openapi-json-schema-generator-cli:3.0.0-latest generate \
5354
-i /local/petstore.yaml \
5455
-g python \
5556
-o /local/openapi_json_schema_generator_python
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.0.0
1+
3.0.0
Binary file not shown.

0 commit comments

Comments
 (0)