Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

Added schema validation #16

Merged
merged 2 commits into from
Jul 4, 2024
Merged

Conversation

jozsefdamokos
Copy link
Contributor

No description provided.

Copy link
Owner

@MalteJanz MalteJanz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall great results for your first Rust code in a more advanced codebase 💪 🎉 .

I just commented with some explanations and more "rusty" ways of doing things. Feel free to apply some of them if they make sense to you.

I guess just causing "panics" is also fine here, as we expect some structure in our api schema and if that isn't there something is really broken

profiles/product_with_manufacturer.yaml Outdated Show resolved Hide resolved
src/data/validate.rs Outdated Show resolved Hide resolved
src/data/validate.rs Outdated Show resolved Hide resolved
src/data/validate.rs Outdated Show resolved Hide resolved
src/data/validate.rs Outdated Show resolved Hide resolved
src/main.rs Outdated Show resolved Hide resolved
src/data/validate.rs Outdated Show resolved Hide resolved
src/data/validate.rs Show resolved Hide resolved
@MalteJanz
Copy link
Owner

Looks like you also want to run cargo fmt to get the codestyle cleaned up (as that pipeline is failing) 🙂

@jozsefdamokos jozsefdamokos force-pushed the schema-validation branch 2 times, most recently from 46f662a to 394c303 Compare July 4, 2024 11:35
@MalteJanz MalteJanz merged commit 179d0f5 into MalteJanz:main Jul 4, 2024
3 checks passed
@MalteJanz MalteJanz mentioned this pull request Jul 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants