Skip to content

Very strange behavior from pydantic_yaml... #21

@elreydetoda

Description

@elreydetoda

So, this is so strange...I've gotten things to work with loading the people & sponsors as markdown files, but it's working in the weirdest way

So, whenever I load the pydantic_yaml library along side another library frontmatter (which is really cool and compliments the show scrapper well since we're creating posts), everything works. But I'm not even using the pydantic_yaml library at all, I'm just loading one of their models...that's it...it's like whenever I do that transparently it modifies the behavior of pydantic types and makes them interpretable by the frontmatter's yaml parser (essentially converting them to string instead of HttpUrl types) even though the pydantic_yaml library isn't used anywhere in our project...

I'm guessing that it's happening because of something in this line since it's called hacky_stuff, and it's really cool but very odd...

I've recorded my screen to show how it works and then doesn't work, with the only different being me uncommenting that line...very odd stuff but it's working 😅

asciicast

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions