-
Notifications
You must be signed in to change notification settings - Fork 18
Serve schemas #190
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
Serve schemas #190
Conversation
The diff makes sense so far... but I want to make sure I understand correctly. Gunnar mentioned to us earlier about how this will start to cause loopback resolution, and I see that in the code. Can you walk us through the path you travelled? I'm not entirely opposed to this landing, but when it does I'd like to understand what we can do in the future to avoid loopback calls. |
@rentzso Change to docker/uwsgi-entrypoint.sh should be backed out. See https://github.com/scitran/core/blob/master/docker/README.md for example on how to bootstrap in a raw scitran/core env and not the flywheel dev environment. If there's a new ENV var that is required, those instructions should be updated, and the ENV var should be added to sample.config |
@ryansanford @kofalt A possible alternative to avoid the loopback would be to statically serve schemas, maybe on a different endpoint. The downside of this is that we will have always to hardcode all the schemas. Serving them in the API would allow us in the future to create/modify them on the fly. Not sure if this will be needed but it is nice to have. |
@rentzso |
@ryansanford I have added the env variable in fly/fly and update the docs/sample.config |
@ryansanford I have tried to build the docker containers as in https://github.com/scitran/core/blob/master/docker/README.md I have got this error:
It seems not possible to clone the reaper repo. Can you check it? Thanks! |
@rentzso
|
@rentzso Are the only differences you've observed regarding Can you contrast for me a code snippet that loads a JSON schema from a URL, versus a snippet that loads from a file? I'd like to play with this to see if I can make headway. |
You can find one of the "weirdness" that I was forced to use for $ref in |
@ryansanford I have tested with the new scripts and also data creation works. |
@rentzso: Fine to merge on my end pending others. We can fiddle with it later. |
This variable was a temporary measure from #190 and never fully removed until now.
closes #82
to bootstrap data I needed to define the env variable before bootstrap: ce1ba92
I am not sure if that is the right way. @ryansanford @gsfr any suggestions?