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 摘要。