@@ -1162,6 +1162,7 @@ class RecordField(Documented):
1162
1162
A field of a record.
1163
1163
"""
1164
1164
1165
+ name : str
1165
1166
class_uri = "https://w3id.org/cwl/salad#RecordField"
1166
1167
1167
1168
def __init__ (
@@ -1181,7 +1182,7 @@ def __init__(
1181
1182
else :
1182
1183
self .loadingOptions = LoadingOptions ()
1183
1184
self .doc = doc
1184
- self .name = name
1185
+ self .name = name if name is not None else "_:" + str ( _uuid__ . uuid4 ())
1185
1186
self .type_ = type_
1186
1187
1187
1188
def __eq__ (self , other : Any ) -> bool :
@@ -1636,6 +1637,7 @@ class EnumSchema(Saveable):
1636
1637
1637
1638
"""
1638
1639
1640
+ name : str
1639
1641
class_uri = "https://w3id.org/cwl/salad#EnumSchema"
1640
1642
1641
1643
def __init__ (
@@ -1654,7 +1656,7 @@ def __init__(
1654
1656
self .loadingOptions = loadingOptions
1655
1657
else :
1656
1658
self .loadingOptions = LoadingOptions ()
1657
- self .name = name
1659
+ self .name = name if name is not None else "_:" + str ( _uuid__ . uuid4 ())
1658
1660
self .symbols = symbols
1659
1661
self .type_ = type_
1660
1662
@@ -3479,6 +3481,7 @@ class SaladRecordField(RecordField):
3479
3481
A field of a record.
3480
3482
"""
3481
3483
3484
+ name : str
3482
3485
class_uri = "https://w3id.org/cwl/salad#SaladRecordField"
3483
3486
3484
3487
def __init__ (
@@ -3500,7 +3503,7 @@ def __init__(
3500
3503
else :
3501
3504
self .loadingOptions = LoadingOptions ()
3502
3505
self .doc = doc
3503
- self .name = name
3506
+ self .name = name if name is not None else "_:" + str ( _uuid__ . uuid4 ())
3504
3507
self .type_ = type_
3505
3508
self .jsonldPredicate = jsonldPredicate
3506
3509
self .default = default
@@ -3862,6 +3865,7 @@ def save(
3862
3865
3863
3866
3864
3867
class SaladRecordSchema (NamedType , RecordSchema , SchemaDefinedType ):
3868
+ name : str
3865
3869
class_uri = "https://w3id.org/cwl/salad#SaladRecordSchema"
3866
3870
3867
3871
def __init__ (
@@ -3890,7 +3894,7 @@ def __init__(
3890
3894
self .loadingOptions = loadingOptions
3891
3895
else :
3892
3896
self .loadingOptions = LoadingOptions ()
3893
- self .name = name
3897
+ self .name = name if name is not None else "_:" + str ( _uuid__ . uuid4 ())
3894
3898
self .inVocab = inVocab
3895
3899
self .fields = fields
3896
3900
self .type_ = type_
@@ -4725,6 +4729,7 @@ class SaladEnumSchema(NamedType, EnumSchema, SchemaDefinedType):
4725
4729
4726
4730
"""
4727
4731
4732
+ name : str
4728
4733
class_uri = "https://w3id.org/cwl/salad#SaladEnumSchema"
4729
4734
4730
4735
def __init__ (
@@ -4751,7 +4756,7 @@ def __init__(
4751
4756
self .loadingOptions = loadingOptions
4752
4757
else :
4753
4758
self .loadingOptions = LoadingOptions ()
4754
- self .name = name
4759
+ self .name = name if name is not None else "_:" + str ( _uuid__ . uuid4 ())
4755
4760
self .inVocab = inVocab
4756
4761
self .symbols = symbols
4757
4762
self .type_ = type_
@@ -5468,6 +5473,7 @@ class SaladMapSchema(NamedType, MapSchema, SchemaDefinedType):
5468
5473
5469
5474
"""
5470
5475
5476
+ name : str
5471
5477
class_uri = "https://w3id.org/cwl/salad#SaladMapSchema"
5472
5478
5473
5479
def __init__ (
@@ -5493,7 +5499,7 @@ def __init__(
5493
5499
self .loadingOptions = loadingOptions
5494
5500
else :
5495
5501
self .loadingOptions = LoadingOptions ()
5496
- self .name = name
5502
+ self .name = name if name is not None else "_:" + str ( _uuid__ . uuid4 ())
5497
5503
self .inVocab = inVocab
5498
5504
self .type_ = type_
5499
5505
self .values = values
@@ -6155,6 +6161,7 @@ class SaladUnionSchema(NamedType, UnionSchema, DocType):
6155
6161
6156
6162
"""
6157
6163
6164
+ name : str
6158
6165
class_uri = "https://w3id.org/cwl/salad#SaladUnionSchema"
6159
6166
6160
6167
def __init__ (
@@ -6179,7 +6186,7 @@ def __init__(
6179
6186
self .loadingOptions = loadingOptions
6180
6187
else :
6181
6188
self .loadingOptions = LoadingOptions ()
6182
- self .name = name
6189
+ self .name = name if name is not None else "_:" + str ( _uuid__ . uuid4 ())
6183
6190
self .inVocab = inVocab
6184
6191
self .names = names
6185
6192
self .type_ = type_
@@ -6783,6 +6790,7 @@ class Documentation(NamedType, DocType):
6783
6790
6784
6791
"""
6785
6792
6793
+ name : str
6786
6794
class_uri = "https://w3id.org/cwl/salad#Documentation"
6787
6795
6788
6796
def __init__ (
@@ -6805,7 +6813,7 @@ def __init__(
6805
6813
self .loadingOptions = loadingOptions
6806
6814
else :
6807
6815
self .loadingOptions = LoadingOptions ()
6808
- self .name = name
6816
+ self .name = name if name is not None else "_:" + str ( _uuid__ . uuid4 ())
6809
6817
self .inVocab = inVocab
6810
6818
self .doc = doc
6811
6819
self .docParent = docParent
0 commit comments