Skip to content

Conversation

stsvilik
Copy link

@stsvilik stsvilik commented Jun 15, 2025

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Have you written unit tests?
  • Have you written unit tests that cover the negative cases (i.e.: if bad data is submitted, does the library respond properly)?
  • This PR is associated with an existing issue?

Closing issues

closes #1777

If this is a new feature submission:

  • Has the issue had a maintainer respond to the issue and clarify that the feature is something that aligns with the goals and philosophy of the project?

Potential Problems With The Approach

Test plan

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello there stsvilik 👋

Thank you and congrats 🎉 for opening your first PR on this project.✨

We will review the following PR soon! 👀

@stsvilik stsvilik force-pushed the form-field-enum-types branch from e4339a8 to 07c67b5 Compare June 15, 2025 03:26
@stsvilik
Copy link
Author

@WoH could you please review? 🙏

@stsvilik
Copy link
Author

@lukeautry maybe you can review?

@WoH
Copy link
Collaborator

WoH commented Sep 2, 2025

Hi, the code change sounds reasonable, but can you add a test to demo the change?

@stsvilik
Copy link
Author

@WoH I found where to add tests and updated PR :)

@stsvilik stsvilik force-pushed the form-field-enum-types branch from f2071dd to b0b7c54 Compare September 10, 2025 01:18
@Get('ParameterHeaderStringType')
public async headerStringType(@Header() header: string): Promise<void> {
//
@Get('FormData')
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renamed it from FormDataStringType since now it supports many types.

//
@Get('FormData')
public async formData(@FormField() data: string, @FormField() indexes: EnumNumberValue, @FormField() gender: Gender): Promise<FormTestModel> {
return Promise.resolve<FormTestModel>({
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Example of string and two enum types

@stsvilik stsvilik force-pushed the form-field-enum-types branch from b0b7c54 to caee748 Compare September 10, 2025 01:23
@stsvilik stsvilik force-pushed the form-field-enum-types branch from caee748 to 2a42d1f Compare September 10, 2025 01:24
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.

2 participants