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

Query parameter with union type doesn't produce parameter schema #1473

Closed
2 of 4 tasks
ikkala opened this issue Aug 30, 2023 · 3 comments
Closed
2 of 4 tasks

Query parameter with union type doesn't produce parameter schema #1473

ikkala opened this issue Aug 30, 2023 · 3 comments
Labels

Comments

@ikkala
Copy link

ikkala commented Aug 30, 2023

Sorting

  • I'm submitting a ...

    • bug report
    • feature request
    • support request
  • I confirm that I

    • used the search to make sure that a similar issue hasn't already been submit

Expected Behavior

The following

    @Query()
    test_param: number | string

should produce :

	"test_param": {
		"anyOf": [
			{
				"type": "number",
				"format": "double"
			},
			{
				"type": "string"
			}
		],
	}

Current Behavior

Following is produced currently:

	{
		"in": "query",
		"name": "test_param",
		"required": true,
		"schema": {}
	}

Note: The union works in case of @Body.

Context (Environment)

Version of the library: 5.1.1 and 6.0.0-rc.3
Version of NodeJS: v20.2.0

  • Confirm you were using yarn not npm: [ ]
@github-actions
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

@github-actions github-actions bot added the Stale label Sep 30, 2023
@ikkala
Copy link
Author

ikkala commented Sep 30, 2023

Based on 6.0.0-rc.4 change log, this is still to be fixed.

@github-actions github-actions bot removed the Stale label Oct 1, 2023
Copy link

github-actions bot commented Nov 1, 2023

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

@github-actions github-actions bot added the Stale label Nov 1, 2023
@github-actions github-actions bot closed this as completed Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant