Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ignore Pipfile, .lock files * add ref_template option use a string.Template instead of a ref_prefix to allow for more varied`$ref`s to be created. Template string is expected to have $model_name `identifier ` * formatting / linting * add changes * typo * use string.format instead of string.Template * remove ref_prefix default if no `ref_prefix` provided, use the `template_default` * use ref_template in field_singleton_schema * fix test_schema_with_ref_template * add parameters for `test_schema_with_refs` test name change test for key error * provide ref_template default argument * fix linting * fix mypy and coverage * docs and correct model_schema usage * fastAPI tests actualy caught an error * linting Co-authored-by: Samuel Colvin <s@muelcolvin.com>
- Loading branch information
1 parent
5da8b9c
commit d14731f
Showing
6 changed files
with
182 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,8 @@ venv/ | |
env36/ | ||
env37/ | ||
env38/ | ||
Pipfile | ||
*.lock | ||
*.py[cod] | ||
*.egg-info/ | ||
.python-version | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Support `ref_template` when creating schema `$ref`s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.