input string length too short for URLs #407
mhiggins-SA
started this conversation in
General
Replies: 3 comments 3 replies
-
@mhiggins-SA How long of URLs are we talking about? Could you please provide a reproducible example of this? |
Beta Was this translation helpful? Give feedback.
0 replies
-
docker run --rm -t -v localdrive:/localdrive \
openapitools/openapi-diff:latest --html /localdrive/api-diff.html \
https://api.swaggerhub.com/apis/mhiggins-sa/Petstore/1.0.0/swagger.yaml?resolved=true&flatten=false \
https://api.swaggerhub.com/apis/mhiggins-sa/Petstore/2.0.0/swagger.yaml?resolved=true&flatten=false
…---
Micheál Higgins | Senior Solutions Architect
m: +353.86.235.4599
e: ***@***.******@***.***>
***@***.***<https://smartbear.com/>
smartbear.com<https://www.smartbear.com/>
***@***.***<https://www.facebook.com/smartbear> ***@***.*** <https://www.linkedin.com/company/smartbear> ***@***.*** <https://twitter.com/SmartBear> ***@***.*** <https://www.youtube.com/channel/UC3iDZqrLWQZ4dh8zn2rU9hA>
From: Jochen Schalanda ***@***.***>
Sent: Thursday 8 September 2022 08:22
To: OpenAPITools/openapi-diff ***@***.***>
Cc: Micheál Higgins ***@***.***>; Mention ***@***.***>
Subject: Re: [OpenAPITools/openapi-diff] input string length too short for URLs (Issue #406)
@mhiggins-SA<https://github.com/mhiggins-SA> How long of URLs are we talking about?
Could you please provide a reproducible example of this?
—
Reply to this email directly, view it on GitHub<#406 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ANMNL5XDD4N3RADM4Z7723LV5GHYRANCNFSM6AAAAAAQG6IW3I>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
We hope you found this email of interest; however, click here if you wish to unsubscribe<http://www2.smartbear.com/SubscriptionCenter.html?utm_source=outlook&utm_medium=email&utm_content=emailsig> or manage your email preferences. Privacy Policy.<https://smartbear.com/privacy/>
Disclaimer
The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful.
|
Beta Was this translation helpful? Give feedback.
3 replies
-
I’ll try url encoding the strings. Not sure I want to use quotes given a pipeline is building the docker run dynamically.
Thanks for catching this !!!
…--
Micheál Higgins
Senior Solutions Architect
SmartBear Software
Sent from my iPad
On 8 Sep 2022, at 20:59, Jochen Schalanda ***@***.***> wrote:
The issue here is that the ampersand (&) character is interpreted by your shell. 😉
See also: https://bashitout.com/2013/05/18/Ampersands-on-the-command-line.html<https://bashitout.com/2013/05/18/Ampersands-on-the-command-line.html>
Try quoting the URLs:
# docker run --rm -t openapitools/openapi-diff:latest "https://api.swaggerhub.com/apis/mhiggins-sa/Petstore/1.0.0/swagger.yaml?resolved=true&flatten=false<https://api.swaggerhub.com/apis/mhiggins-sa/Petstore/1.0.0/swagger.yaml?resolved=true&flatten=false>" "https://api.swaggerh
ub.com/apis/mhiggins-sa/Petstore/2.0.0/swagger.yaml?resolved=true&flatten=false<http://ub.com/apis/mhiggins-sa/Petstore/2.0.0/swagger.yaml?resolved=true&flatten=false>"
==========================================================================
== API CHANGE LOG ==
==========================================================================
Swagger Petstore
--------------------------------------------------------------------------
-- What's New --
--------------------------------------------------------------------------
- GET /mikeie/rocks
--------------------------------------------------------------------------
-- What's Changed --
--------------------------------------------------------------------------
- PUT /pet
Request:
- Changed application/json
Schema: Broken compatibility
- Changed application/xml
Schema: Broken compatibility
- POST /pet
Request:
- Changed application/json
Schema: Broken compatibility
- Changed application/xml
Schema: Broken compatibility
- GET /pet/findByStatus
Return Type:
- Changed 200 OK
Media types:
- Changed application/json
Schema: Backward compatible
- Changed application/xml
Schema: Backward compatible
- GET /pet/findByTags
Return Type:
- Changed 200 OK
Media types:
- Changed application/json
Schema: Backward compatible
- Changed application/xml
Schema: Backward compatible
- GET /pet/{petId}
Return Type:
- Changed 200 OK
Media types:
- Changed application/json
Schema: Backward compatible
- Changed application/xml
Schema: Backward compatible
--------------------------------------------------------------------------
-- Result --
--------------------------------------------------------------------------
API changes broke backward compatibility
--------------------------------------------------------------------------
—
Reply to this email directly, view it on GitHub<#407 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ANMNL5XIJHGPNE3UUW4DAXDV5JATFANCNFSM6AAAAAAQICNRJU>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
We hope you found this email of interest; however, click here if you wish to unsubscribe<http://www2.smartbear.com/SubscriptionCenter.html?utm_source=outlook&utm_medium=email&utm_content=emailsig> or manage your email preferences. Privacy Policy.<https://smartbear.com/privacy/>
Disclaimer
The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
the 2 spec input strings accept URL's - but the overall string length seems to truncate long (last) URLs.
Beta Was this translation helpful? Give feedback.
All reactions