Skip to content

Conversation

@JordiPolo
Copy link
Contributor

@JordiPolo JordiPolo commented Nov 4, 2018

Not ready to merge

I was testing with some files and most of they failed because of something missing. I've added just what I need. One step at a time!

@JordiPolo JordiPolo changed the title Feature/default min max Adds default, and various properties related to minimum and maximum Nov 4, 2018
serde_json = "1.0"
serde_yaml = "0.7"
error-chain = "0.10"
serde_yaml = "0.8"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

No particular reason for these two. Newer is better I'd hope

src/v2/schema.rs Outdated
fn from(item: PropertyDefault) -> Self {
match item {
PropertyDefault::Boolean(item) => item,
_ => true,
Copy link
Owner

Choose a reason for hiding this comment

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

What do you think about using rusts defaults for these i.e. returning Default::default()? I'm also wondering if there's a better way to communicate this wasn't the type you thought it was. I.e. if you're defererning a string default as a book ect

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, I'm using Default::default() now.
I did not understand the second part of your comment

…riant of ParameterOrRef instead of copying the structure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants