This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Serdeable | |
@JsonPropertyOrder({ | |
JsonOp.JSON_PROPERTY_PATH, | |
JsonOp.JSON_PROPERTY_OP, | |
JsonOp.JSON_PROPERTY_VALUE, | |
JsonOp.JSON_PROPERTY_FROM | |
}) | |
@Generated("io.micronaut.openapi.generator.JavaMicronautServerCodegen") | |
@JsonIgnoreProperties( | |
value = "op", // ignore manually set op, it will be automatically generated by Jackson during serialization |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# json-patch schema | |
JsonOp: | |
type: object | |
discriminator: | |
propertyName: op | |
mapping: | |
add: "#/components/schemas/OpAdd" | |
remove: "#/components/schemas/OpRemove" | |
replace: "#/components/schemas/OpReplace" |