We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Unable to import Swagger link: Unable to parse the Swagger content.
To Reproduce Steps to reproduce the behavior:
2023-07-18 12:39:20 java.lang.IllegalArgumentException: Unable to parse the Swagger content. 2023-07-18 12:39:20 at com.castlemock.service.mock.rest.project.converter.swagger.SwaggerRestDefinitionConverter.convertSwagger(SwaggerRestDefinitionConverter.java:158) ~[service-mock-rest-1.63.jar:?] 2023-07-18 12:39:20 at com.castlemock.service.mock.rest.project.converter.swagger.SwaggerRestDefinitionConverter.convert(SwaggerRestDefinitionConverter.java:135) ~[service-mock-rest-1.63.jar:?] 2023-07-18 12:39:20 at com.castlemock.service.mock.rest.project.ImportRestDefinitionService.process(ImportRestDefinitionService.java:67) ~[service-mock-rest-1.63.jar:?] 2023-07-18 12:39:20 at com.castlemock.service.core.ServiceProcessorImpl.process(ServiceProcessorImpl.java:85) ~[service-core-1.63.jar:?]
Expected behavior Swagger imported and generate the mock
Screenshots Valid swagger link https://petstore.swagger.io/#/
Castle Mock
The text was updated successfully, but these errors were encountered:
@karldahlgren Same issue with the latest Docker image 1.65
Sorry, something went wrong.
Hi @abdulazizfmw. The provided link is not a valid Swagger definition file. The correct URL would be the following in this scenario: https://petstore.swagger.io/v2/swagger.json
Thanks It is working
No branches or pull requests
Describe the bug
Unable to import Swagger link: Unable to parse the Swagger content.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Swagger imported and generate the mock
Screenshots
Valid swagger link
https://petstore.swagger.io/#/
Note: the mock generated by uploading the swagger file:
Castle Mock
The text was updated successfully, but these errors were encountered: