Skip to content
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

Support for extensions within swagger:parameters #2836

Merged
merged 3 commits into from Sep 25, 2022

Conversation

cccRaim
Copy link

@cccRaim cccRaim commented Sep 15, 2022

Summary

Related to #2751.

For i18n document, route almost can include more information, now I want the parameter has more information.

Example

Example
Input:

// swagger:parameters listPets
type FooParam struct {
	// Bar parameter in query
	// Required: true
	// Extensions:
	//   x-description-i18n:
	//     cn: 一个参数
	Bar string `query:"bar"`
}

Output:

paths:
  "/pets":
    get:
#       ...other info
      parameters:
        - description: Bar parameter in query
          in: query
          name: Bar
          required: true
          type: string
          x-description-i18n:
            cn: 一个参数

@casualjim casualjim merged commit 91b12fd into go-swagger:master Sep 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants