disneystreaming / smithy-translate

Other
54 stars 11 forks source link

Handling JSON Schema $refs #191

Closed devonsparks closed 11 months ago

devonsparks commented 1 year ago

How best to handle JSON Schema $refs when using json-schema-to-smithy? We have some existing JSON Schema definitions that use relative path references. Attemping json-schema-to-smithy on them results in java.io.UncheckedIOException: java.net.MalformedURLException: no protocol. If I place the same collection of JSON Schema definitions behind a local web service, and update all $refs to be absolute HTTP URLs, I instead get a java.net.ConnectException: Connection refused error, even though the URLs are accessible on the machine. Is there any convention for (or otherwise a way to direct) smithytranslate to resolve $refs?

Baccata commented 1 year ago

Can you share a minimal example of something that doesn't work ? It'd really help us figure out how we can help best.

Baccata commented 11 months ago

Closing because of lack of reply from original poster.

Feel free to re-open if you find the time to provide a minimal reproduction.