Skip to content

Commit 17dc669

Browse files
authored
Implementation of built-in types generation (#7)
* add email generation and update documentation * add tests for derived types in XML schema generator * add hexBinary generation and corresponding tests * refactor XML value generation to use TypeConstraints for improved clarity and maintainability * refactor value generation to extract type constraints into a separate function for improved clarity and maintainability * add tests for derived types and implement generation for byte, short, int, and integer types * bump version to 0.5.0
1 parent 731e99d commit 17dc669

File tree

122 files changed

+739
-986
lines changed

Some content is hidden

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

122 files changed

+739
-986
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ In the `value_override` sections, you can specify either a string value or speci
241241
| `ogrn_fl` | Primary State Registration Number (Physical Person) |
242242
| `kpp` | Reason Code for Registration |
243243
| `snils_formatted` | SNILS (Personal Insurance Account Number) in the format `123-456-789 90` |
244+
| `email` | Random email address |
244245

245246
**Configuration Examples:**
246247

README_RU.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ specific:
241241
| `ogrn_fl` | ОГРН физического лица |
242242
| `kpp` | КПП |
243243
| `snils_formatted` | СНИЛС в формате `123-456-789 90` |
244+
| `email` | Случайный адрес электронной почты |
244245

245246
**Примеры конфигураций:**
246247

config_fns.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ global:
3232
"^ОГРН$": "{{ ogrn_fl }}"
3333
"КПП": "{{ kpp }}"
3434
"СНИЛС": "{{ snils_formatted }}"
35+
"ЭлПочта": "{{ email }}"
3536

3637
specific:
3738
".*":

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name='xmlgenerator',
5-
version='0.4.0',
5+
version='0.5.0',
66
packages=find_packages(exclude=("tests", "tests.*")),
77
entry_points={
88
'console_scripts': [

tests/data/complex/attributes/types_built_in/anyuri.xsd

Lines changed: 0 additions & 8 deletions
This file was deleted.

tests/data/complex/attributes/types_built_in/base64binary.xsd

Lines changed: 0 additions & 8 deletions
This file was deleted.

tests/data/complex/attributes/types_built_in/boolean.xsd

Lines changed: 0 additions & 8 deletions
This file was deleted.

tests/data/complex/attributes/types_built_in/date.xsd

Lines changed: 0 additions & 8 deletions
This file was deleted.

tests/data/complex/attributes/types_built_in/datetime.xsd

Lines changed: 0 additions & 8 deletions
This file was deleted.

tests/data/complex/attributes/types_built_in/decimal.xsd

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)