Skip to content

Xml Shape Serializer - Schema serde #3855

Open
pulimsr wants to merge 19 commits into
mainfrom
schema-serde
Open

Xml Shape Serializer - Schema serde #3855
pulimsr wants to merge 19 commits into
mainfrom
schema-serde

Conversation

@pulimsr

@pulimsr pulimsr commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

Check all that applies:

  • Did a review by yourself.
  • Added proper tests to cover this PR. (If tests are not applicable, explain.)
  • Checked if this PR is a breaking (APIs have been changed) change.
  • Checked if this PR will not introduce cross-platform inconsistent behavior.
  • Checked if this PR would require a ReadMe/Wiki update.

Check which platforms you have built SDK on to verify the correctness of this PR.

  • Linux
  • Windows
  • Android
  • MacOS
  • IOS
  • Other Platforms

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@pulimsr pulimsr marked this pull request as ready for review July 6, 2026 14:12

@sbiscigl sbiscigl left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

before moving forward with any of the comments, lets try to figure out what the outcome here is that we want

Comment thread src/aws-cpp-sdk-core/include/smithy/client/schema/Trait.h
Comment thread src/aws-cpp-sdk-core/source/smithy/client/schema/TraitKey.cpp
Comment thread src/aws-cpp-sdk-core/include/smithy/client/schema/TraitKey.h
Comment thread src/aws-cpp-sdk-core/include/smithy/client/schema/TraitMap.h

@sbiscigl sbiscigl left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

fix and ship

namespace smithy {
namespace schema {

static int s_traitIdCounter = 0;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

this should be std::atomic to match how java does it

TraitMap() = default;

template <typename T>
const T* Get(const TraitKey<T>& key) const {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

lets return by value and copy or shared pointer if we want to share lifetimes, raw pointer or ref will create lifetime issues

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