-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
openapicore case insensitive header fix #88
Conversation
Fix looks good but my "I'll fix it later" CI script that enables us to test the minimal supported version of openapi-core needs to be updated any time we bump openapi-core: https://github.com/Pylons/pyramid_openapi3/blob/master/inject_minimal_openapi-core.sh I likely won't be able to do this before next week, so if you are in a hurry to get this PR merged, you can try and see if you can decipher how it works. |
So I'm bumping the script as well. I preserved the the hash order in the Pipfile.lock file as well as how the minimal supported version was injected, even if they are currently the same. |
inject_minimal_openapi-core.sh
Outdated
grep "==0.13.3" Pipfile.lock | ||
sed -i 's/"==0.13.3"/"==0.13.1"/g' Pipfile.lock | ||
grep "==0.13.4" Pipfile.lock | ||
sed -i 's/"==0.13.4"/"==0.13.4"/g' Pipfile.lock |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sed -i 's/"==0.13.4"/"==0.13.4"/g' Pipfile.lock | |
sed -i 's/"==0.13.4"/"==0.13.1"/g' Pipfile.lock |
inject_minimal_openapi-core.sh
Outdated
grep "57973b7383214a529012cf65ddac8c22b25a4df497366e588e88c627581c2928" Pipfile.lock | ||
sed -i s/57973b7383214a529012cf65ddac8c22b25a4df497366e588e88c627581c2928/d61305484f8fefda78fdddaf8890af6804fae99dff94013abd9480873880bddc/g Pipfile.lock | ||
grep "b8b4283d84038495fb3bde4a868cd9377272ecf898f142d7706d6d49fc14d218" Pipfile.lock | ||
sed -i s/b8b4283d84038495fb3bde4a868cd9377272ecf898f142d7706d6d49fc14d218/b8b4283d84038495fb3bde4a868cd9377272ecf898f142d7706d6d49fc14d218/g Pipfile.lock |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sed -i s/b8b4283d84038495fb3bde4a868cd9377272ecf898f142d7706d6d49fc14d218/b8b4283d84038495fb3bde4a868cd9377272ecf898f142d7706d6d49fc14d218/g Pipfile.lock | |
sed -i s/b8b4283d84038495fb3bde4a868cd9377272ecf898f142d7706d6d49fc14d218/d61305484f8fefda78fdddaf8890af6804fae99dff94013abd9480873880bddc/g Pipfile.lock |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0.13.4's hash needs to be replaced by our "minimal supported version of openapi-core"'s hash, so that this minimal version gets tested on CI.
Hey @zupo. Unless we write retro-compatible code, this version will not be able to support older version of openapi-core |
Something like this
|
Ah, I understand it now, sorry for the noise. I don't have a strong opinion about whether we need to write retro-compatible code, I usually stick to latest releases. But if you want you can add retro-support, I'm really fine either way. Can you make sure that we update the minimal version to |
Thanks for the remark, I forgot to update the setup file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Ah, snap. The way CI is set up is that it shares pipenv caches between py37 and py38 if I'll think about it. Probably add retro-compatiblity becaues it's easier then fiddleing with CI. |
6d705f4
to
8b78630
Compare
I wrote a retro-compatible version. I feel like there is an action needed on your part to clean up the cache. |
Superseded by #89. |
fixes #87