-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
Having issues with validating swagger.json file #702
Comments
share your definition, please? |
Please reopen this in the swagger-js project, the resolution is implementation specific. |
Here is the Swagger.json file. { }, "paths": { From: Warren Parad [notifications@github.com] is #275<redir.aspx?REF=p_guewmLkKpyCsA29JRw-R8GolvqYjGhvECokQbN8xIUKeskuoDTCAFodHRwczovL2dpdGh1Yi5jb20vT0FJL09wZW5BUEktU3BlY2lmaWNhdGlvbi9pc3N1ZXMvMjc1> or Reuse<redir.aspx?REF=_mp2nTfBVZnKPjqTShuYZV0aHuhsD8pEbTuDEd6Yr30UKeskuoDTCAFodHRwczovL2dpdGh1Yi5jb20vT0FJL09wZW5BUEktU3BlY2lmaWNhdGlvbi9ibG9iL21hc3Rlci9ndWlkZWxpbmVzL1JFVVNFLm1kI3JlbW90ZS1yZWZlcmVuY2Vz> relevant? — This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by applicable law, this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses may be monitored. |
here is the swagger JSON file. { }, "paths": { From: Tony Tam [notifications@github.com] share your definition, please? — This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by applicable law, this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses may be monitored. |
Please open the issue in swagger-parser and share the contents of this:
as it's referenced in your definition. |
The swagger instance comes back as Null as I tried to do a toString on the object. SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". There are currently 0 running SoapUI MockServices at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1576) at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:533) at com.fasterxml.jackson.core.base.ParserMinimalBase._reportUnexpectedChar(ParserMinimalBase.java:462) at com.fasterxml.jackson.core.json.ReaderBasedJsonParser._handleOddValue(ReaderBasedJsonParser.java:1624) at com.fasterxml.jackson.core.json.ReaderBasedJsonParser.nextToken(ReaderBasedJsonParser.java:689) at com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:3105) at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3051) at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2161) at io.swagger.parser.util.DeserializationUtils.deserialize(DeserializationUtils.java:48) ... 11 more From: Tony Tam [mailto:notifications@github.com] Please open the issue in swagger-parser and share the contents of this: http://localhost:8080/dist/ReservationDomain_2_0_0.schema.json as it's referenced in your definition. — This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by applicable law, this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses may be monitored. |
@rameshappat you've repeatedly been asked to open a ticket on the right repository. I have no choice but to lock this topic. |
Hello,
I have written a swagger.json file. The post operation contains two path parameters and one body parameter. the Body parameter type is defined in another JSON file and has other references etc.
I am trying to validate the file in the editor and keeps coming back with reference errors. Also I am trying to run this using Swagger UI and the body text box appears but the data type is not resolved to the correct complex type.
The text was updated successfully, but these errors were encountered: