Skip to content

Synchronize from upstream - #1

Merged
RobertIndie merged 268 commits into
mainfrom
sync-upstream
Jun 26, 2026
Merged

RobertIndie merged 268 commits into
mainfrom
sync-upstream

Conversation

@RobertIndie

Copy link
Copy Markdown
Member

No description provided.

eaba and others added 24 commits March 19, 2023 02:46
Added `CODE_OF_CONDUCT``
Bumps System.Text.Json from 8.0.0 to 8.0.4.

---
updated-dependencies:
- dependency-name: System.Text.Json
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
…ator/System.Text.Json-8.0.4

Bump System.Text.Json from 8.0.0 to 8.0.4 in /SchemaGenerator
---
updated-dependencies:
- dependency-name: System.Text.Json
  dependency-version: 8.0.5
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
…rator/System.Text.Json-8.0.5

Bump System.Text.Json from 8.0.4 to 8.0.5
Signed-off-by: Ebere Abanonu <eabanonu@yahoo.com>
Signed-off-by: Ebere Abanonu <eabanonu@yahoo.com>
Remove net7.0 from target frameworks
Update target frameworks to net8.0 only
@RobertIndie RobertIndie self-assigned this Jun 24, 2026
@RobertIndie
RobertIndie requested a review from a team as a code owner June 24, 2026 06:48

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0dc898c8d6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +1484 to +1485
var propertyTypeName = p.PropertyType.Name;
if (existingTypes.Contains(propertyTypeName))

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Reuse nullable enums by their underlying name

When a record has more than one nullable enum property, this stores Nullable1as the seen type name instead of the enum's underlying name. The first nullable enum adds that generic wrapper name toexistingTypes, so the next nullable enum takes the reuse path and emits "Nullable1" as the Avro type, which cannot resolve to the enum definition. Use p.PropertyType.GetSubTypeIfNullable().Name for tracking and reuse.

Useful? React with 👍 / 👎.

Comment on lines +1089 to +1090
{
fieldProperties.Add(GetFields(p));

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve dictionaries inside nested records

When a nested user-defined class contains a Dictionary<,> property, this fallback treats it like a primitive field because this method handles lists but has no dictionary branch. GetFields then calls ToAvroDataType with Dictionary2, so schema generation throws for models such as Root.Child.Tags : Dictionary<string,string>` even though top-level dictionaries are supported elsewhere.

Useful? React with 👍 / 👎.

Comment on lines +1336 to +1338
var pAliases = GetAliases(p);
var rw = required
? new Dictionary<string, object>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Use the nested field's required flag

Inside GetGenericUserDefinedProperties, required is the flag passed in for the containing collection/map, while require is this list field's own [Required] state. Using the outer flag here makes every list property inside a required collection item non-nullable even when that inner property is not [Required] (and the reverse when the parent is optional), so generated schemas corrupt the nested field nullability.

Useful? React with 👍 / 👎.

@RobertIndie
RobertIndie merged commit cf29b98 into main Jun 26, 2026
5 checks passed
@RobertIndie
RobertIndie deleted the sync-upstream branch June 26, 2026 03:34
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.

7 participants