JSONSchema.swift icon indicating copy to clipboard operation
JSONSchema.swift copied to clipboard

Document usage better in readme

Open hixfield opened this issue 4 years ago • 1 comments

I propose to updated the readme to make these use cases clearer:

  • how to load a schema embedded in the app?
  • how to load a schema via a (public) url?
  • based on a swift model that is compliant with (en)Codable, take this model, serialize is to json, and validate it to one of the above schemas

(I'm staring at the code now for 15min trying to figure this out based on the test cases....)

hixfield avatar Jan 24 '21 10:01 hixfield

I have created PR #104 with a detailed real world example and updated the readme. Let me know what you think!

hixfield avatar Jan 24 '21 12:01 hixfield