Yes you are in clear violation of code, ANY power system must meet code. Codes are basically the minimum lowest quality job you can legally do, you can do much better then code for efficiency and better safety, but code is the bottom barrel job that can be legally allowed to occur.
there must be a way to isolate the source of power, and a safety device to open in event of over current
ANY THING attached to a permanent structure must meet code more so, back in BC Canada a guy had wired his entire shop via extension cords on hooks as he refused to get an electrical permit on principle and he wanted to rub it in the face of the town, as nothing was "attached" there was nothing for code to say other then branch loading.
All so any permanent system attached to the land must meet strict code, such as buried power lines.
How ever there are codes for detached systems, and must be met or insurance can give a the middle finger should there be a fire.
yours would be a class 2 low voltage system, the fuse would be no more them 100/open voltage of the panels, and must be isolated from any other class of power circuit.
Canadian electrical code: Section 16002 and 16-200 sub pera C or D, and must comply to 16-204 & 16-210 16-222
16-222: On a circuit more then 42.4V peak no live parts may be allowed to be accessible to any one but authorized personnel (You)