Skip to content

Commit 32738df

Browse files
swtich to use "hasAttributeMeta"
1 parent 1b4a798 commit 32738df

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/com/regnosys/rosetta/generator/python/object/PythonAttributeProcessor.xtend

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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")

0 commit comments

Comments
 (0)