File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/main/java/com/regnosys/rosetta/generator/python/object Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ class PythonAttributeProcessor {
2929
3030 def CharSequence generateAllAttributes (Data rosettaClass , Map<String , List<String > > keyRefConstraints ) {
3131 // generate Python for all the attributes in this class
32+ println(' PythonAttributeProcessor::generateAllAttributes for: ' + rosettaClass. getName)
3233 val allAttributes = rosettaClass. buildRDataType. getOwnAttributes
3334 // it is an empty class if there are no attribute and no conditions
3435 if (allAttributes. size() == = 0 && rosettaClass. conditions. size() == = 0 ) {
@@ -198,8 +199,10 @@ class PythonAttributeProcessor {
198199 val otherMeta = new ArrayList<String > ()
199200
200201 // process attribute metadata
201- if (attrRMAT. hasMeta) {
202+ // if (attrRMAT.hasMeta) {
203+ if (attrRMAT. hasAttributeMeta) {
202204 attrRMAT. getMetaAttributes. forEach [ma |
205+ println(' ma.getName: ' + ma. getName)
203206 switch (ma. getName) {
204207 case " key" , case " id" : {
205208 validators. add(" @key" )
You can’t perform that action at this time.
0 commit comments