Skip to content

Find JSON Schema segment(s) for JSON; allow type-based searches to be JSON Schema aware #62

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

Open
brettz9 opened this issue Dec 14, 2015 · 1 comment
Labels

Comments

@brettz9
Copy link
Collaborator

brettz9 commented Dec 14, 2015

I would like to see:

  1. A class method utility to find a JSON Schema segment (or segments) for a given JSON object (along with the schema's parent and parent property for potential manipulation)
  2. Type-based searches (which utilize the class method utility) which are JSON Schema aware, e.g., instead of just $..*@string(), we could support something like $..*@type(mySchemaType)
@brettz9 brettz9 changed the title Find JSON Schema segment for JSON; allow type-based searches to be JSON Schema aware Find JSON Schema segment(s) for JSON; allow type-based searches to be JSON Schema aware Dec 14, 2015
@brettz9
Copy link
Collaborator Author

brettz9 commented Dec 14, 2015

One further possibility would be to allow Ajax retrieval of the JSON and automatically do schema URL detection (and optional retrieval, e.g., if there is a @type() path component) from the recommended header of JSON, e.g., Content-Type: application/my-media-type+json; profile=http://example.com/my-hyper-schema#. This might be particularly justified with issue #61 calling for Ajax abilities anyways.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant