Skip to content

allergies: Update json for new "input" policy#1033

Merged
Stargator merged 1 commit intoexercism:masterfrom
Stargator:input-allergies
Dec 14, 2017
Merged

allergies: Update json for new "input" policy#1033
Stargator merged 1 commit intoexercism:masterfrom
Stargator:input-allergies

Conversation

@Stargator
Copy link
Copy Markdown
Contributor

#996 Updated the schema for canonical data. So I am updating the allergies exercise's json to reflect the change.

@Stargator Stargator self-assigned this Dec 11, 2017
Comment thread exercises/allergies/canonical-data.json Outdated
"input": {
"score": 2
},
"expected": [
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do the "expected"'s need to be changed or just the the addition of "input"? I don't know that the present "expected" entries violate the schema.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

#996 Just mentions a change to input, I think expected is always one variable.

Copy link
Copy Markdown
Member

@petertseng petertseng left a comment

Choose a reason for hiding this comment

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

version?

I expected expected not change, not even for reformatting. Reformatting expected deserves to be in its own commit, not lumped in with "update to new schema" since reformatting is not an update to the new schema.

@Stargator Stargator force-pushed the input-allergies branch 3 times, most recently from 1fd903d to 7fb5996 Compare December 12, 2017 11:13
@Stargator Stargator changed the title Update Allergies Json with new schema allergies: Update json with new schema Dec 12, 2017
@rpottsoh rpottsoh changed the title allergies: Update json with new schema allergies: Update json for new "input" policy Dec 12, 2017
"property": "allergicTo",
"score": 0,
"input": {
"score": 0
Copy link
Copy Markdown
Member

@rpottsoh rpottsoh Dec 12, 2017

Choose a reason for hiding this comment

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

Does "input" really need "score"? Why not just:

"input": 0,

Of course like changes for other cases. Unless we are really married to "score". Others should perhaps weigh in on this point.

Nevermind. @petertseng is right.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

don't care what y'all decide, but #996 (comment) and #996 (comment) are explicitly in favour of having "input": {"score": 0} not "input": 0 therefore that is the only thing I support in #998.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I missed that detail.

@rpottsoh
Copy link
Copy Markdown
Member

@Stargator I think you can go ahead and merge this when ready.

@Stargator Stargator merged commit 85dcb59 into exercism:master Dec 14, 2017
@Stargator Stargator deleted the input-allergies branch December 14, 2017 22:46
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.

4 participants