minvws / nl-kat-coordination

OpenKAT scans networks, finds vulnerabilities and creates accessible reports. It integrates the most widely used network tools and scanning software into a modular framework, accesses external databases such as shodan, and combines the information from all these sources into clear reports. It also includes lots of cat hair.
https://openkat.nl
European Union Public License 1.2
127 stars 58 forks source link

The `Boefje.schema` field shadows out `BaseModel.schema` #3507

Closed ammar92 closed 1 month ago

ammar92 commented 2 months ago

Describe the bug Currently the Boefje.schema field shadows out BaseModel.schema. This can cause trouble, because BaseModel.schema is a dict of the schema (and BaseModel.schema_json is the JSON string representation of that dict)

To Reproduce Run the Boefje module and monitor the logs; you should see a warning triggered by Pydantic due to the naming conflict

Expected behavior No warnings should be triggered, and the schema should work as expected (which it probably already did).

Additional context