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

Fixes exception when StringLength decorates non-string member #1366

Merged
merged 1 commit into from
Feb 20, 2023

Conversation

aivascu
Copy link
Member

@aivascu aivascu commented Oct 18, 2022

Description

  • Added type validation for members decorated with [StringLength] attribute

Closed issues

fixes #1365

Checklist

  • Reviewed the contribution guidelines
  • Linked the issue(s) the PR closes
  • Implemented automated tests and checked coverage
  • Provided inline documentation comments for new public API
  • Ran the full solution build and validation locally

@aivascu aivascu force-pushed the stringlength-fix branch 2 times, most recently from 72dded6 to c589029 Compare February 20, 2023 23:16
@aivascu aivascu changed the title Stringlength fix Fixes exception when StringLength decorates non-string member Feb 20, 2023
@aivascu aivascu merged commit 42ccdd5 into AutoFixture:master Feb 20, 2023
@aivascu aivascu deleted the stringlength-fix branch February 20, 2023 23:39
vbreuss pushed a commit to Testably/Testably.Abstractions that referenced this pull request Feb 22, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [AutoFixture.Xunit2](https://togithub.com/AutoFixture/AutoFixture) |
nuget | minor | `4.17.0` -> `4.18.0` |

---

### Release Notes

<details>
<summary>AutoFixture/AutoFixture</summary>

###
[`v4.18.0`](https://togithub.com/AutoFixture/AutoFixture/releases/tag/v4.18.0):
Version 4.18.0

#### What's Changed

- Fixed failing build due to outdated dependencies by
[@&#8203;aivascu](https://togithub.com/aivascu) in
[AutoFixture/AutoFixture#1287
- Added mention of copy constructors to terminating error by
[@&#8203;aivascu](https://togithub.com/aivascu) in
[AutoFixture/AutoFixture#1294
- Added MyGet preview badge to readme by
[@&#8203;aivascu](https://togithub.com/aivascu) in
[AutoFixture/AutoFixture#1301
- Added Issue and PR templates by
[@&#8203;aivascu](https://togithub.com/aivascu) in
[AutoFixture/AutoFixture#1310
- Updated readme FAKE build engine URL by
[@&#8203;MichaelNel](https://togithub.com/MichaelNel) in
[AutoFixture/AutoFixture#1347
- Added support for NSubstitute 5.0 by
[@&#8203;aivascu](https://togithub.com/aivascu) in
[AutoFixture/AutoFixture#1383
- Fixed exception when StringLength decorates non-string member by
[@&#8203;aivascu](https://togithub.com/aivascu) in
[AutoFixture/AutoFixture#1366
- Fixed failing request for default max length attribute by
[@&#8203;aivascu](https://togithub.com/aivascu) in
[AutoFixture/AutoFixture#1384

#### New Contributors

- [@&#8203;MichaelNel](https://togithub.com/MichaelNel) made their first
contribution in
[AutoFixture/AutoFixture#1347

**Full Changelog**:
AutoFixture/AutoFixture@v4.17.0...v4.18.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/Testably/Testably.Abstractions).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNDguMCIsInVwZGF0ZWRJblZlciI6IjM0LjE0OC4wIn0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot added a commit to cythral/brighid-discord-adapter that referenced this pull request Apr 6, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[AutoFixture.AutoNSubstitute](https://togithub.com/AutoFixture/AutoFixture)
| nuget | minor | `4.17.0` -> `4.18.0` |

---

### Release Notes

<details>
<summary>AutoFixture/AutoFixture</summary>

###
[`v4.18.0`](https://togithub.com/AutoFixture/AutoFixture/releases/tag/v4.18.0):
Version 4.18.0

##### What's Changed

- Fixed failing build due to outdated dependencies by
[@&#8203;aivascu](https://togithub.com/aivascu) in
[AutoFixture/AutoFixture#1287
- Added mention of copy constructors to terminating error by
[@&#8203;aivascu](https://togithub.com/aivascu) in
[AutoFixture/AutoFixture#1294
- Added MyGet preview badge to readme by
[@&#8203;aivascu](https://togithub.com/aivascu) in
[AutoFixture/AutoFixture#1301
- Added Issue and PR templates by
[@&#8203;aivascu](https://togithub.com/aivascu) in
[AutoFixture/AutoFixture#1310
- Updated readme FAKE build engine URL by
[@&#8203;MichaelNel](https://togithub.com/MichaelNel) in
[AutoFixture/AutoFixture#1347
- Added support for NSubstitute 5.0 by
[@&#8203;aivascu](https://togithub.com/aivascu) in
[AutoFixture/AutoFixture#1383
- Fixed exception when StringLength decorates non-string member by
[@&#8203;aivascu](https://togithub.com/aivascu) in
[AutoFixture/AutoFixture#1366
- Fixed failing request for default max length attribute by
[@&#8203;aivascu](https://togithub.com/aivascu) in
[AutoFixture/AutoFixture#1384

##### New Contributors

- [@&#8203;MichaelNel](https://togithub.com/MichaelNel) made their first
contribution in
[AutoFixture/AutoFixture#1347

**Full Changelog**:
AutoFixture/AutoFixture@v4.17.0...v4.18.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/cythral/brighid-discord-adapter).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4zNC4xIiwidXBkYXRlZEluVmVyIjoiMzUuMzQuMSJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot added a commit to cythral/brighid-commands that referenced this pull request Apr 6, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [AutoFixture.NUnit3](https://togithub.com/AutoFixture/AutoFixture) |
nuget | minor | `4.17.0` -> `4.18.0` |

---

### Release Notes

<details>
<summary>AutoFixture/AutoFixture</summary>

###
[`v4.18.0`](https://togithub.com/AutoFixture/AutoFixture/releases/tag/v4.18.0):
Version 4.18.0

#### What's Changed

- Fixed failing build due to outdated dependencies by
[@&#8203;aivascu](https://togithub.com/aivascu) in
[AutoFixture/AutoFixture#1287
- Added mention of copy constructors to terminating error by
[@&#8203;aivascu](https://togithub.com/aivascu) in
[AutoFixture/AutoFixture#1294
- Added MyGet preview badge to readme by
[@&#8203;aivascu](https://togithub.com/aivascu) in
[AutoFixture/AutoFixture#1301
- Added Issue and PR templates by
[@&#8203;aivascu](https://togithub.com/aivascu) in
[AutoFixture/AutoFixture#1310
- Updated readme FAKE build engine URL by
[@&#8203;MichaelNel](https://togithub.com/MichaelNel) in
[AutoFixture/AutoFixture#1347
- Added support for NSubstitute 5.0 by
[@&#8203;aivascu](https://togithub.com/aivascu) in
[AutoFixture/AutoFixture#1383
- Fixed exception when StringLength decorates non-string member by
[@&#8203;aivascu](https://togithub.com/aivascu) in
[AutoFixture/AutoFixture#1366
- Fixed failing request for default max length attribute by
[@&#8203;aivascu](https://togithub.com/aivascu) in
[AutoFixture/AutoFixture#1384

#### New Contributors

- [@&#8203;MichaelNel](https://togithub.com/MichaelNel) made their first
contribution in
[AutoFixture/AutoFixture#1347

**Full Changelog**:
AutoFixture/AutoFixture@v4.17.0...v4.18.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/cythral/brighid-commands).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4zNC4xIiwidXBkYXRlZEluVmVyIjoiMzUuMzQuMSJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot added a commit to cythral/brighid-commands that referenced this pull request Apr 6, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[AutoFixture.AutoNSubstitute](https://togithub.com/AutoFixture/AutoFixture)
| nuget | minor | `4.17.0` -> `4.18.0` |

---

### Release Notes

<details>
<summary>AutoFixture/AutoFixture</summary>

###
[`v4.18.0`](https://togithub.com/AutoFixture/AutoFixture/releases/tag/v4.18.0):
Version 4.18.0

#### What's Changed

- Fixed failing build due to outdated dependencies by
[@&#8203;aivascu](https://togithub.com/aivascu) in
[AutoFixture/AutoFixture#1287
- Added mention of copy constructors to terminating error by
[@&#8203;aivascu](https://togithub.com/aivascu) in
[AutoFixture/AutoFixture#1294
- Added MyGet preview badge to readme by
[@&#8203;aivascu](https://togithub.com/aivascu) in
[AutoFixture/AutoFixture#1301
- Added Issue and PR templates by
[@&#8203;aivascu](https://togithub.com/aivascu) in
[AutoFixture/AutoFixture#1310
- Updated readme FAKE build engine URL by
[@&#8203;MichaelNel](https://togithub.com/MichaelNel) in
[AutoFixture/AutoFixture#1347
- Added support for NSubstitute 5.0 by
[@&#8203;aivascu](https://togithub.com/aivascu) in
[AutoFixture/AutoFixture#1383
- Fixed exception when StringLength decorates non-string member by
[@&#8203;aivascu](https://togithub.com/aivascu) in
[AutoFixture/AutoFixture#1366
- Fixed failing request for default max length attribute by
[@&#8203;aivascu](https://togithub.com/aivascu) in
[AutoFixture/AutoFixture#1384

#### New Contributors

- [@&#8203;MichaelNel](https://togithub.com/MichaelNel) made their first
contribution in
[AutoFixture/AutoFixture#1347

**Full Changelog**:
AutoFixture/AutoFixture@v4.17.0...v4.18.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/cythral/brighid-commands).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4zNC4xIiwidXBkYXRlZEluVmVyIjoiMzUuMzQuMSJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot added a commit to cythral/brighid-discord-adapter that referenced this pull request Apr 6, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [AutoFixture.NUnit3](https://togithub.com/AutoFixture/AutoFixture) |
nuget | minor | `4.17.0` -> `4.18.0` |

---

### Release Notes

<details>
<summary>AutoFixture/AutoFixture</summary>

###
[`v4.18.0`](https://togithub.com/AutoFixture/AutoFixture/releases/tag/v4.18.0):
Version 4.18.0

#### What's Changed

- Fixed failing build due to outdated dependencies by
[@&#8203;aivascu](https://togithub.com/aivascu) in
[AutoFixture/AutoFixture#1287
- Added mention of copy constructors to terminating error by
[@&#8203;aivascu](https://togithub.com/aivascu) in
[AutoFixture/AutoFixture#1294
- Added MyGet preview badge to readme by
[@&#8203;aivascu](https://togithub.com/aivascu) in
[AutoFixture/AutoFixture#1301
- Added Issue and PR templates by
[@&#8203;aivascu](https://togithub.com/aivascu) in
[AutoFixture/AutoFixture#1310
- Updated readme FAKE build engine URL by
[@&#8203;MichaelNel](https://togithub.com/MichaelNel) in
[AutoFixture/AutoFixture#1347
- Added support for NSubstitute 5.0 by
[@&#8203;aivascu](https://togithub.com/aivascu) in
[AutoFixture/AutoFixture#1383
- Fixed exception when StringLength decorates non-string member by
[@&#8203;aivascu](https://togithub.com/aivascu) in
[AutoFixture/AutoFixture#1366
- Fixed failing request for default max length attribute by
[@&#8203;aivascu](https://togithub.com/aivascu) in
[AutoFixture/AutoFixture#1384

#### New Contributors

- [@&#8203;MichaelNel](https://togithub.com/MichaelNel) made their first
contribution in
[AutoFixture/AutoFixture#1347

**Full Changelog**:
AutoFixture/AutoFixture@v4.17.0...v4.18.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/cythral/brighid-discord-adapter).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4zNC4xIiwidXBkYXRlZEluVmVyIjoiMzUuMzQuMSJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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.

🐛 Exception when creating List<string> when [StringLength(255)] attribute present
1 participant