Skip to content
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

Migrate to the JsonSchemaElement API #1100

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

edeandrea
Copy link
Collaborator

Migrate to the JsonSchemaElement API.

Closes #1054

@edeandrea edeandrea marked this pull request as ready for review November 22, 2024 21:10
@edeandrea edeandrea requested a review from a team as a code owner November 22, 2024 21:10
@edeandrea
Copy link
Collaborator Author

I'm pretty sure I got everything! Let's make sure CI passes


// Using ConcurrentHashMap in case multiple threads are using this class at the same time
// Not sure if this will ever happen
private final Map<Class<?>, JsonSchemaElementObjectSubstitution> substitutions = new ConcurrentHashMap<>(8);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@geoand I'm not too familiar with substitutions/etc. I wasn't sure if there was any kind of a chance of multi-threading here, so I used a ConcurrentHashMap.

If there's no chance of multiple threads calling this at the same time I can switch it to a HashMap.

Copy link

quarkus-bot bot commented Nov 22, 2024

Status for workflow Build (on pull request)

This is the status report for running Build (on pull request) on commit 0dd1268.

✅ The latest workflow run for the pull request has completed successfully.

It should be safe to merge provided you have a look at the other checks in the summary.

@andreadimaio
Copy link
Collaborator

andreadimaio commented Nov 23, 2024

Ops, I'm starting to work on the same topic. You can see the changes in my repo.

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.

Migrate to the JsonSchemaElement API
2 participants