A quick tip showing how to automatically include all enum values in Spring REST Docs field descriptions. The example demonstrates documenting a REST endpoint response that contains an enum field (season), listing all possible values inline in the field description using MockMvc and Spring REST Docs annotations.
Sort: