13 Commits

Author SHA1 Message Date
Denis Artyushin
71718421e4 Add code highlight for docs (#1738) 2023-11-25 22:02:03 +09:00
Denis Artyushin
a36ce94f2d Add custom formatters (#1733)
* Support custom formatters for CodeFormatter

* Add custom formatters argument

* Add graphql to docs/supported-data-types.md

* Add test

custom formatter for custom-scalar-types.graphql;

* Run poetry run scripts/format.sh

* Add simple doc
2023-11-25 00:59:32 +09:00
Denis Artyushin
6e1de9b970 Beta version graphql (#1707)
* Add scalar data type and template for this

* Add union data type and template for this

* Updater union template

* Add typing.TypeAlias to default imports

* Add graphql parser

* Add first test

* Formatted code style

* Fix for test_main_simple_star_wars

* Use poetry run ./scripts/format.sh

* Fix `typename__` field for graphql object

Set default literal value for `typename__` field

* Add graphql docs

* Add test:

Check all GraphQL field types;

* Add test:

Check custom scalar py type;

* Add test:

Check graphql field aliases;

* Run poetry run ./scripts/format.sh

* Update graphql docs:

Add section `Custom scalar types`;

* poetry run ./scripts/format.sh
2023-11-21 21:57:50 +09:00
Koudai Aono
dfb601bbcb Add pydantic v2 as output model type (#1391)
* Add pydantic_v2 model module

* Change custom_root_type to root_model

* add unittest

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Fix unittest file

* Fix unittest file

* Support ConfigDict

* Fix type

* Add unittest

* Add unittest

* Add unittest

* Fix unittest

* Fix unittest

* change min/max items to min/max length

* change min/max items to min/max length

* use pattern instead of regex

* remove const

* remove uniqueItems

* WIP

* WIP

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Fix imports

* Remove unused code

* Fix lint

* Update documents

* Refactor model

* Refactor model

* Fix types

* Fix coverage

* Update documents

* Fix coverage

* Add unittest

* Add unittest

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-07-03 10:54:46 +09:00
Noddy
2db3745127 Update documentation (#1316)
* Make small grammatical and phrasing changes, update external like to JSON schema docs, remove unused schema keywords, unify JSON Schema language

* Title case some headers, modify some phrasing, remove duplicate custom template docs, clean up using_as_module with phrasing and removal of redundant ending.

* Add crosslinks between documents for clarity, rephrase sectinos, unify representation of "JSON Schema", remove specifictation of temporary directory use

* Reword "File" to "Data" to include python dicts, update working on project mentions

* Update language from "repositories" to "projects" to include links that are not repos

* Small phrasing update

* Update phrasing of supported data page for clairty

* Unify representation of "JSON", remove redundant information from index

* Synchronize changes between readme and index page

* Standardize formatting, fix heading levels
2023-05-13 11:38:46 +09:00
Koudai Aono
c56b339a22 Add document for custom template dir option (#1233)
* Create custom_template

* Delete custom_template

* Create custom_template.md

* Update custom_template.md

* Update custom_template.md

* Update custom_template.md

* Update mkdocs.yml
2023-04-09 15:43:15 +09:00
Koudai Aono
bd02d0682b update_mkdocs.yml (#444) 2021-06-09 11:03:17 +09:00
Koudai Aono
08981f776c add using_as_module.md (#283) 2020-12-24 18:49:01 +09:00
Koudai Aono
3e0522fdd7 Support options on pyproject.toml (#190)
* support for pyproject.toml

* add unittest

* remove comments

* fix format

* update documents
2020-08-03 01:27:15 +09:00
Koudai Aono
721efbde0f update documents for field constraints (#178) 2020-07-21 01:13:17 +09:00
Koudai Aono
60979715d6 fix words in documents (#129) 2020-05-20 01:31:07 +09:00
Koudai Aono
0f015604c9 refactor documents (#121) 2020-04-28 01:29:19 +09:00
Koudai Aono
9a4a35ae68 add pages configs 2019-07-23 21:51:34 +09:00