202122232425262728
@Override protected JsonSchema propertySchema(BeanProperty writer) throws JsonMappingException { if(writer.getAnnotation(com.dottydingo.hyperion.module.swagger.AnySchema.class) != null) return new AnySchema(); return super.propertySchema(writer); }
10111213141516
import com.fasterxml.jackson.module.jsonSchema.types.StringSchema; public class JsonSchemaFactory { public AnySchema anySchema() { return new AnySchema(); }
212223242526272829
548549550551552553554555
return new StringSchema(); case NULL: return new NullSchema(); default: return new AnySchema(); } }