From 29f6cba11197221aa6325663fc92ac2408012109 Mon Sep 17 00:00:00 2001 From: tangcent Date: Mon, 15 Apr 2024 09:05:29 +0800 Subject: [PATCH] feat: add support for io.swagger.v3.oas.annotations.media.Schema annotation --- third/swagger3.config | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/third/swagger3.config b/third/swagger3.config index 669d36b7..4ee8cd41 100644 --- a/third/swagger3.config +++ b/third/swagger3.config @@ -20,6 +20,16 @@ api.tag[@io.swagger.v3.oas.annotations.tags.Tags]=groovy:``` @it.annValue("io.swagger.v3.oas.annotations.tags.Tags").collect{it.name} ``` +#Schema +param.required=groovy:it.ann("io.swagger.v3.oas.annotations.media.Schema","requiredMode")?.endsWith("REQUIRED") +param.doc=@io.swagger.v3.oas.annotations.media.Schema#description +param.ignore=@io.swagger.v3.oas.annotations.media.Schema#hidden +field.required=groovy:it.ann("io.swagger.v3.oas.annotations.media.Schema","requiredMode")?.endsWith("REQUIRED") +field.name=@io.swagger.v3.oas.annotations.media.Schema#name +field.doc=@io.swagger.v3.oas.annotations.media.Schema#description +field.ignore=@io.swagger.v3.oas.annotations.media.Schema#hidden +api.tag[@io.swagger.v3.oas.annotations.media.Schema#deprecated]=deprecated + #Parameter param.ignore=@io.swagger.v3.oas.annotations.Parameter#hidden param.required=@io.swagger.v3.oas.annotations.Parameter#required