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

some api def has multiple path and query names the same #55

Open
zijianhuang opened this issue Jan 19, 2024 · 1 comment
Open

some api def has multiple path and query names the same #55

zijianhuang opened this issue Jan 19, 2024 · 1 comment

Comments

@zijianhuang
Copy link
Owner

not friendly to client API functions, though on server side you can use [FromQueryAttribute] or alike.

Need the mechanism to deal with this, for example, a dictionary.

for example, openapi-directory20240114\APIs\warwick.ac.uk\enterobase\v2.0\

@zijianhuang
Copy link
Owner Author

					ParameterDescriptor = new ParameterDescriptor()
					{
						IsRequired = p.Required,
						ParameterName = p.Name, // what appear in the HTTP query name, for example: "?api-version=" + api_version
						ParameterType = p.Schema == null ? typeof(string) : TypeRefHelper.PrimitiveSwaggerTypeToClrType(p.Schema.Type, p.Schema.Format),
						ParameterBinder = ParameterLocationToParameterBinder(p.In),
					},

Or distinguish path and query when dealing with p.In

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

No branches or pull requests

1 participant