metaisbeta / asniffer

Tool to extract Code Annotations Metrics
GNU Lesser General Public License v3.0
14 stars 5 forks source link

Errors while generating class-view json for AVisualizer #6

Closed pomba123 closed 3 years ago

pomba123 commented 3 years ago

Some annotations are missing the field "schema" in jsonAV.

Following a example where the annotations

ConditionalOnMissingBean ConditionalOnSingleCandidate

are correctly generated, and

org.springframework.context.annotation.Configuration org.springframework.context.annotation.Import org.springframework.context.annotation.Conditional

The following json output.

have the schema field missing.

                    {
                      "name": "org.springframework.context.annotation.Configuration",
                      "type": "annotation",
                      "properties": {
                        "aa": "1",
                        "locad": "1",
                        "anl": "0"
                      },
                      "children": []
                    },
                    {
                      "name": "org.springframework.context.annotation.Import",
                      "type": "annotation",
                      "properties": {
                        "aa": "1",
                        "locad": "1",
                        "anl": "0"
                      },
                      "children": []
                    },
                    {
                      "name": "org.springframework.context.annotation.Conditional",
                      "type": "annotation",
                      "properties": {
                        "aa": "1",
                        "locad": "1",
                        "anl": "0"
                      },
                      "children": []
                    },
                    {
                      "name": "ConditionalOnSingleCandidate",
                      "type": "annotation",
                      "properties": {
                        "schema": "org.springframework.boot.autoconfigure.condition",
                        "aa": "1",
                        "locad": "1",
                        "anl": "0"
                      },
                      "children": []
                    },
                    {
                      "name": "ConditionalOnMissingBean",
                      "type": "annotation",
                      "properties": {
                        "schema": "org.springframework.boot.autoconfigure.condition",
                        "aa": "1",
                        "locad": "1",
                        "anl": "0"
                      },
                      "children": []
                    }
                  ]
                }