Skip to content

Bump version to 1.3.0 and add ChoiceProperty attribute#5

Merged
temonk merged 1 commit intomainfrom
feature/ChoicePropertyAttributeAdded
May 16, 2025
Merged

Bump version to 1.3.0 and add ChoiceProperty attribute#5
temonk merged 1 commit intomainfrom
feature/ChoicePropertyAttributeAdded

Conversation

@temonk
Copy link
Copy Markdown
Contributor

@temonk temonk commented May 16, 2025

  • Introduced ChoicePropertyAttribute for marking choice properties.
  • Enhanced code generation in Executor.cs to include the [ChoiceProperty] attribute.

@temonk temonk requested a review from Copilot May 16, 2025 07:03
- Introduced `ChoicePropertyAttribute` for marking choice properties.
- Enhanced code generation in `Executor.cs` to include the `[ChoiceProperty]` attribute.
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR bumps the project version to 1.3.0 and introduces a new ChoicePropertyAttribute to mark choice properties. The changes include updates to the generated code in Executor.cs to add the attribute and corresponding updates in test snapshots to reflect the modification.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/AltaSoft.Choice.Generator.SnapshotTests/Snapshots/ChoiceGeneratorTest.ChoiceTypeShouldNotGenerateImplicitMethodsAndCompileCorrectly#Authorisation1Choice.g.verified.cs Added [ChoiceProperty] attribute to properties in test snapshots
tests/AltaSoft.Choice.Generator.SnapshotTests/Snapshots/ChoiceGeneratorTest.ChoiceTypeShouldGenerateAllMethodsAndCompileCorrectly#Authorisation1Choice.g.verified.cs Added [ChoiceProperty] attribute to properties in test snapshots
src/AltaSoft.Choice/ChoicePropertyAttribute.cs Added the new ChoicePropertyAttribute class
src/AltaSoft.Choice.Generator/Executor.cs Updated code generation to include the [ChoiceProperty] attribute
Directory.Build.props Bumped the version from 1.2.3 to 1.3.0

@temonk temonk merged commit 4449bb8 into main May 16, 2025
1 check passed
@temonk temonk deleted the feature/ChoicePropertyAttributeAdded branch May 16, 2025 07:05
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