Skip to content

minor change also added ChoiceTypePropertyAttribute that will be auto…#6

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

minor change also added ChoiceTypePropertyAttribute that will be auto…#6
temonk merged 1 commit intomainfrom
feature/ChoicePropertyAttributeAdded

Conversation

@temonk
Copy link
Copy Markdown
Contributor

@temonk temonk commented May 16, 2025

…matically added to ChoiceOf property

@temonk temonk requested a review from Copilot May 16, 2025 07:15
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 introduces the new ChoiceTypePropertyAttribute and applies it to the ChoiceOf property in both test and generator code to automatically mark choice properties. In addition, a version bump from 1.3.0 to 1.3.1 in the build properties file is included.

  • Added ChoiceTypeProperty attribute to ChoiceOf properties in tests and executor code.
  • Introduced ChoiceTypePropertyAttribute in the source code.
  • Updated project version in Directory.Build.props.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/AltaSoft.Choice.Generator.SnapshotTests/Snapshots/ChoiceGeneratorTest.ChoiceTypeShouldNotGenerateImplicitMethodsAndCompileCorrectly#Authorisation1Choice.g.verified.cs Added attribute to exclude implicit methods in test case.
tests/AltaSoft.Choice.Generator.SnapshotTests/Snapshots/ChoiceGeneratorTest.ChoiceTypeShouldGenerateAllMethodsAndCompileCorrectly#Authorisation1Choice.g.verified.cs Added attribute for generating all methods in test case.
src/AltaSoft.Choice/ChoiceTypePropertyAttribute.cs Introduced new attribute but its declaration syntax may be problematic.
src/AltaSoft.Choice.Generator/Executor.cs Injected attribute into generated source code.
Directory.Build.props Updated version from 1.3.0 to 1.3.1.

@altasoft altasoft deleted a comment from Copilot AI May 16, 2025
@temonk temonk merged commit 3015b32 into main May 16, 2025
1 check passed
@temonk temonk deleted the feature/ChoicePropertyAttributeAdded branch May 16, 2025 07:17
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