mirror of https://github.com/usbharu/Hideout.git
9 lines
591 B
Plaintext
9 lines
591 B
Plaintext
{{#jackson}}
|
|
|
|
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "{{{discriminator.propertyBaseName}}}", visible = true)
|
|
@JsonSubTypes(
|
|
{{#discriminator.mappedModels}}
|
|
JsonSubTypes.Type(value = {{modelName}}::class, name = "{{^vendorExtensions.x-discriminator-value}}{{mappingName}}{{/vendorExtensions.x-discriminator-value}}{{#vendorExtensions.x-discriminator-value}}{{{vendorExtensions.x-discriminator-value}}}{{/vendorExtensions.x-discriminator-value}}"){{^-last}},{{/-last}}
|
|
{{/discriminator.mappedModels}}
|
|
){{/jackson}}
|