I prefer to take things in pure perspective. I don't think of my Jedi, or Sith for that matter as an absolute. They have their own feelings, and external stimuli will either keep them on their path, or cause them to think outside of it. There are some examples of this I could think of...
Ahsoka Tano - Stuck strictly to the Jedi code, but lost her temper more than once during the Clone Wars and outright killed those that killed without warrant; her path is admirable, and she's one of my favorite characters throughout the entire series as a whole, followed closely Boba Fett.. I love her most recent iteration in the series. Memorable note is later on in the series when Vader tries to take a shot at her not following the Jedi Code, to which she reminds him she isn't a Jedi. (Although, very much acting as one would).
Luke's appraisal of Ben - Luke having a momentary lapse of judgment, and attempting to kill Ben is another good one to note. Though in the end he wasn't going to, its that one moment of action that really sets a tone for both parties in the future. Once you pull the trigger, or fire up the saber in this instance, you can't take it back. It also shows that the Jedi aren't infallible, and aren't immune to emotion.
Mace, Anakin/Vader, and Palpatine - After the battle with Palpatine, Mace quite literally said screw the code (rightfully) and decided Palpatine was better off dead. Anakin even reminds him it isn't the Jedi way, to which Mace realized that in that instance, the code didn't help the situation. He was right, Palpatine was too dangerous to be left alive, he simply wasn't aware how dangerous Palpatine already was.
Obi-Wan Kenobi - After witnessing Qui-Gon Jin struck down by Maul, his fighting became impassioned, landing strikes, and even breaking Maul's saber where him and his Master fighting together couldn't seem to land any strikes of merit against the Sith before. This is definitely up for interpretation, but I believe that Obi-Wan began to get the upper hand in this fight due to his anger at the situation, although of course it ultimately ended with him almost being careening to his death.
As a special note, and nothing to do with Jedi; I think its of merit to note Din Djarin.
With our understanding of the Mandalorian code, his actions regarding his helmet only seem to push my point further... I think that there are some characters than can fully melt into an archetype, and just be that... And there are other characters that are more freeform. I prefer to write the latter, letting the universe shape them as they go.
I would say the limit to this is flip-flopping. Jedi this week, Sith the next... Back to a Jedi a few weeks later, and vice-versa.
All that being said, I agree with you
Kyra Perl
My preferred "Force Warrior" to write has to be jaded somewhat. Able to feel with impunity, and not locked into following (either) codes to a point they lose their humanity. Even if this comes at a detriment of them reaching their full potential.