Skip to content

Merge pure API mapper schema reference cleanup#43

Merged
eviltester merged 6 commits into
masterfrom
codex/pure-api-mappers-schema-refs
Jul 14, 2026
Merged

Merge pure API mapper schema reference cleanup#43
eviltester merged 6 commits into
masterfrom
codex/pure-api-mappers-schema-refs

Conversation

@eviltester

Copy link
Copy Markdown
Owner

Merges the pure API mapper/schema reference DDD cleanup branch into master.\n\nLocal verification before opening: mvn -pl thingifier,challenger -am verify

Copilot AI review requested due to automatic review settings July 14, 2026 16:48

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@eviltester eviltester merged commit c7fadfa into master Jul 14, 2026
3 checks passed
@eviltester eviltester deleted the codex/pure-api-mappers-schema-refs branch July 14, 2026 16:49

@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: 07ddcea78f

ℹ️ 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 +146 to +149
if ((field.getType() == FieldType.INTEGER
|| field.getType() == FieldType.AUTO_INCREMENT)
&& fieldValue.getSourceType() != BodyFieldValue.SourceType.NUMERIC) {
errors.add(errorMessage);

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 Accept integer body values for integer fields

When callers use the new pure ApiBodyFields.fromMap(...) path with a Java Integer value and declared type enforcement enabled, ThingBodyCommandMapper records the source type as INTEGER, but this validation only accepts NUMERIC for INTEGER/AUTO_INCREMENT fields. A valid payload like Map.of("priority", 1) is therefore rejected with a message saying the field “should be INTEGER but was INTEGER”; include SourceType.INTEGER as valid here.

Useful? React with 👍 / 👎.

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