json-schema icon indicating copy to clipboard operation
json-schema copied to clipboard

Combine Merged In-Memory Schema Hash

Open BGarretson opened this issue 9 years ago • 2 comments

We maintain our schema in multiple files for modularity, but we have a team that needs to consume this schema and because hosting it is not an option, we need to find a way to output the schema that is assembled/validated against in-memory by the json-schema library.

Is there a way to pull out the summary hash that represents the complete schema that is stitched together by json-schema gem in memory?

BGarretson avatar May 13 '15 17:05 BGarretson

I have prepared a feature which probably does exactly what you need. Its #222 but it is not merged yet (and there are some minor style changes I would make before merging it, but if that is what you need and have the time to try with the branch from my repositry whether it fits your needs that would be great feedback.

RST-J avatar May 13 '15 22:05 RST-J

From reading the code and comments that branch appears to do exactly what I need to do. I gave some feedback about some trouble you were having with referencing a local file in a $ref statement that might be helpful. I'll try to make time to test your branch and get back to you

BGarretson avatar May 13 '15 23:05 BGarretson