Contributions
Array/Object names not displayed for JSON in SwaggerHub/Swagger
Hi, can someone please me with this question: How can I get the name of an Array/Object to show when I set parameter content type to "application/json"in Swagger/SwaggerHub? Please see the screenshots for both XML and JSON formats: JSON Screenshot: names of array and object DO NOT show in both request and response XML Screenshot:names of array and object show in both request and response Am I doing something wrong? Please help. Thanks. Nixol912Views0likes0CommentsRe: Can I split my swagger (openapi 3.0.3) spec over multiple YAML files?
ThanksGraceKarina. When trying to use the $ref, I got this error message: Could not resolve reference: Tried to resolve a relative URL, without having a basePath. path: '/Users/xxxxxxx/Downloads/abcdef.yaml' basePath: 'undefined'. The file I am trying to reference is in the folder "/Users/xxxxxxxx/Downloads/", Is there anything I am doing wrong? Is there any example I can see?2.2KViews0likes0CommentsCan I split my swagger (openapi 3.0.3) spec over multiple YAML files?
I currently have an API spec in YAML which is becoming too large. I am just wondering if it is possible to split the specification into smaller YAML files and still achieve the same result. Can this be done?2.1KViews0likes2CommentsreadOnly fields of a definition do not show in response of array type in SwaggerHub. OpenAPI v3.0.3
The readOnly fields do no show in the response of array type in SwaggerHub while it shows when Swagger Editor is used. Just wandering why this is so and how it can so solved.I am using OpenApi v3.0.3 Screenshots from both Swagger Editor and SwaggerHub are in the attached file.Solved1.2KViews0likes2CommentsRe: OpenAPi 3.0.3 - can I use two POST methods for the same path - each with its own request body?
ThanksHKosovafor your explanation. Could you also assist to answer the following followup questions: 1. can each of the requests have a different tag? eg. Body1 has "TagA" and body2 has "TagB" 2. can each of the requests have a corresponding response? e.g. if Body1 is used, then the response will be Response1, if Body2 is used then the response will be Response2.9.1KViews0likes3Comments