Generating from a local copy of a schema with HTTP references #61
Unanswered
pjohnmeyer
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi, can you provide an example schema? Generally the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Today I tried running the generator on a copy of a schema downloaded from a private repository. Every schema file in the schema has a fully-qualified
https
id of the formhttps://example.com/schema/...
, and thus uses those URIs for$ref
attributes. However, I need to generate models against the local copy of the schema, not the files that reside at that URL.My expectation was that if I loaded all of the local schema files using a
RecursiveDirectoryProvider
, this library would note those schemas were already loaded and not attempt to fetch them over HTTPS. However, I could not find a way to make this happen, and it always attempts to load references over HTTPS.Is there some configuration I am missing to go into offline mode, or perhaps a different way to load the schemas? Or would this be a new feature for the library.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions