Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split format.json, fix relative-json-pointer test #209

Merged
merged 2 commits into from
Dec 2, 2017

Conversation

epoberezkin
Copy link
Member

@epoberezkin epoberezkin commented Dec 2, 2017

Splits format.json to multiple files - closes #162
Fixes incorrect relative-json-pointer test - closes #208

@epoberezkin epoberezkin changed the title refactor: split format.json to multiple files Split format.json, fix relative-json-pointer test Dec 2, 2017
@@ -13,21 +13,21 @@ const refs = {

const SKIP = {
4: ['optional/zeroTerminatedFloats'],
7: ['optional/content', 'optional/format']
7: [
'format/idn-email',
Copy link
Contributor

Choose a reason for hiding this comment

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

Should these be 'optional/format/idn-email' etc., or is it just doing a suffix match? It's mildly confusing for them not to match 'optional/content' etc. but I don't feel strongly about it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, that's how the library names the test groups - it uses the two last segments of the path... Just fixed it to match the names with "-".

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, cool, I had not realized that. That's totally fine then, thanks!

@epoberezkin epoberezkin merged commit 86f965e into master Dec 2, 2017
@epoberezkin epoberezkin deleted the refactor-format branch December 2, 2017 16:40
@Julian
Copy link
Member

Julian commented Dec 3, 2017

I'm definitely still OK with this change, but it would be really nice if we hit #53 (at least the ID portion) at some point since this change is kind of backwards incompatible in a way more than it "needs" to be (I mean, it's only being done for Draft 7 here, but in theory it's backwards incompatible if we need to do this again in the future)

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.

relative-json-pointer test is incorrect [Tests structure]: split tests for formats into multiple files
3 participants