swagger-api

swagger-api

Member Since 7 years ago

Experience Points
0
follower
Lessons Completed
0
follow
Best Reply Awards
33
repos
Activity
Jan
24
7 hours ago
started
started time in 31 minutes ago
Activity icon
issue

hkosova issue swagger-api/swagger-ui

hkosova
hkosova

Cannot view the schema for a request body while in 'Try It Out' with OpenAPI v3

Content & configuration

Swagger/OpenAPI definition: Try https://github.com/OAI/OpenAPI-Specification/blob/main/examples/v3.0/petstore.json vs https://github.com/OAI/OpenAPI-Specification/blob/main/examples/v2.0/json/petstore.json

Is your feature request related to a problem?

Editing request bodies can be tricky, being able to refer back to the documentation is useful. Swagger used to give an easy way to do that with v2 API docs as you can switch back to the model while editing the body. This has gone away with v3, you can not switch.

Describe the solution you'd like

The option to switch back to the schema at any time like you could with the model with v2 api docs.

Activity icon
issue

hkosova issue comment swagger-api/swagger-ui

hkosova
hkosova

Cannot view the schema for a request body while in 'Try It Out' with OpenAPI v3

Content & configuration

Swagger/OpenAPI definition: Try https://github.com/OAI/OpenAPI-Specification/blob/main/examples/v3.0/petstore.json vs https://github.com/OAI/OpenAPI-Specification/blob/main/examples/v2.0/json/petstore.json

Is your feature request related to a problem?

Editing request bodies can be tricky, being able to refer back to the documentation is useful. Swagger used to give an easy way to do that with v2 API docs as you can switch back to the model while editing the body. This has gone away with v3, you can not switch.

Describe the solution you'd like

The option to switch back to the schema at any time like you could with the model with v2 api docs.

started
started time in 1 hour ago
started
started time in 5 hours ago
started
started time in 7 hours ago
Jan
23
1 day ago
started
started time in 11 hours ago
started
started time in 12 hours ago
started
started time in 12 hours ago
started
started time in 13 hours ago
Activity icon
fork

opkit-co forked swagger-api/swagger-codegen

⚡ swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition.
opkit-co Apache License 2.0 Updated
fork time in 14 hours ago
started
started time in 14 hours ago
Activity icon
issue

mwallnoefer issue swagger-api/swagger-codegen

mwallnoefer
mwallnoefer

package.mustache - update mocha >= 8.0.1

Description

package.mustache: npm audit states that mocha 2.3.4 contains multiple vulnerabilities, so the dependency should be updated to at least release 8.0.1

Swagger-codegen version

3.0.0

Swagger declaration file content or url

/

Command line used for generation

/

Steps to reproduce

/

Related issues/PRs

https://github.com/swagger-api/swagger-codegen/pull/10322

Suggest a fix/enhancement

Please look at the PR.

started
started time in 15 hours ago
started
started time in 17 hours ago
Activity icon
issue

mitasov-ra issue comment swagger-api/swagger-ui

mitasov-ra
mitasov-ra

Swagger-ui-react oauth2 redirect url

Q&A (please complete the following information)

  • OS: [Windows 10]
  • Browser: [chrome, safari]
  • Method of installation: [npm]
  • Swagger-UI version: [swagger-ui-react 3.22.2]
  • Swagger/OpenAPI version: [Swagger 2.0]

How can we help?

I'm aware that the current documentation states that OAuth redirection is not supported. However we are willing to implement 'Try it out' in our react application and are forced to switch to swagger-ui-react to get the 'required parameter issue' solved. In our case, the application is not hosted on the root of the server but in a sub folder. By default when performing authorization, the request includes a redirect uri= hostname/oauth2-redirect.html. In our case this leads to a not found response since it's actually located in a sub folder. It's also not possible to relocate this redirect.html file. Is there any way how I can overcome this issue? This is the only thing blocking us at the moment. If no, would there be a future development to include the support for adjusting the redirect uri?

Thanks in advance

mitasov-ra
mitasov-ra

My final working solution (from docker-compose):

OAUTH2_REDIRECT_URL: '" + window.location.protocol + "//" + window.location.host + window.location.pathname.replace(/index\.html$$/, "") + "oauth2-redirect.html" + "'
started
started time in 17 hours ago
started
started time in 17 hours ago
started
started time in 17 hours ago
Activity icon
fork

RakhithJK forked swagger-api/swagger-editor

⚡ Swagger Editor
RakhithJK Apache License 2.0 Updated
fork time in 18 hours ago
started
started time in 18 hours ago
Activity icon
issue

linhdoan24 issue swagger-api/swagger-codegen

linhdoan24
linhdoan24

How to generation regex properties as java Map

Description

How to generation regex properties as java Map I have regex property "^([OD_]{3}[A-Z]{3}[A-Z_]{4}[0-9_]{3}[0-9999]{8})+$" and it gen to @JsonProperty("^([OD_]{3}[A-Z]{3}[A-Z_]{4}[0-9_]{3}[0-9999]{8})+$") private InlineResponse2002FlightsOriginDestinationInformationOD3AZ3AZ4093099998 _oD3AZ3AZ4093099998$ = null;

Swagger-codegen version
io.swagger.codegen.v3 swagger-codegen-maven-plugin 3.0.32 air generate ./openapi3/services_definitions_v2.0.0.json com.kiu.sys.rest.api.atpco.services_v2 com.kiu.sys.rest.api.atpco.handler.services_v2
			<language>java</language>
			<configOptions>
				<sourceFolder>src/main/java</sourceFolder>
				<hideGenerationTimestamp>true</hideGenerationTimestamp>
				<java8>true</java8>
				<dateLibrary>java8</dateLibrary>
				<interfaceOnly>true</interfaceOnly>
				<library>resttemplate</library>
				<serializableModel>true</serializableModel>
			</configOptions>
		</configuration>
	</execution>
</executions>
Swagger declaration file content or url

"responses": { "200": { "description": "The response of get_availability method.", "content": { "application/json": { "examples": {}, "schema": { "type": "object", "properties": { "flights_origin_destination_information": { "type": "object", "description": "Description of each origin_destination with date of departure requested by each directionality.", "properties": { "^([OD_]{3}[A-Z]{3}[A-Z_]{4}[0-9_]{3}[0-9999]{8})+$": { "type": "object", "description": "Dynamic key name reference to origin_destination_reference_key of the object origin_destination_information.", "example": ["OD_JNBSEZ_02_20210413"], "properties": { "arrival_information": { "type": "object", "description": "This object hold the point of destination location code.", "properties": { "location_reference_id": {"$ref": "#/components/schemas/location_reference_id"} } }, "departure_information": { "type": "object", "description": "This object holds the point of departure location code", "properties": { "location_reference_id": {"$ref": "#/components/schemas/location_reference_id"}, "date": { "type": "string", "description": "Date of departure.", "format": "date" } } } } } } } } } } } } }

SWG

started
started time in 21 hours ago
pull request

WinterSilence pull request swagger-api/swagger-codegen

WinterSilence
WinterSilence

Update `modules/swagger-codegen/src/main/resources/php/HeaderSelector…

PR checklist

  • Read the contribution guidelines.
  • Ran the shell script under ./bin/ to update Petstore sample so that CIs can verify the change. (For instance, only need to run ./bin/{LANG}-petstore.sh and ./bin/security/{LANG}-petstore.sh if updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in .\bin\windows\.
  • Filed the PR against the correct branch: 3.0.0 branch for changes related to OpenAPI spec 3.0. Default: master.
  • Copied the technical committee to review the pull request if your PR is targeting a particular programming language.

Description of the PR

  • Normalize PhpDoc's
  • Human-readable parameters
Activity icon
issue

mohankrishna-lab issue swagger-api/swagger-ui

mohankrishna-lab
mohankrishna-lab

OpenAPI Specification (Version 3.0.3) doesn't show schema when user clicks on "Try It Out" button.

Hi,

In OpenAPI Specification (Version 2.0), the model will be visible even when the user clicks on the "Try it out" button but in (Version 3.0.3) the schema doesn't show when the user clicks on the "Try it out button".

Screenshots:

(Version 2.0) openapi2_model_screenshot

(Version 3.0)

image

Description:

-> User can see schema before the "Try it out" button in both versions but that changes when the user clicks on the "Try it out" button. -> Is this behavior expected? -> Is there a chance in the future, in open API 3.0 even when the users click on the "Try it out" button schema will be visible for users?

Links: This behavior is in default pet store examples also.

(Version 2.0) https://petstore.swagger.io/#/pet/addPet

(Version 3.0) https://petstore3.swagger.io/

Thank you.

started
started time in 23 hours ago
Previous