-
Notifications
You must be signed in to change notification settings - Fork 58
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
Bug with matching/key replacement #672
Comments
hi @ia-chyde We did improve some matching logic and added additional tests, so it seems to have caused some side-effects. I'll look into it and add a test to cover this. |
hi @ia-chyde Could you share the OpenAPI path (only the path is sufficient)? So we can run some manual validations? |
|
hi @ia-chyde We have a PR ready that should fix the reported issue. The input
with the targeting
|
hi @ia-chyde We just release version 1.30.6 which should handle your reported issue. If not, please provide more info so we can reproduce it and look further for a fix. |
How does the Portman config looks like? |
hi @ia-chyde This is the result, so it looks like it is working? OpenAPI spec:
Portman config:
|
hi @ia-chyde I used the following: OpenAPI
With this Portman config:
Results in: What did you had in your Portman Config? |
#672 (comment) from above - I see you also had one replacing for |
that's right. only that one entry you see. Worked fine in previous version. |
Hmm 🤔 that should not have worked for the endpoints "/licenses/..." since there was no * wildcard character involved in the openApiOperation. I have a PR that will allow matching with "GET: :/licenses*" would you be OK with that? |
sure, I could make a config update. I figured that might have been a bug
too :-)
…On Mon, Nov 4, 2024 at 2:42 PM Thim ***@***.***> wrote:
Hmm 🤔 that should not have worked for "/licenses/..." since there was no
* wildcard character involved.
I have a PR that will allow "GET: :/licenses*" would you be OK with that?
—
Reply to this email directly, view it on GitHub
<#672 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BEVEPQWUC7QXWLB2V67DHCLZ67E2XAVCNFSM6AAAAABRAPKFXGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJVGU2TKMJWGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
hi @ia-chyde We just release version v1.30.7, could you give a try? |
seems to work well. I'll let you know if anything else comes up, but I
think you can close this defect.
…On Tue, Nov 5, 2024 at 1:56 PM Thim ***@***.***> wrote:
hi @ia-chyde <https://github.com/ia-chyde>
We just release version v1.30.7
<https://github.com/apideck-libraries/portman/releases/tag/v1.30.7>,
could you give a try?
You will have to update "openApiOperation": "GET::/licenses*" by adding an
ending *
—
Reply to this email directly, view it on GitHub
<#672 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BEVEPQVATHXCD24EIHJ4FCLZ7EIGZAVCNFSM6AAAAABRAPKFXGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJXHEZTKMRTGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@ia-chyde Thanks for the patience and the assistance during the validation |
In v1.30.5 a bug was introduced with matching values. Pinning my portman version to 1.30.4 fixes the issue.
ATTN: @thim81
This is the OAS value being replaced - but in 1.30.5 it is replacing in some areas with the example, but in other areas it's replacing properly with the overridden value.
Example fail from html report:
Example of replacement setup from the portman config:
The text was updated successfully, but these errors were encountered: