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

Custom type format for array items #1213

Open
cw2501 opened this issue Aug 8, 2024 · 0 comments
Open

Custom type format for array items #1213

cw2501 opened this issue Aug 8, 2024 · 0 comments
Labels
Milestone

Comments

@cw2501
Copy link

cw2501 commented Aug 8, 2024

Hello Ryan,

I gave the feature

the jackson module configuration supports a type-format subelement

from issue #1197 a try and while it's working fine for properties of the listed types, it doesn't seem to affect the types of array items. What I had expected is that

<jackson disabled="false">
    <type-format class="java.util.UUID" format="uuid" />
</jackson>

would turn
List<UUID> aListOfUUIDs

into this

"aListOfUUIDs": {
    "description": "A list of UUIDs.",
    "type": "array",
    "items": {
        "type": "string"
        "format": "uuid" // this one seems to be missing at the moment
    }
}

As always, I cannot rule out that I'm doing it wrong 😉 but I suspect that this would be a new feature?

@stoicflame stoicflame added the bug label Aug 8, 2024
@stoicflame stoicflame added this to the 2.19.0 milestone Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants