-
Notifications
You must be signed in to change notification settings - Fork 179
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
c#, fix: class names + namespace conflicts #4229
Conversation
/// This reference to A should not use it's fully qualified name because it's in the same package as A. | ||
/// </summary> | ||
[JsonPropertyName("id")] | ||
public required A Id { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we're in the same namespace as A
so we don't need to fully qualify
DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull | ||
}; | ||
|
||
var deserializedObject = JsonSerializer.Deserialize<SeedCsharpNamespaceConflict.A.A>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fully qualified example
@@ -7,7 +7,8 @@ import { GeneratorWorkspace } from "../../loadGeneratorWorkspaces"; | |||
import { printTestCases } from "./printTestCases"; | |||
import { TestRunner } from "./test-runner"; | |||
|
|||
export const FIXTURES_TO_IGNORE = ["sever-sent-event-examples", "server-sent-event-examples"]; | |||
export const FIXTURES_TO_IGNORE = ["server-sent-event-examples", "server-sent-events"]; | |||
export const LANGUAGE_SPECIFIC_FIXTURE_PREFIXES = ["csharp", "go", "java", "python", "ruby", "ts"]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
C# generator changes:
Seed changes: