@@ -104,7 +104,7 @@ def add_properties(
104
104
# ! patching dataType=SAMPLE instead of OBJECT
105
105
if prop_data .get ("dataType" , "" ) == "SAMPLE" :
106
106
prop_data ["dataType" ] = "OBJECT"
107
- lines .append (f" data_type=\ "{ prop_data .get (' dataType' , '' ) } \" ," )
107
+ lines .append (f' data_type="{ prop_data .get (" dataType" , "" ) } ",' )
108
108
property_label = (prop_data .get ("label" ) or "" ).replace ("\n " , "\\ n" )
109
109
lines .append (f' property_label="{ property_label } ",' )
110
110
description = (
@@ -164,7 +164,7 @@ def generate_property_types(self) -> str:
164
164
# ! patching dataType=SAMPLE instead of OBJECT
165
165
if data .get ("dataType" , "" ) == "SAMPLE" :
166
166
data ["dataType" ] = "OBJECT"
167
- lines .append (f" data_type=\ "{ data .get (' dataType' , '' ) } \" ," )
167
+ lines .append (f' data_type="{ data .get (" dataType" , "" ) } ",' )
168
168
property_label = (
169
169
(data .get ("label" ) or "" ).replace ('"' , '\\ "' ).replace ("\n " , "\\ n" )
170
170
)
@@ -223,7 +223,7 @@ def generate_collection_types(self) -> str:
223
223
lines .append (f' description="""{ description } """,' )
224
224
if data .get ("validationPlugin" ) != "" :
225
225
lines .append (
226
- f" validation_script=\ "{ data .get (' validationPlugin' ) } \" ,"
226
+ f' validation_script="{ data .get (" validationPlugin" ) } ",'
227
227
)
228
228
lines .append (" )" )
229
229
lines .append ("" )
@@ -328,7 +328,7 @@ def generate_object_types(self) -> str:
328
328
)
329
329
lines .append (f' description="""{ description } """,' )
330
330
lines .append (
331
- f" generated_code_prefix=\ "{ data .get (' generatedCodePrefix' , '' ) } \" ,"
331
+ f' generated_code_prefix="{ data .get (" generatedCodePrefix" , "" ) } ",'
332
332
)
333
333
lines .append (" )" )
334
334
lines .append ("" )
0 commit comments