Repository navigation
Resume: Remove final_evaluation_grade from Education Section #853
Replies: 1 comment
|
The grade is a required field in the Pydantic schema, so commenting it out fails validation before the bot does anything. To avoid this issue, your YAML needs to match the model. The fastest way to fix this is to keep the key and leave it empty: final_evaluation_grade: ""This approach passes validation and the template renders nothing for it. It's also important to note that using null can cause issues, as it may show up as None in the rendered resume. If you want to remove the field entirely, you can make it optional in the EducationDetails model inside lib_resume_builder_AIHawk: final_evaluation_grade: str = ""Then, you can add a conditional statement to the resume template to completely remove the line if the field is empty. I chose to use the empty string approach myself, as it was a simple solution that didn't require maintaining a fork of the resume builder. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I want to remove final_evaluation_grade from the education section of my resume. But I get the following error when I comment it out:
2024-11-14 18:51:50.936 | ERROR | main:main:227 - Runtime error: Error running the bot: Unexpected error while parsing YAML: 2 validation errors for Resume
education_details.0.final_evaluation_grade
Field required [type=missing, input_value={'education_level': '...', 'start_date': '2015'}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.9/v/missing
education_details.1.final_evaluation_grade
Field required [type=missing, input_value={'education_level': "Mast...', 'start_date': '2014'}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.9/v/missing
How do I remove it?
All reactions