Skip to content

Commit

Permalink
Add sdmx-ml suite (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
tefra authored Mar 25, 2024
1 parent 0bea316 commit 1b540f3
Show file tree
Hide file tree
Showing 427 changed files with 31,009 additions and 97 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ jobs:
- { name: "Crossref Metadata", id: "crossref" }
- { name: "DateX II", id: "datexii" }
- { name: "EWP", id: "ewp" }
- { name: "Generali", id: "generali" }
- { name: "Generali", id: "generali", skip_mypy: true }
- { name: "NeTEx", id: "netex" }
- { name: "NPO API", id: "npo" }
- { name: "ReqIF", id: "reqif" }
- { name: "Sabre", id: "sabre" }
- { name: "Sdmx-ml", id: "sdmx-ml", skip_mypy: true }
- { name: "SpaceX", id: "spacex" }
- { name: "Travelport", id: "travelport" }
- { name: "UBL", id: "ubl" }
Expand All @@ -49,5 +50,5 @@ jobs:
- name: Run Tests
run: invoke ${{ matrix.collection.id }}.test
- name: Run mypy
if: matrix.collection.id != 'generali'
if: matrix.collection.skip_mypy != true
run: invoke ${{ matrix.collection.id }}.mypy
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
[submodule "crossref/schema"]
path = crossref/schema
url = https://gitlab.com/crossref/schema.git
[submodule "sdmx_ml/repo"]
path = sdmx_ml/repo
url = git@github.com:sdmx-twg/sdmx-ml.git
3 changes: 2 additions & 1 deletion amadeus/.xsdata.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<Config xmlns="http://pypi.org/project/xsdata" version="24.2">
<Config xmlns="http://pypi.org/project/xsdata" version="24.3.1">
<Output maxLineLength="79" subscriptableTypes="true" unionType="true">
<Package>amadeus.models</Package>
<Format repr="true" eq="true" order="false" unsafeHash="false" frozen="false" slots="false" kwOnly="false">dataclasses</Format>
<Structure>filenames</Structure>
<DocstringStyle>reStructuredText</DocstringStyle>
<RelativeImports>false</RelativeImports>
<CompoundFields defaultName="choice" useSubstitutionGroups="false" forceDefaultName="false" maxNameParts="3">false</CompoundFields>
<WrapperFields>false</WrapperFields>
<PostponedAnnotations>true</PostponedAnnotations>
<UnnestClasses>false</UnnestClasses>
<IgnorePatterns>false</IgnorePatterns>
Expand Down
3 changes: 2 additions & 1 deletion autosar/.xsdata.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<Config xmlns="http://pypi.org/project/xsdata" version="24.2">
<Config xmlns="http://pypi.org/project/xsdata" version="24.3.1">
<Output maxLineLength="79" subscriptableTypes="false" unionType="false">
<Package>autosar.models</Package>
<Format repr="true" eq="true" order="false" unsafeHash="false" frozen="false" slots="false" kwOnly="false">dataclasses</Format>
<Structure>clusters</Structure>
<DocstringStyle>reStructuredText</DocstringStyle>
<RelativeImports>true</RelativeImports>
<CompoundFields defaultName="choice" useSubstitutionGroups="false" forceDefaultName="false" maxNameParts="3">false</CompoundFields>
<WrapperFields>false</WrapperFields>
<PostponedAnnotations>false</PostponedAnnotations>
<UnnestClasses>false</UnnestClasses>
<IgnorePatterns>false</IgnorePatterns>
Expand Down
3 changes: 2 additions & 1 deletion bpmn/.xsdata.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<Config xmlns="http://pypi.org/project/xsdata" version="24.2">
<Config xmlns="http://pypi.org/project/xsdata" version="24.3.1">
<Output maxLineLength="79" subscriptableTypes="false" unionType="false">
<Package>bpmn.models</Package>
<Format repr="true" eq="true" order="false" unsafeHash="false" frozen="false" slots="false" kwOnly="false">dataclasses</Format>
<Structure>clusters</Structure>
<DocstringStyle>reStructuredText</DocstringStyle>
<RelativeImports>true</RelativeImports>
<CompoundFields defaultName="choice" useSubstitutionGroups="false" forceDefaultName="false" maxNameParts="3">false</CompoundFields>
<WrapperFields>false</WrapperFields>
<PostponedAnnotations>false</PostponedAnnotations>
<UnnestClasses>false</UnnestClasses>
<IgnorePatterns>false</IgnorePatterns>
Expand Down
3 changes: 2 additions & 1 deletion common_types/.xsdata.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<Config xmlns="http://pypi.org/project/xsdata" version="24.2">
<Config xmlns="http://pypi.org/project/xsdata" version="24.3.1">
<Output maxLineLength="79" subscriptableTypes="false" unionType="false">
<Package>common_types.models</Package>
<Format repr="true" eq="true" order="false" unsafeHash="false" frozen="false" slots="false" kwOnly="false">dataclasses</Format>
<Structure>filenames</Structure>
<DocstringStyle>reStructuredText</DocstringStyle>
<RelativeImports>true</RelativeImports>
<CompoundFields defaultName="choice" useSubstitutionGroups="false" forceDefaultName="false" maxNameParts="3">false</CompoundFields>
<WrapperFields>false</WrapperFields>
<PostponedAnnotations>false</PostponedAnnotations>
<UnnestClasses>false</UnnestClasses>
<IgnorePatterns>false</IgnorePatterns>
Expand Down
23 changes: 8 additions & 15 deletions common_types/models/hl7_v3/ne2008/core/datatypes_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2335,10 +2335,6 @@ class Cv(Ce):
text.
Used when a single code value must be sent.
:ivar qualifier: Specifies additional codes that increase the
specificity of the primary code.
:ivar translation:
"""

class Meta:
Expand All @@ -2364,10 +2360,9 @@ class EivlEvent(Ce):
A code for a common (periodical) activity of daily living based on which the
event related periodic interval is specified.
:ivar qualifier:
:ivar original_text: The text or phrase used as the basis for the
coding.
:ivar qualifier: Specifies additional codes that increase the
specificity of the primary code.
:ivar translation: A set of other concept descriptors that translate
this concept descriptor into other code systems.
:ivar code_system:
Expand All @@ -2377,13 +2372,13 @@ class EivlEvent(Ce):
class Meta:
name = "EIVL.event"

original_text: Any = field(
qualifier: Any = field(
init=False,
metadata={
"type": "Ignore",
},
)
qualifier: Any = field(
original_text: Any = field(
init=False,
metadata={
"type": "Ignore",
Expand Down Expand Up @@ -3207,12 +3202,10 @@ class Cs(Cv):
Used when a single code value must be sent.
:ivar qualifier:
:ivar translation:
:ivar original_text: The text or phrase used as the basis for the
coding.
:ivar qualifier: Specifies additional codes that increase the
specificity of the primary code.
:ivar translation: A set of other concept descriptors that translate
this concept descriptor into other code systems.
:ivar code_system:
:ivar code_system_name:
:ivar code_system_version:
Expand All @@ -3222,19 +3215,19 @@ class Cs(Cv):
class Meta:
name = "CS"

original_text: Any = field(
qualifier: Any = field(
init=False,
metadata={
"type": "Ignore",
},
)
qualifier: Any = field(
translation: Any = field(
init=False,
metadata={
"type": "Ignore",
},
)
translation: Any = field(
original_text: Any = field(
init=False,
metadata={
"type": "Ignore",
Expand Down
3 changes: 2 additions & 1 deletion crossref/.xsdata.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<Config xmlns="http://pypi.org/project/xsdata" version="24.2">
<Config xmlns="http://pypi.org/project/xsdata" version="24.3.1">
<Output maxLineLength="79" subscriptableTypes="false" unionType="false">
<Package>crossref.models</Package>
<Format repr="true" eq="true" order="false" unsafeHash="false" frozen="false" slots="false" kwOnly="false">dataclasses</Format>
<Structure>namespace-clusters</Structure>
<DocstringStyle>reStructuredText</DocstringStyle>
<RelativeImports>false</RelativeImports>
<CompoundFields defaultName="choice" useSubstitutionGroups="false" forceDefaultName="false" maxNameParts="3">false</CompoundFields>
<WrapperFields>false</WrapperFields>
<PostponedAnnotations>false</PostponedAnnotations>
<UnnestClasses>false</UnnestClasses>
<IgnorePatterns>false</IgnorePatterns>
Expand Down
3 changes: 2 additions & 1 deletion datexii/.xsdata.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<Config xmlns="http://pypi.org/project/xsdata" version="24.2">
<Config xmlns="http://pypi.org/project/xsdata" version="24.3.1">
<Output maxLineLength="79" subscriptableTypes="false" unionType="false">
<Package>datexii.models</Package>
<Format repr="true" eq="true" order="false" unsafeHash="false" frozen="false" slots="false" kwOnly="false">dataclasses</Format>
<Structure>namespace-clusters</Structure>
<DocstringStyle>reStructuredText</DocstringStyle>
<RelativeImports>false</RelativeImports>
<CompoundFields defaultName="choice" useSubstitutionGroups="false" forceDefaultName="false" maxNameParts="3">false</CompoundFields>
<WrapperFields>false</WrapperFields>
<PostponedAnnotations>false</PostponedAnnotations>
<UnnestClasses>false</UnnestClasses>
<IgnorePatterns>false</IgnorePatterns>
Expand Down
3 changes: 2 additions & 1 deletion ewp/.xsdata.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<Config xmlns="http://pypi.org/project/xsdata" version="24.2">
<Config xmlns="http://pypi.org/project/xsdata" version="24.3.1">
<Output maxLineLength="79" subscriptableTypes="false" unionType="false">
<Package>ewp.models.catalogue</Package>
<Format repr="true" eq="true" order="false" unsafeHash="false" frozen="false" slots="false" kwOnly="false">dataclasses</Format>
<Structure>single-package</Structure>
<DocstringStyle>reStructuredText</DocstringStyle>
<RelativeImports>false</RelativeImports>
<CompoundFields defaultName="choice" useSubstitutionGroups="false" forceDefaultName="false" maxNameParts="3">false</CompoundFields>
<WrapperFields>false</WrapperFields>
<PostponedAnnotations>false</PostponedAnnotations>
<UnnestClasses>false</UnnestClasses>
<IgnorePatterns>false</IgnorePatterns>
Expand Down
3 changes: 2 additions & 1 deletion generali/.xsdata.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<Config xmlns="http://pypi.org/project/xsdata" version="24.2">
<Config xmlns="http://pypi.org/project/xsdata" version="24.3.1">
<Output maxLineLength="79" subscriptableTypes="false" unionType="false">
<Package>generali.models</Package>
<Format repr="true" eq="true" order="false" unsafeHash="false" frozen="false" slots="false" kwOnly="false">dataclasses</Format>
<Structure>namespace-clusters</Structure>
<DocstringStyle>reStructuredText</DocstringStyle>
<RelativeImports>false</RelativeImports>
<CompoundFields defaultName="choice" useSubstitutionGroups="false" forceDefaultName="false" maxNameParts="3">false</CompoundFields>
<WrapperFields>false</WrapperFields>
<PostponedAnnotations>false</PostponedAnnotations>
<UnnestClasses>true</UnnestClasses>
<IgnorePatterns>false</IgnorePatterns>
Expand Down
3 changes: 2 additions & 1 deletion netex/.xsdata.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<Config xmlns="http://pypi.org/project/xsdata" version="24.2">
<Config xmlns="http://pypi.org/project/xsdata" version="24.3.1">
<Output maxLineLength="79" subscriptableTypes="false" unionType="false">
<Package>netex.models</Package>
<Format repr="true" eq="true" order="false" unsafeHash="false" frozen="false" slots="false" kwOnly="false">dataclasses</Format>
<Structure>clusters</Structure>
<DocstringStyle>Blank</DocstringStyle>
<RelativeImports>true</RelativeImports>
<CompoundFields defaultName="choice" useSubstitutionGroups="true" forceDefaultName="false" maxNameParts="3">true</CompoundFields>
<WrapperFields>false</WrapperFields>
<PostponedAnnotations>false</PostponedAnnotations>
<UnnestClasses>false</UnnestClasses>
<IgnorePatterns>false</IgnorePatterns>
Expand Down
6 changes: 3 additions & 3 deletions netex/models/abstract_group_member.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ class AbstractGroupMember(AbstractGroupMemberVersionedChildStructure):
class Meta:
namespace = "http://www.netex.org.uk/netex"

validity_conditions_or_valid_between: Any = field(
description: Any = field(
init=False,
metadata={
"type": "Ignore",
},
)
alternative_texts: Any = field(
validity_conditions_or_valid_between: Any = field(
init=False,
metadata={
"type": "Ignore",
},
)
description: Any = field(
alternative_texts: Any = field(
init=False,
metadata={
"type": "Ignore",
Expand Down
6 changes: 3 additions & 3 deletions netex/models/alternative_quay_descriptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ class AlternativeQuayDescriptor(
class Meta:
namespace = "http://www.netex.org.uk/netex"

validity_conditions_or_valid_between: Any = field(
name_type: Any = field(
init=False,
metadata={
"type": "Ignore",
},
)
alternative_texts: Any = field(
validity_conditions_or_valid_between: Any = field(
init=False,
metadata={
"type": "Ignore",
},
)
name_type: Any = field(
alternative_texts: Any = field(
init=False,
metadata={
"type": "Ignore",
Expand Down
Loading

0 comments on commit 1b540f3

Please sign in to comment.