Skip to content

hyper schema test suite missing? #546

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

Closed
mokkabonna opened this issue Feb 7, 2018 · 7 comments
Closed

hyper schema test suite missing? #546

mokkabonna opened this issue Feb 7, 2018 · 7 comments

Comments

@mokkabonna
Copy link

The hyper schema draft mentions a test suite for hyper schema.

https://github.com/json-schema-org/json-schema-spec/blob/master/jsonschema-hyperschema.xml#L300

and other locations

Is the test suite not published or non-existant? Or have I completely missed it?

I am planning to take a stab at a javascript implementation.

@handrews
Copy link
Contributor

handrews commented Feb 7, 2018

@mokkabonna the test suite is missing b/c I'm the only one working on it, and I'm also driving the draft-08 spec work, and I have other stuff to do for my actual job.

Perhaps I should have been more tentative in referencing that in the spec. I certainly intended to do it immediately but it has not worked out that way. If you're actually going to try an implementation, though, that would be very motivating.

@mokkabonna
Copy link
Author

@mokkabonna the test suite is missing b/c I'm the only one working on it, and I'm also driving the draft-08 spec work, and I have other stuff to do for my actual job.

I understand completely, I have a list of open source things myself that I plan to get around to. I wanted to check status only. 😄

My main goal and idea is to create a library that can generate a javascript client, inspired by https://github.com/philschatz/octokat.js which is a generic client for the github api. But even more generic, so that no out of band information is needed.

And to do that I need to generate the links first.

@mokkabonna
Copy link
Author

Does this section provide the best "test case" as of now?

Here are all of the links that apply to this instance, including those that are defined in the referenced individual "thing" schema:

http://json-schema.org/latest/json-schema-hypermedia.html#rfc.section.9.5

@handrews
Copy link
Contributor

@mokkabonna yes, that's the best starting point. I'm looking at carving out some officially scheduled time for the test suite this month- no commitment yet but stay tuned.

If it's OK with you I'd like to close this and move the discussion over to the test suite repo at json-schema-org/JSON-Schema-Test-Suite#56 and json-schema-org/JSON-Schema-Test-Suite#203

@handrews
Copy link
Contributor

@mokkabonna
Copy link
Author

mokkabonna commented Feb 28, 2018

Thanks for the invite! That will be useul.

I quickly realized that I needed to first write a relative JSON pointer resolver. Trying to get it implemented in the npm package json-pointer. manuelstofer/json-pointer#29

@gregsdennis gregsdennis moved this to Closed in Hypermedia Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Closed
Development

No branches or pull requests

2 participants