FasterXML / FasterXML/jackson-module-jsonSchema

Some means of doing parameters

未关闭
#50 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Java
星标
387
派生
136
PR 合并指标
30 天内没有已合并 PR

描述

I'm doing an implementation of Swagger 2.0, and Swagger uses JSON Schema to describe not only incoming and outgoing JSON, but also the constraints on any parameters in your REST methods. For example:

public String myRestMethod(@NotNull @Min(3) int myNumber) {}

The definition of "myNumber" would be identical to that of a property of a class that had these annotations.

It would really convenient if I could pass in a Java Method or perhaps a JDK 1.8 Parameter object and get JSON Schema for parameters.

Hibernate Validator did exactly this: http://docs.jboss.org/hibernate/stable/validator/reference/en-US/html_single/#chapter-method-constraints

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。