Skip to content

Conversation

stappersg
Copy link
Contributor

New file: examples/item_lists.rs, compiles
New file: examples/journey.yaml, item_lists can't read it.

Included / commited for getting help on getting it working.

New file: examples/item_lists.rs, compiles
New file: examples/journey.yaml, item_lists can't read it.

Included / commited for getting help on getting it working.
@tailhook
Copy link
Owner

tailhook commented Aug 5, 2019

I would help faster if you provide an error message. Most likely the issue is that validator should use a sequence of scalars rather than a scalar:

fn validator() -> Structure<'static> {
    Structure::new()
    .member("name", Scalar::new())
    .member("year", Scalar::new())
    .member("team", Sequence::new(Scalar::new()))
}

@stappersg
Copy link
Contributor Author

Seen the hint, thanks.

Expect to see an updated pull request.
It will be for a non master branch like serde or staging. Yes, it would be nice to have a staging branch ;-)

@stappersg stappersg mentioned this pull request Aug 6, 2019
@stappersg
Copy link
Contributor Author

Closing this PR because superseeded by PR #24.
It does have error message about non iterable item list ...

@stappersg stappersg closed this Aug 6, 2019
@stappersg stappersg deleted the itemlists branch August 6, 2019 19:41
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.

2 participants