I've tried to set the value of action to one of the values from the enum using JsonGeneratorConfig, but I don't think this is supported. Please correct me if I am wrong.
"action": { "enum": [ "action1", "action2", "action3" ], "id": "/properties/action", "type": "string" }