Replies: 2 comments 2 replies
This comment was marked as spam.
This comment was marked as spam.
-
@Jeb135 The problem here is that the OpenAPI specification doesn't express this and OpenAPI Diff cannot know this. I would also argue that this is bad practice (from a client point of view) because as a user of that API, you don't really know why it would behave differently when sending either a string or a numeric a value (disguised as a string) in the URL path. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I have an API that I am trying to use openapi-diff to detect breaking changes with, however running into the following error when running the diff with the latest docker image.
I have many many paths in my API That look something like this:
/Resource/{id}
/Resource/{name}
My API is built in .NET Framework, and openapi json files generated using Swashbuckle.
These endpoints are unique in my project, as the different values in the paths de-serialize to either an integer for the
{id}
path, or a string for the{name}
path.Based on the error message, it seems to be converting both of these paths into the path template "/Resource/{}" which is technically correct, but then fails because there are multiple with the same path.
Anyone have any ideas of what I can do to resolve this? Additionally, I cant get the cli to compile or find any instructions on how to compile the cli, if anyone has those that would be helpful so I can modify the code to try and find a fix.
Full error:
Beta Was this translation helpful? Give feedback.
All reactions