Skip to content

Commit 46049e2

Browse files
🔀 Merge feature/set-theory.
2 parents 50b9c84 + ea237c5 commit 46049e2

File tree

142 files changed

+4470
-1737
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

142 files changed

+4470
-1737
lines changed

‎.config/mkdocs.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ nav:
77
- index.md
88
- plugins.md
99
- openapi.md
10+
- json-schema.md

‎.pre-commit-config.yaml‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ repos:
1313
- id: check-yaml
1414
- id: debug-statements
1515
- id: end-of-file-fixer
16-
exclude: ^src/lapidary/render/templates/render/includes/header.txt$|^tests/e2e/expected/
1716
- id: no-commit-to-branch
1817
- id: trailing-whitespace
18+
# keep whitespaces as generated by libCST for e2e tests
19+
exclude: ^tests/e2e/expected/
1920
- repo: https://github.com/astral-sh/ruff-pre-commit
2021
rev: v0.7.0
2122
hooks:
@@ -25,14 +26,11 @@ repos:
2526
args:
2627
- --fix
2728
- id: ruff-format
28-
pass_filenames: false
2929
- repo: https://github.com/python-poetry/poetry
30-
rev: 1.8.3
30+
rev: 2.0.1
3131
hooks:
3232
- id: poetry-check
3333
- id: poetry-lock
34-
args:
35-
- --no-update
3634
- repo: https://github.com/pre-commit/mirrors-mypy
3735
rev: v1.12.1
3836
hooks:

‎docs/index.md‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ Lapidary-render is a code generator that creates client code from an OpenAPI doc
99

1010
- [x] The generator code should be simple.
1111

12-
Lapidary-render does most of the processing in Python, only leaving the rendering to Jinja templates.
12+
Generator processes data in three stages
13+
14+
1. Enhance and transform OpenAPI to a structure more close resembling python model structure
15+
2. Convert the enhanced OpenAPI to a metamodel
16+
3. Convert the metamodel to a syntax tree
1317

1418
- [x] Client code should be simple.
1519

@@ -61,7 +65,7 @@ origin
6165
: URL of the OpenAPI document, used when document_path is missing, or when `servers` is not defined, or the first server URL is a relative path.
6266

6367
extra_sources
64-
: list of additional source roots for manually written code. The files will be interpreted as templates, but non-template files will also work.
68+
: list of additional source roots for manually written python files.
6569

6670
plugins
6771
: list of plugin classes. See [the section on plug-ins](/plugins)

0 commit comments

Comments
 (0)