Skip to content
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

Catch route parameter keywords from schema when parsing params #115

Merged
merged 1 commit into from
Apr 7, 2021
Merged

Catch route parameter keywords from schema when parsing params #115

merged 1 commit into from
Apr 7, 2021

Conversation

jonathanlintott
Copy link

To solve issue #107

@jonathanlintott
Copy link
Author

I'm not sure why the lint and test checks are not running.

@kemingy
Copy link
Member

kemingy commented Apr 6, 2021

That's weird. According to the GitHub Actions setting:

pull_request:
push:
branches:
- master
- dev
, all the pull requests will trigger the lint and test.

Never mind. I can run it locally.

@kemingy kemingy linked an issue Apr 6, 2021 that may be closed by this pull request
@kemingy
Copy link
Member

kemingy commented Apr 6, 2021

Hi @jonathanlintott can you run the following cmd:

make lint
make test

To format the code, can run make format.

@jonathanlintott
Copy link
Author

jonathanlintott commented Apr 6, 2021

To format the code, can run make format.

Have run make format as requested. However it's changed many more module than this PR originally did.

@kemingy
Copy link
Member

kemingy commented Apr 6, 2021

Have run make format as requested. However it's changed a lot more code than this PR originally did.

I think it's because you are using a different version of black.

You can create a virtualenv and run:

make install
make format
make lint
make test

@jonathanlintott
Copy link
Author

jonathanlintott commented Apr 6, 2021

Have run make format as requested. However it's changed a lot more code than this PR originally did.

I think it's because you are using a different version of black.

You can create a virtualenv and run:

make install
make format
make lint
make test

I'm working from a company machine so I'm limited to what packages I can access and what versions we have of them available that's passed our internal audit.

Regarding the failing falcon test, I get the same failing result on the master branch as well as this branch. I would have assumed it was a package mismatch except that it's happening on this CI as well. Maybe there's some new falcon package that's not compatible with spectree master?

@kemingy
Copy link
Member

kemingy commented Apr 6, 2021

Regarding the failing falcon test, I get the same failing result on the master branch as well as this branch. I would have assumed it was a package mismatch except that it's happening on this CI as well. Maybe there's some new falcon package that's not compatible with spectree master?

Yeah. That's because falcon just released 3.0. I think I need to fix the test.

@kemingy
Copy link
Member

kemingy commented Apr 7, 2021

#116 should be able to fix the falcon 3 issues. You can try to pull the latest changes.

@jonathanlintott
Copy link
Author

jonathanlintott commented Apr 7, 2021

#116 should be able to fix the falcon 3 issues. You can try to pull the latest changes.

Aye that all passes now. I'll wait until you merge #116 then I'll rebase this branch.

@kemingy
Copy link
Member

kemingy commented Apr 7, 2021

Aye that all passes now. I'll wait until you merge #116 then I'll rebase this branch.

Merged

@jonathanlintott
Copy link
Author

jonathanlintott commented Apr 7, 2021

Would it be possible to release a v0.4.2 or v0.5.0 after this PR is merged?

Copy link
Member

@kemingy kemingy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Will release a new version.

@kemingy kemingy merged commit d41f4a1 into 0b01001001:master Apr 7, 2021
@jonathanlintott jonathanlintott deleted the allow-extra-keywords branch April 12, 2021 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Allow for extra keywords in a routes' parameter specifications
2 participants